@font-face {
    font-family: "Avenir Cobble";
    src: url("../fonts/Avenir-Book.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Avenir Cobble";
    src: url("../fonts/Avenir-Heavy.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --cl-night: #171727;
    --cl-night-2: #222032;
    --cl-ink: #201a15;
    --cl-ink-soft: #5c4a38;
    --cl-paper: #f8ead0;
    --cl-paper-light: #fff6dc;
    --cl-paper-deep: #dfc79b;
    --cl-paper-border: #7a5931;
    --cl-gold: #e8c46a;
    --cl-gold-light: #fff3b6;
    --cl-gold-dark: #9b6b2d;
    --cl-red: #a43a32;
    --cl-red-dark: #6d1f21;
    --cl-green: #577a51;
    --cl-shadow: 0 16px 35px rgba(42, 28, 13, 0.28);
    --cl-outline: 0 2px 0 rgba(255, 246, 220, 0.7), 0 -2px 0 rgba(50, 29, 18, 0.28);
    --bs-body-bg: var(--cl-night);
    --bs-body-color: var(--cl-paper);
    --bs-primary: var(--cl-red);
    --bs-primary-rgb: 164, 58, 50;
    --bs-link-color: var(--cl-red-dark);
    --bs-link-hover-color: var(--cl-red);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--cl-paper);
    background:
        radial-gradient(circle at 18% 0%, rgba(232, 196, 106, 0.18), transparent 26rem),
        linear-gradient(180deg, #121221 0%, #1c1a2b 42%, #10101b 100%);
    font-family: "Avenir Cobble", "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(17, 17, 31, 0.18), rgba(17, 17, 31, 0.88)),
        url("../img/cobblelands/forest-safari.jpg") center / cover no-repeat;
    opacity: 0.42;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(255, 246, 220, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 246, 220, 0.025) 1px, transparent 1px);
    background-size: 34px 34px, 58px 58px;
    opacity: 0.35;
}

::selection {
    color: var(--cl-paper-light);
    background: var(--cl-red);
}

a {
    color: var(--cl-red-dark);
    text-decoration: none;
}

a:hover {
    color: var(--cl-red);
}

h1,
h2,
h3,
h4,
h5,
.page-container-title {
    color: var(--cl-ink);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.container {
    position: relative;
    z-index: 1;
}

.header-nav {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    isolation: isolate;
    background-position: center;
    background-size: cover;
    border-bottom: 0;
}

.header-nav.small-header {
    min-height: 210px;
    background-position: center 38%;
}

.header-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 66% 42%, rgba(255, 232, 166, 0.34), transparent 18rem),
        linear-gradient(90deg, rgba(23, 23, 39, 0.72) 0%, rgba(23, 23, 39, 0.18) 45%, rgba(23, 23, 39, 0.42) 100%),
        linear-gradient(180deg, rgba(23, 23, 39, 0.04) 0%, rgba(23, 23, 39, 0.25) 62%, rgba(23, 23, 39, 0.82) 100%);
}

.header-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 246, 220, 0.12), transparent 28%),
        radial-gradient(circle at 22% 72%, rgba(91, 122, 81, 0.2), transparent 20rem);
}

.header-nav .navigation {
    position: relative;
    z-index: 6;
    min-height: 76px;
    background:
        linear-gradient(180deg, rgba(28, 28, 47, 0.97), rgba(15, 15, 29, 0.97)),
        var(--cl-night);
    border-bottom: 2px solid rgba(232, 196, 106, 0.72);
    box-shadow: 0 10px 0 rgba(255, 246, 220, 0.08), 0 16px 36px rgba(0, 0, 0, 0.38);
}

.header-nav .navigation-content {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.cl-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 270px;
    justify-self: start;
}

.cl-brand-seal {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 60px;
}

.cl-brand-seal img {
    width: 84px;
    height: 84px;
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.42));
}

.cl-nav-logo {
    width: 198px;
    height: 68px;
    margin-left: -40px;
    object-fit: contain;
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.32)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.48));
}

.header-nav-main,
.cl-nav-actions,
.header-nav-top-left,
.header-nav-top-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 0;
    list-style: none;
}

.header-nav-main {
    justify-self: center;
}

.cl-nav-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-self: end;
}

.cl-nav-actions > .item,
.cl-nav-actions > .dropdown {
    display: flex;
    align-items: center;
    margin: 0;
}

.header-nav-top .item {
    min-width: auto;
    margin: 0;
}

.header-nav-top .item a,
.header-nav-top .dropdown .nav-link {
    position: relative;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 17px;
    color: var(--cl-paper-light);
    border: 2px solid rgba(232, 196, 106, 0.6);
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(48, 45, 67, 0.94), rgba(21, 20, 34, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(255, 246, 220, 0.1),
        0 3px 0 rgba(0, 0, 0, 0.42);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 2px 0 #000;
    white-space: nowrap;
}

.header-nav-top .item a::before,
.header-nav-top .dropdown .nav-link::before {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(232, 196, 106, 0.26);
    border-radius: 7px;
    pointer-events: none;
}

.header-nav-top .item a:hover,
.header-nav-top .item.active a,
.header-nav-top .dropdown .nav-link:hover {
    color: #2a1d16 !important;
    border-color: var(--cl-gold-light);
    background:
        radial-gradient(circle, rgba(255, 246, 220, 0.98), rgba(232, 196, 106, 0.92));
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
    box-shadow:
        0 0 22px rgba(255, 239, 166, 0.58),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45),
        0 3px 0 rgba(95, 57, 20, 0.62);
}

.cl-nav-login,
.cl-nav-icon-btn,
.cl-nav-user-btn {
    background: linear-gradient(180deg, rgba(104, 42, 38, 0.94), rgba(71, 23, 27, 0.96)) !important;
}

.cl-nav-icon-btn {
    width: 42px;
    padding: 0 !important;
}

.cl-nav-user-btn {
    min-width: 174px;
    min-height: 48px !important;
    justify-content: flex-start !important;
    padding: 5px 12px 5px 7px !important;
}

.cl-nav-user-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
    text-align: left;
    line-height: 1.05;
}

.cl-nav-user-copy strong {
    max-width: 130px;
    overflow: hidden;
    color: var(--cl-paper-light);
    font-size: 0.8rem;
    text-overflow: ellipsis;
}

.cl-nav-user-copy small {
    color: var(--cl-gold-light);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.sub-nav-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(232, 196, 106, 0.7);
    border-radius: 999px;
    object-fit: cover;
}

.notif-badge {
    position: absolute;
    top: -7px;
    right: -7px;
}

.cl-hero {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 64px 0 108px;
}

.header-content.cl-hero {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
}

.cl-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.cl-hero-copy {
    width: min(760px, 100%);
    padding: clamp(22px, 4vw, 36px);
    color: var(--cl-paper-light);
    text-align: center;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5), 0 10px 26px rgba(0, 0, 0, 0.65);
}

.cl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--cl-gold-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

main .cl-kicker {
    color: var(--cl-red-dark);
    text-shadow: none;
}

.cl-kicker::before,
.cl-kicker::after {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 1px 0 rgba(255, 246, 220, 0.5);
}

.cl-hero-welcome {
    display: block;
    margin-bottom: 6px;
    color: var(--cl-paper-light);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cl-hero-logo {
    width: min(470px, 82vw);
    max-height: 150px;
    display: block;
    margin: 0 auto 14px;
    object-fit: contain;
    filter:
        drop-shadow(0 4px 0 rgba(0, 0, 0, 0.42))
        drop-shadow(0 14px 24px rgba(0, 0, 0, 0.48));
}

.cl-hero-sub {
    max-width: 560px;
    margin: 0 auto;
    color: #fff7df;
    font-size: clamp(1rem, 1.4vw, 1.24rem);
    font-weight: 800;
    line-height: 1.55;
}

.cl-hero-actions,
.cl-world-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.btn-volcano,
main .btn,
button.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-volcano,
.btn-primary,
.btn.btn-primary,
.products .product .buy,
.vote .btn {
    color: var(--cl-paper-light) !important;
    border: 2px solid rgba(232, 196, 106, 0.72) !important;
    background:
        linear-gradient(180deg, #b34c3f 0%, #752229 100%) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 246, 220, 0.18),
        0 4px 0 rgba(64, 27, 20, 0.72),
        0 12px 20px rgba(72, 31, 20, 0.22);
    clip-path: none !important;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.48);
}

.btn-volcano:hover,
.btn-primary:hover,
.btn.btn-primary:hover,
.products .product .buy:hover,
.vote .btn:hover {
    transform: translateY(-2px);
    border-color: var(--cl-gold-light) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 246, 220, 0.28),
        0 6px 0 rgba(64, 27, 20, 0.72),
        0 18px 26px rgba(72, 31, 20, 0.28);
}

.btn-volcano-outline,
.btn-outline-primary,
.btn-secondary,
.btn-outline-secondary {
    color: var(--cl-paper-light) !important;
    border: 2px solid rgba(232, 196, 106, 0.68) !important;
    background:
        linear-gradient(180deg, rgba(45, 43, 62, 0.96), rgba(23, 23, 39, 0.96)) !important;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.52);
}

.btn-volcano-ghost {
    background:
        linear-gradient(180deg, rgba(79, 105, 72, 0.96), rgba(43, 64, 47, 0.96)) !important;
}

.btn-danger,
.btn-volcano-danger {
    color: var(--cl-paper-light) !important;
    border-color: rgba(255, 220, 170, 0.7) !important;
    background: linear-gradient(180deg, #9b342e, #56181b) !important;
}

.cl-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.cl-hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 2px solid rgba(232, 196, 106, 0.6);
    border-radius: 4px;
    color: var(--cl-paper-light);
    background: rgba(23, 23, 39, 0.72);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.32);
}

.cl-hero-badges i {
    color: var(--cl-gold-light);
}

.go-to-button {
    position: absolute;
    right: 50%;
    bottom: 48px;
    z-index: 7;
    width: 46px;
    height: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--cl-paper-light);
    border: 2px solid rgba(232, 196, 106, 0.72);
    border-radius: 999px;
    background: rgba(23, 23, 39, 0.86);
    transform: translateX(50%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.header-content.cl-hero .go-to-button {
    display: none !important;
    position: absolute !important;
    right: 50% !important;
    bottom: 48px !important;
    left: auto !important;
    top: auto !important;
    transform: translateX(50%) !important;
}

.cl-brush-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    z-index: 5;
    height: 94px;
    pointer-events: none;
    background: var(--cl-paper);
    -webkit-mask: url("../img/cobblelands/brush-wild.png") center bottom / 104% 100% no-repeat;
    mask: url("../img/cobblelands/brush-wild.png") center bottom / 104% 100% no-repeat;
    transform: rotate(180deg);
}

main {
    position: relative;
    overflow-x: hidden;
    color: var(--cl-ink);
    background:
        linear-gradient(180deg, rgba(255, 246, 220, 0.72), rgba(248, 234, 208, 0.96)),
        var(--cl-paper);
}

body:not(.admin) main.pt-5,
main .container.pb-5 {
    padding-top: 46px !important;
}

main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(122, 89, 49, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 89, 49, 0.04) 1px, transparent 1px);
    background-size: 26px 26px, 54px 54px;
    opacity: 0.45;
}

main .container,
main section {
    position: relative;
}

main h1,
main h2,
main h3,
main h4,
main h5,
main .page-container-title {
    color: var(--cl-ink);
}

main p {
    color: var(--cl-ink-soft);
}

.cl-paper-section {
    position: relative;
    padding: clamp(38px, 6vw, 76px) 0;
}

.cl-home-overview {
    padding-top: 34px;
}

.cl-front-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.82fr) minmax(280px, 0.72fr);
    gap: 20px;
    align-items: stretch;
}

.cl-front-column,
.cl-market-board,
.cl-support-board,
.cl-shop-callout,
.card,
.list-group,
.shop-sidebar,
.shop-sidebar-2,
.products .product,
.post,
.volcano-posts-empty,
.modal-content {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(122, 89, 49, 0.58) !important;
    border-radius: 8px !important;
    color: var(--cl-ink);
    background:
        linear-gradient(145deg, rgba(255, 246, 220, 0.96), rgba(226, 202, 161, 0.92)),
        var(--cl-paper-light) !important;
    box-shadow: var(--cl-shadow);
    clip-path: none !important;
}

.cl-front-column::before,
.cl-market-board::before,
.cl-support-board::before,
.cl-shop-callout::before,
.card::before,
.products .product::before,
.post::before {
    content: "";
    position: absolute;
    inset: 7px;
    pointer-events: none;
    border: 1px solid rgba(122, 89, 49, 0.22);
    border-radius: 5px;
}

.cl-front-column {
    min-height: 100%;
    padding: 24px;
}

.cl-brush-title {
    position: relative;
    z-index: 0;
    isolation: isolate;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 7px 18px 8px;
    color: var(--cl-paper-light);
    background: none;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 0 #000;
    transform: rotate(-0.6deg);
}

.cl-brush-title::before {
    content: "";
    position: absolute;
    inset: -9px -20px -10px;
    z-index: -1;
    background: linear-gradient(90deg, var(--cl-night), var(--cl-night-2));
    -webkit-mask: url("../img/cobblelands/brush-ribbon.png") center / 100% 100% no-repeat;
    mask: url("../img/cobblelands/brush-ribbon.png") center / 100% 100% no-repeat;
}

.cl-update-list {
    display: grid;
    gap: 12px;
}

.cl-update-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(122, 89, 49, 0.32);
    border-radius: 8px;
    background: rgba(255, 246, 220, 0.5);
}

.cl-update-image,
.cl-update-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(122, 89, 49, 0.38);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.35);
}

.cl-update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cl-update-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.cl-update-card span,
.cl-shop-preview-card span {
    color: var(--cl-red-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cl-update-card h3 {
    margin: 3px 0 5px;
    font-size: 1rem;
}

.cl-update-card p {
    margin: 0 0 5px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.cl-read-link {
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cl-resource-list {
    display: grid;
    gap: 14px;
}

.cl-resource-list article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.cl-resource-list i,
.feature-icon,
.cl-shop-preview-icon,
.cl-shop-gift-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-night);
    border: 2px solid rgba(122, 89, 49, 0.48);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--cl-gold-light), var(--cl-gold));
    box-shadow: 0 4px 0 rgba(122, 89, 49, 0.3);
    font-size: 24px;
}

.cl-resource-list h3,
.cl-community-card h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.cl-resource-list p,
.cl-community-card p {
    margin: 0;
    line-height: 1.5;
}

.cl-community-card img {
    width: 100%;
    height: 158px;
    object-fit: cover;
    border: 1px solid rgba(122, 89, 49, 0.42);
    border-radius: 6px;
}

.cl-community-copy {
    display: grid;
    gap: 10px;
    padding-top: 14px;
}

.cl-stats-strip {
    padding-top: 0;
    padding-bottom: 26px;
}

.stats-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stats-group .stats {
    min-height: 116px;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 18px;
    border: 2px solid rgba(122, 89, 49, 0.5);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 246, 220, 0.95), rgba(226, 202, 161, 0.9));
    box-shadow: var(--cl-shadow);
    clip-path: none;
}

.stats-group .stats-number {
    margin: 0;
    color: var(--cl-red-dark);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 800;
}

.stats-group .stats-text {
    margin: 0;
    color: var(--cl-ink-soft);
    font-weight: 800;
    text-transform: uppercase;
}

.cl-section-heading,
.cl-shop-heading {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
}

.cl-section-heading h2,
.cl-shop-heading h1,
main .container.pb-5 > h1,
.page-container-title {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.cl-section-heading p,
.cl-shop-heading p {
    color: var(--cl-ink-soft);
    font-size: 1.06rem;
    line-height: 1.7;
}

.cl-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cl-feature-card,
.feature-card {
    position: relative;
    min-width: 0;
    padding: 24px;
    border: 2px solid rgba(122, 89, 49, 0.48);
    border-radius: 8px;
    color: var(--cl-ink);
    background:
        linear-gradient(145deg, rgba(255, 246, 220, 0.96), rgba(226, 202, 161, 0.9));
    box-shadow: var(--cl-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cl-feature-card:hover,
.feature-card:hover,
.products .product:hover,
.post:hover,
.cl-shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(42, 28, 13, 0.32);
}

.cl-feature-card h3,
.feature-title {
    margin: 16px 0 8px;
    font-size: 1.08rem;
    text-transform: uppercase;
}

.cl-feature-card p,
.feature-text,
.card-body,
.post-text {
    color: var(--cl-ink-soft);
    line-height: 1.62;
}

.cl-shop-callout-section {
    padding-top: 26px;
}

.cl-shop-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(24px, 4vw, 40px);
}

.cl-shop-callout h2 {
    max-width: 800px;
    margin-bottom: 10px;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.cl-section-heading-compact {
    max-width: 760px;
    margin-bottom: 26px;
}

.cl-home-core {
    padding-top: clamp(34px, 5vw, 58px);
    padding-bottom: clamp(42px, 6vw, 68px);
}

.cl-feature-grid-compact .cl-feature-card {
    padding: 20px;
}

.cl-feature-grid-compact .cl-feature-card p {
    margin-bottom: 0;
}

.cl-section-brush {
    height: 38px;
    margin: -12px 0;
    background: rgba(155, 107, 45, 0.28);
    -webkit-mask: url("../img/cobblelands/brush-divider.png") center / 102% 100% no-repeat;
    mask: url("../img/cobblelands/brush-divider.png") center / 102% 100% no-repeat;
}

.cl-home-actions-section {
    padding-top: 44px;
}

.cl-home-actions-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
    gap: 22px;
    align-items: stretch;
}

.cl-home-shop-card {
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background:
        linear-gradient(115deg, rgba(255, 246, 220, 0.98), rgba(226, 202, 161, 0.86)),
        url("../img/cobblelands/village-gate.jpg") center / cover no-repeat !important;
}

.cl-home-shop-card .btn-volcano {
    margin-top: 8px;
}

.cl-discord-card {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(210px, 0.75fr) minmax(300px, 1.25fr);
    gap: 18px;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    color: var(--cl-paper-light);
    border: 2px solid rgba(232, 196, 106, 0.54);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(35, 34, 63, 0.98), rgba(18, 18, 34, 0.98)),
        var(--cl-night);
    box-shadow: var(--cl-shadow);
}

.cl-discord-card::before {
    content: "";
    position: absolute;
    inset: 7px;
    pointer-events: none;
    border: 1px solid rgba(232, 196, 106, 0.18);
    border-radius: 5px;
}

.cl-discord-copy {
    position: relative;
    z-index: 1;
}

.cl-discord-copy h2 {
    margin-bottom: 8px;
    color: var(--cl-paper-light);
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.cl-discord-copy p {
    color: rgba(255, 246, 220, 0.78);
    line-height: 1.55;
}

.cl-discord-widget {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 300px;
    border: 0;
    border-radius: 6px;
    background: #1e1f22;
}

.footer {
    position: relative;
    background:
        linear-gradient(180deg, rgba(23, 23, 39, 0.96), rgba(12, 12, 24, 0.98)),
        url("../img/cobblelands/village-gate.jpg") center / cover no-repeat;
    border-top: 3px solid rgba(232, 196, 106, 0.68);
}

.footer-lava-line {
    height: 24px;
    margin-top: -12px;
    background: linear-gradient(90deg, var(--cl-gold-dark), var(--cl-gold), var(--cl-red), var(--cl-gold));
    -webkit-mask: url("../img/cobblelands/brush-divider.png") center / 102% 100% no-repeat;
    mask: url("../img/cobblelands/brush-divider.png") center / 102% 100% no-repeat;
}

.footer-top {
    padding: 46px 0 30px;
}

.footer-block {
    height: 100%;
    padding: 20px;
    border: 1px solid rgba(232, 196, 106, 0.28);
    border-radius: 8px;
    background: rgba(15, 15, 29, 0.58);
}

.footer-logo {
    width: 190px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 9px 16px rgba(0, 0, 0, 0.55));
}

.footer-title {
    color: var(--cl-gold-light);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-desc,
.footer-bottom,
.footer-bottom p {
    color: rgba(255, 246, 220, 0.82);
}

.footer-links-list {
    padding-left: 0;
    list-style: none;
}

.footer-links-list a,
.footer-credit a {
    color: var(--cl-paper-light);
}

.footer-links-list a:hover,
.footer-credit a:hover {
    color: var(--cl-gold-light);
}

.footer-social-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: var(--cl-paper-light);
    border: 1px solid rgba(232, 196, 106, 0.42);
    border-radius: 999px;
    background: rgba(255, 246, 220, 0.08);
}

.footer-bottom {
    padding: 16px 0;
    border-top: 1px solid rgba(232, 196, 106, 0.18);
    background: rgba(0, 0, 0, 0.25);
}

main .card-body,
main .card .card-body,
main .tab-content {
    background: transparent !important;
}

main .card-header,
main .modal-header,
main .modal-footer {
    color: var(--cl-ink);
    border-color: rgba(122, 89, 49, 0.28) !important;
    background: rgba(255, 246, 220, 0.46) !important;
}

main .form-control,
main .form-select,
main input,
main select,
main textarea {
    color: var(--cl-ink) !important;
    border: 2px solid rgba(122, 89, 49, 0.42) !important;
    border-radius: 6px !important;
    background-color: rgba(255, 251, 235, 0.92) !important;
}

main .form-control:focus,
main .form-select:focus,
main input:focus,
main select:focus,
main textarea:focus {
    color: var(--cl-ink) !important;
    border-color: var(--cl-red) !important;
    background-color: rgba(255, 251, 235, 0.96) !important;
    box-shadow: 0 0 0 0.25rem rgba(164, 58, 50, 0.14) !important;
}

main .form-label,
main label {
    color: var(--cl-ink);
    font-weight: 800;
}

main .list-group-item,
main .dropdown-menu,
main .dropdown-item {
    color: var(--cl-ink);
    background-color: rgba(255, 246, 220, 0.96);
    border-color: rgba(122, 89, 49, 0.22);
}

.dropdown-menu {
    border: 1px solid rgba(232, 196, 106, 0.42);
    border-radius: 8px;
    box-shadow: var(--cl-shadow);
}

.dropdown-item:hover,
.list-group-item:hover {
    color: var(--cl-red-dark) !important;
    background-color: rgba(232, 196, 106, 0.2) !important;
}

main .list-group-item.active,
main .dropdown-item.active,
main .dropdown-item:active {
    color: var(--cl-paper-light) !important;
    border-color: rgba(232, 196, 106, 0.72) !important;
    background: linear-gradient(180deg, var(--cl-red), var(--cl-red-dark)) !important;
}

main .table-responsive,
main table,
main .table {
    color: var(--cl-ink) !important;
    border-color: rgba(122, 89, 49, 0.28) !important;
    background-color: rgba(255, 246, 220, 0.65) !important;
}

main table thead,
main .table thead,
main .table-dark {
    --bs-table-color: var(--cl-paper-light);
    --bs-table-bg: var(--cl-night);
    color: var(--cl-paper-light) !important;
    background: var(--cl-night) !important;
}

main .alert {
    color: var(--cl-ink);
    border-radius: 8px;
    border-color: rgba(122, 89, 49, 0.34);
    background: rgba(255, 246, 220, 0.86);
}

.cl-shop-page {
    display: grid;
    gap: 24px;
}

.cl-shop-home {
    gap: 18px;
}

.cl-shop-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(22px, 4vw, 34px);
    color: var(--cl-ink);
    border: 2px solid rgba(122, 89, 49, 0.55);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 246, 220, 0.96), rgba(226, 202, 161, 0.76)),
        url("../img/cobblelands/village-gate.jpg") right center / cover no-repeat;
    box-shadow: var(--cl-shadow);
}

.cl-shop-hero-compact {
    padding-top: 24px;
    padding-bottom: 24px;
}

.cl-shop-hero-compact h1 {
    font-size: clamp(2rem, 3.3vw, 3rem);
}

.cl-shop-hero-compact p {
    max-width: 620px;
}

.cl-shop-hero-card > div,
.cl-market-board,
.cl-support-board,
.cl-shop-callout,
.cl-front-column,
.cl-feature-card {
    min-width: 0;
}

.cl-shop-hero-card h1 {
    margin: 0 0 8px;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    text-transform: uppercase;
}

.cl-shop-hero-card p {
    max-width: 740px;
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.65;
}

.cl-cart-sign {
    min-width: 174px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--cl-paper-light);
    border: 2px solid rgba(232, 196, 106, 0.72);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(28, 28, 47, 0.98), rgba(15, 15, 29, 0.98));
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.38);
    text-transform: uppercase;
}

.cl-cart-sign:hover {
    color: var(--cl-gold-light);
}

.cl-cart-sign i {
    font-size: 1.35rem;
}

.cl-cart-sign span {
    font-weight: 800;
}

.cl-cart-sign strong {
    color: var(--cl-gold-light);
}

.cl-shop-layout {
    align-items: flex-start;
}

.cl-shop-side-stack {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
}

.cl-shop-categories {
    padding: 16px;
}

.cl-shop-categories-title {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 16px;
    color: var(--cl-paper-light);
    background: var(--cl-night);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 2px 0 #000;
}

.cl-shop-categories .list-group-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    margin-bottom: 8px;
    padding: 0 13px;
    border: 1px solid rgba(122, 89, 49, 0.3);
    border-radius: 6px !important;
    color: var(--cl-ink);
    font-weight: 800;
    background: rgba(255, 246, 220, 0.62);
}

.cl-shop-categories .list-group-item i {
    color: var(--cl-red-dark);
}

.cl-shop-categories .list-group-item.active i {
    color: var(--cl-gold-light);
}

.cl-shop-sidebar-empty,
.cl-shop-gift-panel,
.cl-shop-user-panel,
.cl-shop-login-button,
.cl-shop-small-card {
    position: relative;
    padding: 16px;
    border: 2px solid rgba(122, 89, 49, 0.48);
    border-radius: 8px;
    color: var(--cl-ink);
    background: linear-gradient(145deg, rgba(255, 246, 220, 0.96), rgba(226, 202, 161, 0.9));
    box-shadow: var(--cl-shadow);
}

.cl-shop-user-panel {
    align-self: start;
    margin: 0;
    overflow: hidden;
    transform: none !important;
}

.cl-shop-login-button {
    padding: 12px 16px;
}

.cl-shop-user-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.cl-shop-user-panel .d-grid {
    position: relative;
    z-index: 1;
}

.cl-shop-user-panel .btn {
    width: 100%;
    min-height: 42px;
    margin: 0;
}

.cl-shop-user-card img {
    border: 2px solid rgba(122, 89, 49, 0.42);
    border-radius: 6px;
}

.cl-shop-user-card span {
    display: block;
    color: var(--cl-red-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cl-shop-user-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.cl-shop-user-card p {
    margin: 0;
    font-size: 0.92rem;
}

.cl-shop-gift-panel {
    display: grid;
    gap: 10px;
}

.cl-shop-gift-panel h3 {
    margin: 0;
    font-size: 1.05rem;
}

.cl-shop-gift-panel p {
    margin: 0;
    line-height: 1.55;
}

.cl-market-board,
.cl-support-board {
    padding: clamp(22px, 4vw, 34px);
}

.cl-market-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.cl-market-heading p {
    max-width: 480px;
    margin: 0;
}

.cl-market-heading-compact {
    align-items: center;
    margin-bottom: 14px;
}

.cl-market-heading-compact .cl-kicker {
    margin-bottom: 6px;
}

.cl-market-heading-compact h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.cl-category-shortcuts-board,
.cl-rubis-board-compact,
.cl-curated-board {
    padding: 20px;
}

.cl-category-shortcuts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.cl-category-shortcut {
    min-width: 0;
    min-height: 84px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 12px 8px;
    color: var(--cl-ink);
    border: 1px solid rgba(122, 89, 49, 0.34);
    border-radius: 7px;
    background: rgba(255, 246, 220, 0.58);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.cl-category-shortcut:hover {
    color: var(--cl-red-dark);
    background: rgba(255, 246, 220, 0.92);
    transform: translateY(-2px);
}

.cl-category-shortcut i {
    color: var(--cl-red-dark);
    font-size: 1.45rem;
}

.cl-category-shortcut-rubis {
    color: var(--cl-paper-light);
    border-color: rgba(232, 196, 106, 0.7);
    background: linear-gradient(180deg, var(--cl-red), var(--cl-red-dark));
}

.cl-category-shortcut-rubis i,
.cl-category-shortcut-rubis:hover {
    color: var(--cl-gold-light);
}

.cl-rubis-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cl-rubis-highlight {
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 13px;
    color: var(--cl-ink);
    border: 1px solid rgba(122, 89, 49, 0.34);
    border-radius: 7px;
    background: rgba(255, 246, 220, 0.58);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cl-rubis-highlight:hover {
    color: var(--cl-ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(42, 28, 13, 0.16);
}

.cl-rubis-highlight > i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-red-dark);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cl-gold-light), var(--cl-gold));
    font-size: 1.35rem;
}

.cl-rubis-highlight strong,
.cl-rubis-highlight span {
    display: block;
}

.cl-rubis-highlight strong {
    font-size: 1rem;
}

.cl-rubis-highlight span {
    color: var(--cl-red-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.cl-curated-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.cl-product-compact-list {
    display: grid;
    gap: 10px;
}

.cl-product-compact {
    min-width: 0;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px;
    border: 1px solid rgba(122, 89, 49, 0.3);
    border-radius: 7px;
    background: rgba(255, 246, 220, 0.54);
}

.cl-product-compact-art {
    width: 66px;
    height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--cl-red-dark);
    border: 1px solid rgba(122, 89, 49, 0.3);
    border-radius: 8px;
    background: radial-gradient(circle, var(--cl-gold-light), rgba(232, 196, 106, 0.44));
    font-size: 1.8rem;
}

.cl-product-compact-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cl-product-compact-copy {
    min-width: 0;
}

.cl-product-compact-copy > span {
    color: var(--cl-red-dark);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cl-product-compact-copy h3 {
    margin: 2px 0 3px;
    font-size: 1rem;
}

.cl-product-compact-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cl-product-compact-action {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.cl-product-compact-action strong {
    color: var(--cl-red-dark);
    font-size: 0.92rem;
}

.cl-product-compact-action .btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.72rem;
}

.cl-shop-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cl-shop-preview-card,
.cl-shop-product-card {
    position: relative;
    padding: 18px;
    border: 2px solid rgba(122, 89, 49, 0.42);
    border-radius: 8px;
    background: rgba(255, 246, 220, 0.54);
    box-shadow: 0 10px 22px rgba(42, 28, 13, 0.16);
}

.cl-shop-preview-card h3 {
    margin: 14px 0 8px;
    font-size: 1.12rem;
}

.cl-shop-preview-card p {
    min-height: 72px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.cl-support-board {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 22px;
}

.cl-support-board p {
    max-width: 760px;
    margin: 0;
    line-height: 1.62;
}

.cl-category-note .card-body {
    padding: 22px;
}

.cl-product-art {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px 14px 0;
    border: 1px solid rgba(122, 89, 49, 0.34);
    border-radius: 7px;
    background:
        radial-gradient(circle, rgba(255, 246, 220, 0.85), rgba(226, 202, 161, 0.5));
}

.cl-product-art img {
    width: min(180px, 80%);
    max-height: 176px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(42, 28, 13, 0.22));
}

.cl-product-art-placeholder {
    width: min(180px, 86%);
    min-height: 142px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    color: var(--cl-red-dark);
    border: 1px solid rgba(122, 89, 49, 0.22);
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 243, 182, 0.96), rgba(232, 196, 106, 0.34) 44%, rgba(255, 246, 220, 0.22) 76%),
        linear-gradient(180deg, rgba(255, 246, 220, 0.74), rgba(226, 202, 161, 0.5));
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.42);
}

.cl-product-art-placeholder i {
    font-size: 3.2rem;
    line-height: 1;
    filter: drop-shadow(0 4px 0 rgba(122, 89, 49, 0.18));
}

.cl-product-art-placeholder span {
    color: var(--cl-ink);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cl-product-art-placeholder-lg {
    width: min(210px, 86%);
    min-height: 170px;
}

.cl-shop-product-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.cl-shop-product-card .card-title {
    margin: 0;
    font-size: 1.2rem;
}

.cl-product-note {
    margin: 0;
    font-size: 0.92rem;
}

.cl-shop-product-card .card-subtitle {
    margin: 0 0 6px;
    color: var(--cl-red-dark);
    font-size: 1.05rem;
}

.cl-shop-product-card .btn {
    margin-top: auto;
}

.cl-shop-empty .card-body {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 24px;
    text-align: center;
}

.cl-shop-empty i {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--cl-night);
    border: 2px solid rgba(122, 89, 49, 0.48);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--cl-gold-light), var(--cl-gold));
    font-size: 30px;
}

.cl-cart-card .card-body {
    padding: clamp(18px, 4vw, 28px);
}

.cl-checkout-email {
    min-width: min(260px, 100%);
    margin-left: 12px;
}

.cl-modal-title {
    margin: 0;
}

.cl-auth-card .card-body {
    padding: clamp(24px, 5vw, 42px);
}

.cl-auth-card h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.cl-auth-intro {
    max-width: 720px;
    margin-bottom: 24px;
    font-size: 1.04rem;
    line-height: 1.65;
}

.cl-auth-microsoft {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(122, 89, 49, 0.28);
}

.cl-auth-microsoft h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.cl-auth-microsoft p {
    margin: 0;
}

.nav-tabs {
    border-color: rgba(122, 89, 49, 0.26);
}

.nav-tabs .nav-link {
    color: var(--cl-ink-soft);
    border-radius: 6px 6px 0 0;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--cl-ink) !important;
    border-color: rgba(122, 89, 49, 0.42) !important;
    background: rgba(255, 246, 220, 0.86) !important;
}

.pagination .page-link {
    color: var(--cl-ink);
    border-color: rgba(122, 89, 49, 0.28);
    background: rgba(255, 246, 220, 0.82);
}

.pagination .page-link:hover,
.pagination .active .page-link {
    color: var(--cl-paper-light);
    background: var(--cl-red);
    border-color: var(--cl-red-dark);
}

.header-mobile-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: 68px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: linear-gradient(180deg, rgba(28, 28, 47, 0.98), rgba(15, 15, 29, 0.98));
    border-bottom: 2px solid rgba(232, 196, 106, 0.72);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.mobile-logo,
.mobile-menu-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-seal,
.mobile-menu-seal {
    width: 72px !important;
    height: 72px !important;
    max-width: none !important;
    object-fit: contain;
}

.header-mobile-nav .mobile-logo .mobile-seal,
.mobile-menu-header .mobile-menu-brand .mobile-menu-seal {
    width: 72px !important;
    height: 72px !important;
}

.mobile-wordmark,
.mobile-menu-logo {
    width: min(190px, 52vw) !important;
    height: 60px !important;
    margin-left: 0;
    object-fit: contain;
}

.header-mobile-nav .mobile-logo .mobile-wordmark,
.mobile-menu-header .mobile-menu-brand .mobile-menu-logo {
    width: min(190px, 52vw) !important;
    height: 60px !important;
    object-fit: contain !important;
}

.mobile-btn,
.mobile-menu-close {
    position: absolute;
    left: 16px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-paper-light);
    border: 2px solid rgba(232, 196, 106, 0.64);
    border-radius: 999px;
    background: rgba(255, 246, 220, 0.08);
}

.header-mobile-nav .mobile-btn,
.mobile-menu-header .mobile-menu-close {
    position: absolute !important;
    top: 13px !important;
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
}

.header-mobile-nav .mobile-btn {
    top: 50% !important;
    left: 16px !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    line-height: 1 !important;
}

.header-mobile-nav .mobile-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-menu-header .mobile-menu-close {
    right: 16px !important;
    left: auto !important;
}

.mobile-menu-close {
    left: auto;
    right: 16px;
}

.mobile-menu {
    color: var(--cl-paper-light);
    background:
        linear-gradient(180deg, rgba(23, 23, 39, 0.97), rgba(15, 15, 29, 0.98)),
        url("../img/cobblelands/forest-safari.jpg") center / cover no-repeat;
    border-left: 2px solid rgba(232, 196, 106, 0.42);
}

.mobile-menu-header {
    border-color: rgba(232, 196, 106, 0.22);
}

.mobile-menu-nav a,
.mobile-dropdown-toggle {
    color: var(--cl-paper-light);
    border-radius: 6px;
}

.mobile-menu-nav li.active a,
.mobile-menu-nav a:hover,
.mobile-dropdown-toggle:hover {
    color: var(--cl-gold-light);
    background: rgba(232, 196, 106, 0.14);
}

.cl-mobile-user-summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid rgba(232, 196, 106, 0.28);
    border-radius: 7px;
    background: rgba(255, 246, 220, 0.07);
}

.cl-mobile-user-summary .sub-nav-avatar {
    width: 42px;
    height: 42px;
}

.cl-mobile-user-summary strong,
.cl-mobile-user-summary span {
    display: block;
}

.cl-mobile-user-summary span {
    margin-top: 3px;
    color: var(--cl-gold-light);
    font-size: 0.82rem;
    font-weight: 800;
}

.cl-shop-hero-actions {
    min-width: min(280px, 100%);
    display: grid;
    gap: 12px;
    justify-items: stretch;
}

.cl-balance-pill {
    min-width: 190px;
    padding: 12px 16px;
    color: var(--cl-paper-light);
    border: 2px solid rgba(232, 196, 106, 0.72);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(44, 66, 48, 0.98), rgba(24, 40, 31, 0.98));
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.38);
    text-transform: uppercase;
}

.cl-balance-pill span {
    display: block;
    color: rgba(255, 246, 220, 0.76);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.cl-balance-pill strong {
    display: block;
    color: var(--cl-gold-light);
    font-size: 1.25rem;
    line-height: 1.2;
}

.cl-rubis-board {
    overflow: visible;
}

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

.cl-rubis-card,
.cl-payment-empty {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 2px solid rgba(122, 89, 49, 0.42);
    border-radius: 8px;
    color: var(--cl-ink);
    background: rgba(255, 246, 220, 0.58);
    box-shadow: 0 10px 22px rgba(42, 28, 13, 0.16);
}

.cl-rubis-card strong {
    grid-column: 1 / -1;
    width: fit-content;
    padding: 6px 12px;
    color: var(--cl-paper-light);
    border: 1px solid rgba(232, 196, 106, 0.56);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cl-red), var(--cl-red-dark));
    font-size: 1rem;
    box-shadow: 0 3px 0 rgba(80, 30, 20, 0.38);
}

.cl-rubis-card span,
.cl-product-category {
    display: inline-flex;
    width: fit-content;
    color: var(--cl-red-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cl-rubis-card h3 {
    margin: 2px 0 4px;
    font-size: 1.16rem;
}

.cl-rubis-card p {
    margin: 0;
    line-height: 1.45;
}

.cl-rubis-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(122, 89, 49, 0.46);
    border-radius: 12px;
    background:
        radial-gradient(circle, var(--cl-gold-light), var(--cl-gold));
    box-shadow: 0 4px 0 rgba(122, 89, 49, 0.28);
    font-size: 28px;
}

.cl-rubis-icon img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.cl-rubis-icon i {
    color: var(--cl-red-dark);
    filter: drop-shadow(0 2px 0 rgba(255, 246, 220, 0.56));
}

.cl-rubis-card-action {
    display: block;
    padding: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cl-rubis-card-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(42, 28, 13, 0.28);
}

.cl-rubis-card-action .payment-method {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    color: inherit;
}

.cl-rubis-card-action .payment-method strong {
    grid-column: 1 / -1;
}

.cl-payment-soon,
.cl-modal-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    color: var(--cl-ink);
    border: 2px solid rgba(122, 89, 49, 0.38);
    border-radius: 6px;
    background: rgba(255, 246, 220, 0.72);
    font-weight: 800;
    text-transform: uppercase;
}

.cl-payment-card .card-body {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 24px;
}

.cl-payment-card img {
    max-height: 46px;
    object-fit: contain;
}

.cl-payment-card h3 {
    margin: 0;
    font-size: 1rem;
}

.cl-payment-empty {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 24px;
}

.cl-payment-empty i {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-night);
    border: 2px solid rgba(122, 89, 49, 0.42);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--cl-gold-light), var(--cl-gold));
    font-size: 28px;
}

.cl-payment-empty h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.cl-payment-empty p {
    margin: 0;
}

.cl-category-card {
    display: block;
    color: var(--cl-ink);
}

.cl-category-card:hover {
    color: var(--cl-ink);
}

.cl-product-category {
    margin-bottom: -2px;
}

.cl-product-modal .modal-header {
    align-items: flex-start;
}

.modal-content.cl-product-modal {
    color: var(--cl-ink);
    background:
        linear-gradient(145deg, rgba(255, 246, 220, 0.98), rgba(226, 202, 161, 0.94)),
        var(--cl-paper-light) !important;
}

.cl-product-modal .modal-header,
.cl-product-modal .modal-body,
.cl-product-modal .modal-footer {
    color: var(--cl-ink);
    background: rgba(255, 246, 220, 0.42) !important;
}

.cl-product-modal .btn-close {
    filter: none !important;
    opacity: 0.72;
}

.cl-product-modal .btn-close:hover {
    opacity: 1;
}

.cl-modal-product-grid {
    display: grid;
    grid-template-columns: minmax(160px, 0.38fr) minmax(0, 0.62fr);
    gap: 22px;
    align-items: start;
}

.cl-modal-product-art {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(122, 89, 49, 0.34);
    border-radius: 8px;
    background:
        radial-gradient(circle, rgba(255, 246, 220, 0.88), rgba(226, 202, 161, 0.58));
}

.cl-modal-product-art img {
    width: min(190px, 80%);
    max-height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(42, 28, 13, 0.22));
}

.cl-modal-product-copy {
    min-width: 0;
    color: var(--cl-ink-soft);
}

.cl-modal-product-copy p,
.cl-modal-product-copy li {
    color: var(--cl-ink-soft);
    line-height: 1.58;
}

.cl-modal-product-copy ul {
    margin: 12px 0;
    padding-left: 1.15rem;
    color: var(--cl-ink-soft);
}

.cl-modal-account-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(122, 89, 49, 0.26);
    border-radius: 8px;
    color: var(--cl-ink);
    background: rgba(255, 246, 220, 0.6);
}

.cl-modal-account-note i {
    color: var(--cl-red-dark);
    font-size: 1.2rem;
}

.cl-modal-footer {
    gap: 12px;
}

.cl-modal-price {
    margin-right: auto;
    color: var(--cl-red-dark);
    font-size: 1.35rem;
    font-weight: 800;
}

.cl-cart-table-wrap {
    border: 1px solid rgba(122, 89, 49, 0.24);
    border-radius: 8px;
}

@media (max-width: 1180px) {
    .cl-nav-brand {
        min-width: 218px;
        gap: 2px;
    }

    .cl-brand-seal {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .cl-brand-seal img {
        width: 76px;
        height: 76px;
    }

    .cl-nav-logo {
        width: 164px;
        height: 62px;
        margin-left: -34px;
    }

    .cl-nav-user-btn {
        min-width: 154px;
    }

    .cl-nav-user-copy strong {
        max-width: 104px;
    }

    .header-nav-top .item a,
    .header-nav-top .dropdown .nav-link {
        padding: 0 12px;
        font-size: 12px;
    }

    .cl-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1320px) {
    .header-nav {
        padding-top: 68px;
    }

    .header-nav.small-header {
        min-height: 160px;
    }

    .header-nav .navigation,
    #desktop-nav {
        display: none !important;
    }

    .header-mobile-nav {
        display: flex !important;
    }
}

@media (max-width: 980px) {
    .cl-front-grid,
    .cl-shop-placeholder-grid {
        grid-template-columns: 1fr;
    }

    .cl-home-actions-grid,
    .cl-curated-columns {
        grid-template-columns: 1fr;
    }

    .cl-shop-side-stack {
        position: relative;
        top: auto;
    }

    .cl-market-heading,
    .cl-support-board,
    .cl-shop-callout,
    .cl-shop-hero-card,
    .cl-auth-microsoft {
        align-items: flex-start;
        flex-direction: column;
    }

    .cl-shop-hero-actions {
        width: 100%;
    }

    .cl-modal-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 885px) {
    .header-nav {
        min-height: auto;
        padding-top: 68px;
    }

    .header-nav.small-header {
        min-height: 160px;
    }

    .header-nav .navigation {
        display: none;
    }

    .header-mobile-nav {
        display: flex;
    }

    .cl-hero {
        min-height: auto;
        align-items: flex-start !important;
        padding: 56px 0 100px;
    }

    .header-content.cl-hero {
        height: auto !important;
        align-items: flex-start !important;
    }

    .cl-hero-shell {
        justify-items: center;
    }

    .cl-hero-copy,
    .cl-section-heading,
    .cl-shop-heading {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .cl-hero-actions,
    .cl-world-actions,
    .cl-hero-badges {
        justify-content: center;
    }

    .go-to-button {
        display: none;
    }

    .stats-group,
    .cl-feature-grid {
        grid-template-columns: 1fr;
    }

    .cl-discord-card {
        grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
    }
}

@media (max-width: 560px) {
    .cl-shop-home-sidebar {
        display: none;
    }

    body:not(.admin) main.pt-5,
    main .container.pb-5 {
        padding-top: 30px !important;
    }

    .cl-front-column,
    .cl-market-board,
    .cl-support-board,
    .cl-shop-callout,
    .card,
    .list-group {
        border-radius: 7px !important;
    }

    .cl-hero {
        padding: 42px 0 100px;
    }

    .cl-hero h1 {
        font-size: clamp(1.9rem, 8.6vw, 2.25rem);
        letter-spacing: 0;
    }

    .cl-hero-copy {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        overflow: hidden;
    }

    .cl-hero-welcome {
        font-size: 1.12rem;
    }

    .cl-hero-logo {
        width: min(310px, 86vw);
        max-height: 104px;
        margin-bottom: 10px;
    }

    .cl-hero-sub,
    .cl-section-heading p,
    .cl-shop-heading p,
    .cl-shop-hero-card p {
        font-size: 0.98rem;
    }

    .cl-hero-badges span {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0.92rem;
    }

    .btn-volcano,
    .btn-primary,
    .btn.btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .cl-update-card {
        grid-template-columns: 1fr;
    }

    .cl-update-image,
    .cl-update-icon {
        width: 100%;
        height: 132px;
    }

    .cl-community-card img {
        height: 132px;
    }

    .cl-home-actions-grid,
    .cl-discord-card {
        grid-template-columns: 1fr;
    }

    .cl-discord-widget {
        min-height: 280px;
        height: 280px;
    }

    .cl-cart-sign {
        min-width: 0;
        width: 100%;
    }

    .cl-shop-hero-card,
    .cl-market-board,
    .cl-support-board,
    .cl-shop-categories,
    .cl-shop-user-panel,
    .cl-shop-gift-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cl-product-art {
        min-height: 160px;
    }

    .cl-shop-page,
    .cl-shop-hero-card,
    .cl-shop-hero-card > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .cl-shop-hero-card {
        overflow: hidden;
    }

    .cl-shop-hero-card h1 {
        font-size: clamp(1.8rem, 8.6vw, 2.25rem);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .cl-checkout-email {
        width: 100%;
        margin: 12px 0 0;
    }

    .cl-rubis-card,
    .cl-rubis-card-action .payment-method,
    .cl-payment-empty {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .cl-rubis-card strong,
    .cl-rubis-card-action .payment-method strong {
        margin-left: auto;
        margin-right: auto;
    }

    .cl-modal-footer,
    .cl-modal-footer form {
        width: 100%;
    }

    .cl-modal-price {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }

    .cl-category-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cl-category-shortcut-rubis {
        grid-column: 1 / -1;
    }

    .cl-rubis-highlight-grid {
        grid-template-columns: 1fr;
    }

    .cl-product-compact {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .cl-product-compact-art {
        width: 58px;
        height: 58px;
    }

    .cl-product-compact-action {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        align-items: center;
        justify-items: stretch;
    }

    .cl-product-compact-action .btn {
        width: auto;
    }
}

/* Cobblelands dark storefront refresh */
:root {
    --cl-page-bg: #11131f;
    --cl-panel-bg: #1a1c2e;
    --cl-panel-bg-2: #232538;
    --cl-panel-bg-3: #2b2a3d;
    --cl-text: #fff3d1;
    --cl-muted: #cdbf9a;
    --cl-line: rgba(232, 196, 106, 0.34);
    --cl-line-strong: rgba(232, 196, 106, 0.62);
    --cl-card-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

body {
    color: var(--cl-text);
    background:
        radial-gradient(circle at 18% 0%, rgba(185, 49, 58, 0.2), transparent 24rem),
        radial-gradient(circle at 86% 10%, rgba(232, 196, 106, 0.12), transparent 18rem),
        linear-gradient(180deg, #0e101a 0%, #151725 46%, #0b0d16 100%);
}

body::after {
    opacity: 0.16;
}

h1,
h2,
h3,
h4,
h5,
.page-container-title,
main h1,
main h2,
main h3,
main h4,
main h5,
main .page-container-title {
    color: var(--cl-text);
}

main {
    color: var(--cl-text);
    background:
        linear-gradient(180deg, rgba(17, 19, 31, 0.94), rgba(13, 15, 25, 0.98)),
        var(--cl-page-bg);
}

main::before {
    background-image:
        radial-gradient(rgba(232, 196, 106, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 196, 106, 0.025) 1px, transparent 1px);
    opacity: 0.22;
}

main p,
.card-body,
.post-text,
.feature-text,
.cl-section-heading p,
.cl-shop-heading p,
.text-body-secondary,
.text-muted {
    color: var(--cl-muted) !important;
}

main a:not(.btn):not(.btn-volcano):not(.cl-cart-sign):not(.cl-product-art-mini):not(.cl-news-image) {
    color: var(--cl-gold-light);
}

main a:not(.btn):not(.btn-volcano):hover {
    color: #ffffff;
}

.cl-brush-divider {
    left: 28px;
    right: 28px;
    bottom: -18px;
    height: 136px;
    background: var(--cl-page-bg);
    -webkit-mask: url("../img/cobblelands/brush-wild.png") center bottom / 116% 100% no-repeat;
    mask: url("../img/cobblelands/brush-wild.png") center bottom / 116% 100% no-repeat;
    transform: rotate(180deg);
}

.cl-nav-brand {
    min-width: 90px;
    gap: 0;
}

.cl-brand-seal {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
}

.cl-brand-seal img {
    width: 84px;
    height: 84px;
}

.cl-nav-logo {
    display: none;
}

.mobile-seal {
    width: 58px !important;
    height: 58px !important;
    max-width: none !important;
    object-fit: contain;
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.42));
}

.mobile-menu-seal {
    width: 82px !important;
    height: 82px !important;
    max-width: none !important;
    object-fit: contain;
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.42));
}

.header-mobile-nav .mobile-logo .mobile-seal {
    width: 58px !important;
    height: 58px !important;
}

.mobile-menu-header .mobile-menu-brand .mobile-menu-seal {
    width: 82px !important;
    height: 82px !important;
}

.cl-hero-logo {
    width: min(650px, 90vw);
    max-height: 205px;
}

.cl-front-column,
.cl-market-board,
.cl-support-board,
.cl-shop-callout,
.card,
.list-group,
.shop-sidebar,
.shop-sidebar-2,
.products .product,
.post,
.volcano-posts-empty,
.modal-content,
.cl-feature-card,
.feature-card,
.cl-shop-hero-card,
.cl-shop-sidebar-empty,
.cl-shop-gift-panel,
.cl-shop-user-panel,
.cl-shop-small-card,
.cl-shop-preview-card,
.cl-shop-product-card,
.cl-rubis-card,
.cl-payment-empty {
    color: var(--cl-text);
    border-color: var(--cl-line) !important;
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.98), rgba(22, 24, 39, 0.98)),
        var(--cl-panel-bg) !important;
    box-shadow: var(--cl-card-shadow);
}

.cl-front-column::before,
.cl-market-board::before,
.cl-support-board::before,
.cl-shop-callout::before,
.card::before,
.products .product::before,
.post::before {
    border-color: rgba(232, 196, 106, 0.14);
}

.cl-shop-hero-card {
    background:
        linear-gradient(100deg, rgba(31, 32, 50, 0.98), rgba(22, 24, 39, 0.86)),
        url("../img/cobblelands/village-gate.jpg") right center / cover no-repeat !important;
}

.cl-shop-hero-card p,
.cl-market-heading p,
.cl-support-board p,
.cl-shop-gift-panel p,
.cl-shop-user-card p,
.cl-feature-card p,
.cl-shop-preview-card p,
.cl-shop-product-card p,
.cl-product-note,
.cl-rubis-card p,
.cl-product-compact-copy p {
    color: var(--cl-muted);
}

.cl-kicker,
main .cl-kicker,
.cl-product-category,
.cl-update-card span,
.cl-shop-preview-card span,
.cl-rubis-highlight span,
.cl-product-compact-copy > span {
    color: #e2b55b;
}

.cl-home-simple {
    padding-top: clamp(42px, 6vw, 72px);
    padding-bottom: clamp(54px, 7vw, 90px);
}

.cl-home-simple-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 22px;
    align-items: start;
}

.cl-news-board {
    position: relative;
    min-width: 0;
    padding: clamp(20px, 4vw, 30px);
    border: 2px solid var(--cl-line);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.96), rgba(20, 22, 36, 0.98)),
        var(--cl-panel-bg);
    box-shadow: var(--cl-card-shadow);
}

.cl-news-list {
    display: grid;
    gap: 14px;
}

.cl-news-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(232, 196, 106, 0.22);
    border-radius: 9px;
    background: rgba(255, 246, 220, 0.045);
}

.cl-news-image {
    min-height: 116px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--cl-gold-light);
    border: 1px solid rgba(232, 196, 106, 0.22);
    border-radius: 8px;
    background: radial-gradient(circle, rgba(232, 196, 106, 0.18), rgba(185, 49, 58, 0.08));
    font-size: 2rem;
}

.cl-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cl-news-copy {
    min-width: 0;
}

.cl-news-copy > span {
    color: #e2b55b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cl-news-copy h3 {
    margin: 4px 0 6px;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.cl-news-copy p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--cl-muted);
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cl-empty-news {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px dashed rgba(232, 196, 106, 0.34);
    border-radius: 9px;
}

.cl-empty-news i {
    color: var(--cl-gold-light);
    font-size: 2rem;
}

.cl-empty-news h3,
.cl-empty-news p {
    margin: 0;
}

.cl-discord-card-static {
    min-height: 100%;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 16px;
    padding: clamp(22px, 4vw, 30px);
}

.cl-discord-mark {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, #5865f2, #3945b8);
    box-shadow: 0 10px 22px rgba(42, 52, 176, 0.28);
    font-size: 2.35rem;
}

.cl-discord-card-static .cl-discord-copy h2 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.cl-discord-preview {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(88, 101, 242, 0.18), rgba(255, 246, 220, 0.045));
}

.cl-discord-preview span {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cl-discord-preview strong {
    color: var(--cl-text);
    line-height: 1.45;
}

.cl-shop-shell {
    display: grid;
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.cl-shop-filter-panel {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.cl-shop-filter-head,
.cl-shop-account-panel,
.cl-shop-ranking-panel {
    padding: 18px;
    border: 2px solid var(--cl-line);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.98), rgba(22, 24, 39, 0.98)),
        var(--cl-panel-bg);
    box-shadow: var(--cl-card-shadow);
}

.cl-shop-filter-head h2,
.cl-shop-ranking-head h3 {
    margin: 2px 0 0;
    font-size: 1.16rem;
    text-transform: uppercase;
}

.cl-shop-filter-list {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 2px solid var(--cl-line);
    border-radius: 10px;
    background: rgba(255, 246, 220, 0.035);
}

.cl-shop-filter-button {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    color: var(--cl-text);
    border: 1px solid rgba(232, 196, 106, 0.22);
    border-radius: 8px;
    background: rgba(255, 246, 220, 0.055);
    font-weight: 800;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.cl-shop-filter-button i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-gold-light);
    border-radius: 8px;
    background: rgba(232, 196, 106, 0.12);
}

.cl-shop-filter-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cl-shop-filter-button strong {
    min-width: 28px;
    padding: 4px 7px;
    color: var(--cl-night);
    border-radius: 999px;
    background: var(--cl-gold);
    font-size: 0.78rem;
    text-align: center;
}

.cl-shop-filter-button:hover,
.cl-shop-filter-button.active {
    color: #ffffff;
    border-color: var(--cl-line-strong);
    background: linear-gradient(135deg, rgba(185, 49, 58, 0.46), rgba(232, 196, 106, 0.12));
    transform: translateX(3px);
}

.cl-shop-filter-rubis.active,
.cl-shop-filter-rubis:hover {
    background: linear-gradient(135deg, rgba(185, 49, 58, 0.72), rgba(232, 196, 106, 0.18));
}

.cl-shop-account-panel {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.cl-shop-account-panel img {
    width: 48px;
    height: 48px;
    border: 2px solid var(--cl-line);
    border-radius: 9px;
}

.cl-shop-account-panel span,
.cl-shop-account-panel strong,
.cl-shop-account-panel small {
    display: block;
}

.cl-shop-account-panel span {
    color: #e2b55b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cl-shop-account-panel small {
    color: var(--cl-gold-light);
    font-weight: 800;
}

.cl-shop-ranking-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.cl-shop-ranking-head > i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-night);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--cl-gold-light), var(--cl-gold));
}

.cl-shop-ranking-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cl-shop-ranking-list li {
    display: grid;
    grid-template-columns: 24px 36px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px;
    border: 1px solid rgba(232, 196, 106, 0.18);
    border-radius: 8px;
    background: rgba(255, 246, 220, 0.04);
}

.cl-shop-ranking-list li > span {
    color: var(--cl-gold-light);
    font-weight: 800;
    text-align: center;
}

.cl-shop-ranking-list img,
.cl-shop-ranking-list li > i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(232, 196, 106, 0.12);
}

.cl-shop-ranking-list strong,
.cl-shop-ranking-list small {
    display: block;
}

.cl-shop-ranking-list small {
    color: var(--cl-muted);
}

.cl-shop-ranking-list em {
    color: var(--cl-gold-light);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.cl-ranking-empty {
    grid-template-columns: 36px minmax(0, 1fr) !important;
}

.cl-shop-main {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.cl-shop-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 2px solid var(--cl-line);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.98), rgba(22, 24, 39, 0.98)),
        var(--cl-panel-bg);
    box-shadow: var(--cl-card-shadow);
}

.cl-shop-toolbar h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.3vw, 2.25rem);
}

.cl-shop-toolbar p {
    max-width: 420px;
    margin: 0;
    text-align: right;
}

.cl-shop-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.cl-shop-listing-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    padding: 14px;
    border: 2px solid rgba(232, 196, 106, 0.24);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.98), rgba(18, 20, 33, 0.98)),
        var(--cl-panel-bg);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cl-shop-listing-card:hover {
    border-color: var(--cl-line-strong);
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.cl-product-art-mini {
    min-height: 126px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--cl-gold-light);
    border: 1px solid rgba(232, 196, 106, 0.24);
    border-radius: 9px;
    background:
        radial-gradient(circle at 50% 20%, rgba(232, 196, 106, 0.2), transparent 58%),
        rgba(255, 246, 220, 0.05);
    font-size: 2.5rem;
}

.cl-product-art-mini img {
    width: 100%;
    height: 126px;
    object-fit: contain;
    padding: 12px;
}

.cl-product-card-body {
    min-width: 0;
}

.cl-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.cl-product-badges span,
.cl-product-category {
    width: fit-content;
    padding: 4px 8px;
    border: 1px solid rgba(232, 196, 106, 0.24);
    border-radius: 999px;
    background: rgba(232, 196, 106, 0.08);
    font-size: 0.66rem;
}

.cl-product-card-body h3 {
    margin: 0 0 7px;
    font-size: 1.18rem;
}

.cl-product-card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: var(--cl-muted);
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cl-product-card-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(232, 196, 106, 0.16);
}

.cl-product-card-footer strong {
    color: var(--cl-gold-light);
    font-size: 1rem;
}

.cl-product-card-footer .btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.76rem;
}

.cl-rubis-listing {
    border-color: rgba(185, 49, 58, 0.48);
    background:
        linear-gradient(145deg, rgba(74, 31, 42, 0.94), rgba(22, 24, 39, 0.98)),
        var(--cl-panel-bg);
}

.cl-rubis-listing .cl-product-art-mini {
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 243, 182, 0.38), transparent 58%),
        linear-gradient(145deg, rgba(185, 49, 58, 0.42), rgba(232, 196, 106, 0.1));
}

.cl-shop-empty-state {
    padding: 34px 20px;
    border: 2px dashed rgba(232, 196, 106, 0.28);
    border-radius: 10px;
    text-align: center;
    background: rgba(255, 246, 220, 0.035);
}

.cl-shop-empty-state i {
    color: var(--cl-gold-light);
    font-size: 2.4rem;
}

.cl-shop-empty-state h3,
.cl-shop-empty-state p {
    margin: 8px 0 0;
}

.cl-shop-categories .list-group-item,
.cl-category-shortcut,
.cl-rubis-highlight,
.cl-product-compact,
.cl-payment-soon,
.cl-modal-warning,
.pagination .page-link,
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--cl-text) !important;
    border-color: rgba(232, 196, 106, 0.22) !important;
    background: rgba(255, 246, 220, 0.055) !important;
}

.cl-shop-categories .list-group-item.active,
.cl-shop-categories .list-group-item:hover,
.cl-category-shortcut:hover,
.cl-category-shortcut-rubis {
    color: #ffffff !important;
    border-color: var(--cl-line-strong) !important;
    background: linear-gradient(135deg, rgba(185, 49, 58, 0.58), rgba(232, 196, 106, 0.12)) !important;
}

.cl-product-art,
.cl-product-art-placeholder,
.cl-modal-product-art,
.cl-update-card,
.stats-group .stats {
    border-color: rgba(232, 196, 106, 0.22);
    background:
        radial-gradient(circle at 50% 20%, rgba(232, 196, 106, 0.16), transparent 60%),
        rgba(255, 246, 220, 0.045);
}

main .form-control,
main .form-select,
main textarea {
    color: var(--cl-text);
    border-color: rgba(232, 196, 106, 0.28);
    background: rgba(8, 10, 18, 0.64);
}

main .form-control:focus,
main .form-select:focus,
main textarea:focus {
    color: #ffffff;
    border-color: var(--cl-gold);
    background: rgba(8, 10, 18, 0.82);
    box-shadow: 0 0 0 0.2rem rgba(232, 196, 106, 0.14);
}

.cl-footer-spacer {
    min-height: 120px;
    border-top: 1px solid rgba(232, 196, 106, 0.12);
    background:
        linear-gradient(180deg, rgba(17, 19, 31, 0.98), rgba(8, 9, 16, 1));
}

@media (max-width: 1180px) {
    .cl-nav-brand {
        min-width: 78px;
    }

    .cl-brand-seal {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .cl-brand-seal img {
        width: 78px;
        height: 78px;
    }
}

@media (max-width: 980px) {
    .cl-home-simple-grid,
    .cl-shop-shell {
        grid-template-columns: 1fr;
    }

    .cl-shop-filter-panel {
        display: contents;
    }

    .cl-shop-filter-head {
        order: 1;
    }

    .cl-shop-filter-list {
        order: 2;
    }

    .cl-shop-main {
        order: 3;
    }

    .cl-shop-account-panel,
    .cl-shop-ranking-panel,
    .cl-shop-filter-panel > .btn-volcano {
        order: 4;
    }

    .cl-shop-filter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cl-shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .cl-shop-toolbar p {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .cl-brush-divider {
        left: 8px;
        right: 8px;
        bottom: -14px;
        height: 108px;
        -webkit-mask-size: 128% 100%;
        mask-size: 128% 100%;
    }

    .cl-hero-logo {
        width: min(390px, 92vw);
        max-height: 132px;
    }

    .cl-news-card {
        grid-template-columns: 1fr;
    }

    .cl-news-image {
        min-height: 150px;
    }

    .cl-shop-filter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cl-product-card-footer {
        grid-template-columns: 1fr;
    }

    .cl-shop-filter-button {
        grid-template-columns: 34px minmax(0, 1fr) auto;
    }

    .cl-shop-ranking-list li {
        grid-template-columns: 24px 36px minmax(0, 1fr);
    }

    .cl-shop-ranking-list em {
        grid-column: 3;
    }

    .cl-shop-product-grid {
        grid-template-columns: 1fr;
    }

    .cl-product-card-footer .btn,
    .cl-product-card-footer .cl-payment-soon {
        width: 100%;
    }

    .cl-footer-spacer {
        min-height: 88px;
    }
}

/* Cobblelands shop tabs refresh */
.header-nav {
    min-height: 760px;
    background-color: var(--cl-page-bg);
}

.header-nav.small-header {
    min-height: 220px;
}

.header-nav::after {
    z-index: 1;
    background:
        radial-gradient(circle at 66% 42%, rgba(255, 232, 166, 0.24), transparent 18rem),
        linear-gradient(90deg, rgba(9, 10, 18, 0.78) 0%, rgba(17, 19, 31, 0.48) 46%, rgba(9, 10, 18, 0.7) 100%),
        linear-gradient(180deg, rgba(9, 10, 18, 0.58) 0%, rgba(12, 14, 24, 0.34) 44%, rgba(9, 10, 18, 0.9) 100%);
}

.header-nav::before {
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(4, 5, 10, 0.36), rgba(4, 5, 10, 0.08) 28%, rgba(4, 5, 10, 0.32)),
        radial-gradient(circle at 22% 72%, rgba(91, 122, 81, 0.16), transparent 20rem);
}

.header-nav .navigation {
    z-index: 8;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42);
}

.cl-hero {
    z-index: 4;
    min-height: 650px;
    padding: 74px 0 132px;
}

.cl-hero-copy {
    width: min(1180px, 100%);
}

.cl-hero-logo {
    width: min(1050px, 98vw);
    max-height: 340px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.cl-brush-divider {
    left: 0;
    right: 0;
    bottom: -18px;
    height: 136px;
    -webkit-mask-size: 116% 100%;
    mask-size: 116% 100%;
}

.cl-discord-widget-card {
    grid-template-columns: minmax(210px, 0.74fr) minmax(300px, 1.26fr);
}

.cl-discord-widget-card .cl-discord-copy {
    display: grid;
    align-content: center;
    gap: 10px;
}

.cl-discord-widget-card .btn-volcano {
    width: fit-content;
}

.cl-shop-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.cl-shop-category-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    padding: 12px;
    border: 2px solid var(--cl-line);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.98), rgba(22, 24, 39, 0.98)),
        var(--cl-panel-bg);
    box-shadow: var(--cl-card-shadow);
}

.cl-shop-tab {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--cl-text);
    border: 1px solid rgba(232, 196, 106, 0.24);
    border-radius: 8px;
    background: rgba(255, 246, 220, 0.055);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cl-shop-tab i {
    color: var(--cl-gold-light);
}

.cl-shop-tab:hover,
.cl-shop-tab.active {
    color: #ffffff;
    border-color: var(--cl-line-strong);
    background: linear-gradient(135deg, rgba(185, 49, 58, 0.5), rgba(232, 196, 106, 0.12));
    transform: translateY(-2px);
}

.cl-shop-tab-rubis:hover,
.cl-shop-tab-rubis.active {
    background: linear-gradient(135deg, rgba(185, 49, 58, 0.72), rgba(232, 196, 106, 0.16));
}

.cl-shop-panel[hidden] {
    display: none !important;
}

.cl-shop-panel {
    display: grid;
    gap: 18px;
}

.cl-shop-section-board,
.cl-shop-side-card,
.cl-shop-category-side .cl-shop-ranking-panel {
    padding: clamp(18px, 3vw, 24px);
    border: 2px solid var(--cl-line);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.98), rgba(22, 24, 39, 0.98)),
        var(--cl-panel-bg);
    box-shadow: var(--cl-card-shadow);
}

.cl-shop-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.cl-shop-section-heading h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.3vw, 2.2rem);
}

.cl-shop-section-heading p {
    max-width: 460px;
    margin: 0;
    color: var(--cl-muted);
    text-align: right;
}

.cl-shop-section-heading-small {
    margin-bottom: 12px;
}

.cl-shop-featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.cl-shop-home-split {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 18px;
    align-items: start;
}

.cl-shop-ranking-main {
    min-height: 100%;
}

.cl-shop-category-layout {
    display: grid;
    grid-template-columns: minmax(230px, 285px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.cl-shop-category-side {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.cl-shop-side-card h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.cl-shop-side-card p {
    margin: 0;
    color: var(--cl-muted);
}

.cl-shop-listing-card {
    cursor: pointer;
}

.cl-product-card-body {
    display: grid;
    align-content: start;
    gap: 8px;
}

.cl-product-badges {
    min-height: 25px;
    margin-bottom: 2px;
}

.cl-product-badges span,
.cl-product-category {
    margin: 0;
    line-height: 1.15;
}

.cl-product-card-body h3 {
    margin: 0;
    line-height: 1.12;
}

.cl-product-card-body p {
    min-height: 48px;
}

.cl-product-card-footer {
    margin-top: 4px;
    padding-top: 14px;
}

.cl-card-detail-button {
    pointer-events: auto;
}

.cl-rubis-modal-body {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.cl-rubis-modal-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-gold-light);
    border: 1px solid rgba(232, 196, 106, 0.32);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(185, 49, 58, 0.34), rgba(232, 196, 106, 0.12));
    font-size: 2rem;
}

.cl-rubis-modal-body strong {
    display: block;
    color: var(--cl-red-dark);
    font-size: 1.55rem;
}

.cl-rubis-modal-body p {
    margin: 4px 0 0;
}

.cl-shop-empty-state-small {
    padding: 22px 16px;
}

@media (max-width: 980px) {
    .header-nav {
        min-height: auto;
    }

    .cl-hero {
        min-height: auto;
        padding: 54px 0 112px;
    }

    .cl-hero-logo {
        width: min(720px, 100%);
        max-height: 230px;
    }

    .cl-discord-widget-card,
    .cl-shop-home-split,
    .cl-shop-category-layout {
        grid-template-columns: 1fr;
    }

    .cl-shop-category-side {
        position: relative;
        top: auto;
        order: 2;
    }

    .cl-shop-category-layout > .cl-shop-product-grid {
        order: 1;
    }

    .cl-shop-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cl-shop-section-heading p {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .cl-brush-divider {
        left: 0;
        right: 0;
        bottom: -14px;
        height: 108px;
        -webkit-mask-size: 128% 100%;
        mask-size: 128% 100%;
    }

    .cl-hero-copy {
        padding-left: 0;
        padding-right: 0;
    }

    .cl-hero-logo {
        width: min(560px, 112vw);
        max-height: 190px;
        margin-left: 50%;
        transform: translateX(-50%);
    }

    .cl-shop-category-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cl-shop-tab {
        min-height: 46px;
        font-size: 0.82rem;
    }

    .cl-rubis-modal-body {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

/* Home: compact three-card layout */
.cl-home-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.cl-home-info-card,
.cl-home-card-grid .cl-news-board,
.cl-home-card-grid .cl-discord-card {
    min-width: 0;
    min-height: 360px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.4vw, 28px);
    border: 2px solid var(--cl-line);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.96), rgba(20, 22, 36, 0.99)),
        var(--cl-panel-bg);
    box-shadow: var(--cl-card-shadow);
}

.cl-home-card-grid .cl-market-heading {
    margin-bottom: 14px;
}

.cl-home-card-grid .cl-market-heading h2,
.cl-home-card-grid .cl-discord-copy h2 {
    margin-bottom: 0;
    color: var(--cl-text);
    font-size: clamp(1.55rem, 2.1vw, 2.15rem);
    line-height: 1.14;
}

.cl-home-card-grid .cl-news-list {
    flex: 1;
    min-height: 0;
}

.cl-home-card-grid .cl-news-card {
    min-height: 0;
    height: 100%;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.cl-home-card-grid .cl-news-image {
    min-height: 118px;
}

.cl-home-card-grid .cl-news-copy p {
    -webkit-line-clamp: 3;
}

.cl-community-card {
    justify-content: center;
}

.cl-community-card::before,
.cl-discord-widget-only::before {
    inset: 8px;
}

.cl-community-card .cl-discord-copy {
    display: grid;
    gap: 12px;
}

.cl-community-card .cl-discord-copy p {
    margin: 0;
    color: rgba(255, 246, 220, 0.8);
}

.cl-community-points {
    display: grid;
    gap: 8px;
    margin: 4px 0 8px;
}

.cl-community-points span {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    color: var(--cl-text);
    border: 1px solid rgba(232, 196, 106, 0.2);
    border-radius: 8px;
    background: rgba(255, 246, 220, 0.045);
    font-weight: 800;
}

.cl-community-points i {
    color: var(--cl-gold-light);
}

.cl-community-card .btn-volcano {
    width: fit-content;
    margin-top: 2px;
}

.cl-discord-widget-only {
    padding: 10px;
}

.cl-discord-frame-shell {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #1e1f22;
}

.cl-discord-widget-only .cl-discord-widget {
    width: 118%;
    height: 118%;
    min-height: 0;
    border-radius: 8px;
    transform: scale(0.85);
    transform-origin: top left;
}

@media (max-width: 1200px) {
    .cl-home-card-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .cl-discord-widget-only {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .cl-home-card-grid {
        grid-template-columns: 1fr;
    }

    .cl-home-info-card,
    .cl-home-card-grid .cl-news-board,
    .cl-home-card-grid .cl-discord-card {
        min-height: 0;
    }

    .cl-home-card-grid .cl-discord-widget-only {
        min-height: 360px;
    }

    .cl-home-card-grid .cl-discord-frame-shell {
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    .cl-home-card-grid .cl-news-card {
        grid-template-columns: 1fr;
    }

    .cl-home-card-grid .cl-news-image {
        min-height: 120px;
    }

    .cl-community-card .btn-volcano {
        width: 100%;
    }
}

/* Shop flow polish */
.cl-cart-total-pill {
    min-width: 190px;
    padding: 12px 16px;
    color: var(--cl-paper-light);
    border: 2px solid rgba(232, 196, 106, 0.58);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(22, 24, 39, 0.98), rgba(12, 13, 24, 0.98));
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.38);
    text-transform: uppercase;
}

.cl-cart-total-pill span {
    display: block;
    color: rgba(255, 246, 220, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.cl-cart-total-pill strong {
    display: block;
    color: var(--cl-gold-light);
    font-size: 1.16rem;
    line-height: 1.2;
}

.cl-cart-pulse {
    animation: clCartPulse 0.52s ease both;
}

.cl-cart-flyer {
    position: fixed;
    z-index: 3000;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #ffffff;
    border: 2px solid var(--cl-gold-light);
    border-radius: 999px;
    background: linear-gradient(145deg, var(--cl-red), var(--cl-red-dark));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.72s ease;
}

.cl-cart-flyer.is-flying {
    transform: translate(calc(-50% + var(--fly-x)), calc(-50% + var(--fly-y))) scale(0.28);
    opacity: 0.08;
}

@keyframes clCartPulse {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    45% {
        transform: translateY(-2px) scale(1.035);
        box-shadow: 0 0 0 4px rgba(232, 196, 106, 0.16), 0 5px 0 rgba(0, 0, 0, 0.38);
    }
}

.cl-shop-category-content {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.cl-shop-category-note {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 2px solid rgba(232, 196, 106, 0.22);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.98), rgba(18, 20, 33, 0.98)),
        var(--cl-panel-bg);
    box-shadow: var(--cl-card-shadow);
}

.cl-shop-category-note h2 {
    margin: 0;
    color: var(--cl-text);
    font-size: clamp(1.08rem, 1.45vw, 1.36rem);
    text-transform: uppercase;
}

.cl-shop-category-note p {
    max-width: 780px;
    margin: 0;
    color: var(--cl-muted);
    line-height: 1.45;
}

.cl-shop-player-panel {
    display: grid;
    gap: 14px;
    overflow: hidden;
}

.cl-shop-player-render {
    min-height: 180px;
    display: flex;
    align-items: end;
    justify-content: center;
    border: 1px solid rgba(232, 196, 106, 0.22);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 18%, rgba(232, 196, 106, 0.2), transparent 58%),
        linear-gradient(180deg, rgba(255, 246, 220, 0.06), rgba(255, 246, 220, 0.02));
}

.cl-shop-player-render img {
    width: min(142px, 82%);
    max-height: 176px;
    object-fit: contain;
    filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.36));
}

.cl-shop-player-copy h2,
.cl-shop-player-login h2 {
    margin: 4px 0 4px;
    color: var(--cl-text);
    font-size: 1.32rem;
}

.cl-shop-player-copy p,
.cl-shop-player-login p {
    margin: 0;
    color: var(--cl-muted);
}

.cl-shop-player-copy > strong {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 8px 11px;
    color: var(--cl-gold-light);
    border: 1px solid rgba(232, 196, 106, 0.34);
    border-radius: 999px;
    background: rgba(232, 196, 106, 0.08);
    font-size: 1.05rem;
}

.cl-shop-player-login {
    display: grid;
    gap: 10px;
}

.cl-shop-player-login > i {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-gold-light);
    border: 1px solid rgba(232, 196, 106, 0.28);
    border-radius: 14px;
    background: rgba(255, 246, 220, 0.055);
    font-size: 1.8rem;
}

.cl-shop-featured-grid {
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(230px, 260px));
}

.cl-product-compact-action strong {
    padding: 6px 10px;
    color: var(--cl-gold-light);
    border: 1px solid rgba(232, 196, 106, 0.3);
    border-radius: 999px;
    background: rgba(232, 196, 106, 0.1);
    font-size: 0.9rem;
    white-space: nowrap;
}

.modal-content.cl-product-modal {
    color: var(--cl-text) !important;
    border: 2px solid var(--cl-line);
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.99), rgba(16, 18, 31, 0.99)),
        var(--cl-panel-bg) !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
}

.cl-product-modal .modal-header,
.cl-product-modal .modal-body,
.cl-product-modal .modal-footer {
    color: var(--cl-text) !important;
    border-color: rgba(232, 196, 106, 0.18) !important;
    background: rgba(255, 246, 220, 0.025) !important;
}

.cl-product-modal .modal-title,
.cl-product-modal .cl-modal-title {
    color: var(--cl-text) !important;
}

.cl-product-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(1.8) !important;
    opacity: 0.86;
}

.cl-product-modal .cl-modal-product-art {
    border-color: rgba(232, 196, 106, 0.24);
    background:
        radial-gradient(circle at 50% 24%, rgba(232, 196, 106, 0.18), transparent 62%),
        rgba(255, 246, 220, 0.045);
}

.cl-product-modal .cl-modal-product-copy,
.cl-product-modal .cl-modal-product-copy p,
.cl-product-modal .cl-modal-product-copy li,
.cl-product-modal .cl-modal-product-copy ul {
    color: var(--cl-muted) !important;
}

.cl-product-modal .cl-modal-account-note {
    color: var(--cl-text);
    border-color: rgba(232, 196, 106, 0.24);
    background: rgba(255, 246, 220, 0.055);
}

.cl-product-modal .cl-modal-account-note i {
    color: var(--cl-gold-light);
}

.cl-product-modal .cl-modal-price,
.cl-rubis-modal-body strong {
    color: var(--cl-gold-light);
}

.cl-rubis-offer-modal .modal-body,
.cl-rubis-offer-modal .modal-footer {
    background: rgba(255, 246, 220, 0.025) !important;
}

@media (max-width: 980px) {
    .cl-shop-category-layout > .cl-shop-category-content {
        order: 1;
    }

    .cl-shop-category-layout > .cl-shop-category-side {
        order: 2;
    }
}

/* Final visual polish */
.cl-shop-wordmark {
    position: relative;
    z-index: 12;
    display: flex;
    justify-content: center;
    margin: clamp(-330px, -22vw, -285px) 0 clamp(-54px, -3.2vw, -40px);
    pointer-events: none;
}

.cl-shop-wordmark img {
    width: min(780px, 86vw);
    height: auto;
    max-height: none;
    object-fit: contain;
    filter:
        drop-shadow(0 5px 0 rgba(0, 0, 0, 0.42))
        drop-shadow(0 20px 34px rgba(0, 0, 0, 0.58));
}

.cl-shop-featured-grid {
    justify-content: stretch;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cl-shop-featured-grid > .cl-shop-listing-card {
    width: 100%;
}

.cl-product-compact-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 6px;
    min-width: max-content;
}

.cl-product-compact-action strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.cl-product-compact-action .btn {
    margin: 0;
}

.cl-shop-toast-container {
    position: fixed;
    right: clamp(14px, 2.2vw, 28px);
    bottom: clamp(14px, 2.2vw, 28px);
    z-index: 3100;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 28px));
    pointer-events: none;
}

.cl-shop-toast {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    color: var(--cl-text);
    border: 2px solid rgba(232, 196, 106, 0.34);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.98), rgba(14, 16, 28, 0.98));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.cl-shop-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cl-shop-toast i {
    color: var(--cl-gold-light);
    font-size: 1.35rem;
}

.cl-shop-toast-danger {
    border-color: rgba(185, 49, 58, 0.72);
}

.cl-shop-toast-danger i {
    color: #ff8a8a;
}

.cl-cart-total-pill {
    color: var(--cl-paper-light) !important;
    text-decoration: none !important;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

main a.cl-cart-total-pill {
    color: var(--cl-paper-light) !important;
    text-decoration: none !important;
}

.cl-cart-total-pill:hover,
.cl-cart-total-pill:focus-visible {
    color: #ffffff;
    border-color: rgba(130, 205, 113, 0.88);
    background:
        linear-gradient(180deg, rgba(34, 92, 52, 0.98), rgba(17, 54, 31, 0.98));
    box-shadow: 0 0 0 4px rgba(130, 205, 113, 0.12), 0 5px 0 rgba(0, 0, 0, 0.38);
    transform: translateY(-2px);
}

.cl-cart-total-pill:hover span,
.cl-cart-total-pill:focus-visible span {
    color: rgba(255, 255, 255, 0.82);
}

.cl-shop-player-render {
    min-height: 270px;
    align-items: center;
}

.cl-shop-player-render img {
    width: min(230px, 96%);
    max-height: 254px;
}

.cl-shop-player-panel {
    padding: 18px;
}

.cl-shop-player-copy {
    text-align: center;
}

.cl-shop-player-copy > strong {
    margin-left: auto;
    margin-right: auto;
}

.cl-home-card-grid {
    align-items: stretch;
}

.cl-home-card-grid .cl-market-heading,
.cl-community-card .cl-discord-copy {
    text-align: center;
}

.cl-home-card-grid .cl-kicker {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.cl-home-card-grid .cl-news-card {
    grid-template-columns: 1fr;
    align-content: start;
}

.cl-home-card-grid .cl-news-image {
    width: 100%;
}

.cl-news-more-button {
    width: fit-content;
    margin: 8px auto 0;
}

.cl-discord-widget-bare,
.cl-home-card-grid .cl-discord-widget-bare {
    min-height: 360px;
    padding: 0;
    justify-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.cl-discord-widget-bare::before {
    display: none;
}

.cl-discord-widget-bare .cl-discord-frame-shell {
    width: min(100%, 360px);
    min-height: 100%;
    margin: auto;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.cl-community-card .cl-discord-copy {
    min-height: 100%;
    align-content: center;
}

.cl-community-card .btn-volcano {
    justify-self: center;
    margin-top: auto;
}

.cl-footer-simple {
    min-height: auto;
    padding: 58px 0 28px;
    color: rgba(255, 246, 220, 0.78);
    border-top: 1px solid rgba(232, 196, 106, 0.18);
    background:
        linear-gradient(180deg, rgba(17, 19, 31, 0.98), rgba(8, 9, 16, 1));
}

.cl-footer-simple .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
}

.cl-footer-simple p {
    margin: 0;
}

.cl-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    font-size: 0.88rem;
}

.cl-footer-simple a {
    color: var(--cl-gold-light);
    font-weight: 900;
    text-decoration: none;
}

.cl-footer-simple a:hover {
    color: #ffffff;
}

.cl-legal-page {
    max-width: 980px;
    margin: 0 auto;
}

.cl-legal-card {
    border: 2px solid var(--cl-line);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.96), rgba(18, 20, 33, 0.98)),
        var(--cl-panel-bg);
    box-shadow: var(--cl-card-shadow);
}

.cl-legal-card h1 {
    margin-bottom: 12px;
    color: var(--cl-paper);
    text-transform: uppercase;
}

.cl-legal-content {
    color: rgba(255, 246, 220, 0.88);
    line-height: 1.72;
}

.cl-legal-content h2,
.cl-legal-content h3 {
    margin-top: 28px;
    color: var(--cl-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cl-legal-content a {
    color: var(--cl-gold-light);
    font-weight: 800;
}

.cl-legal-content ul {
    padding-left: 1.25rem;
}

.cl-launcher-page {
    display: grid;
    gap: 22px;
}

.cl-launcher-hero,
.cl-launcher-downloads,
.cl-launcher-info-grid article {
    border: 2px solid var(--cl-line);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(35, 37, 56, 0.96), rgba(18, 20, 33, 0.98)),
        var(--cl-panel-bg);
    box-shadow: var(--cl-card-shadow);
}

.cl-launcher-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 22px;
    align-items: center;
    padding: clamp(24px, 4vw, 36px);
}

.cl-launcher-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 4.2vw, 4.4rem);
    text-transform: uppercase;
}

.cl-launcher-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--cl-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.cl-launcher-seal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-launcher-seal img {
    width: min(180px, 100%);
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.36));
}

.cl-launcher-downloads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
}

.cl-launcher-download-card {
    min-height: 190px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 22px;
    color: var(--cl-text);
    border: 1px solid rgba(232, 196, 106, 0.28);
    border-radius: 10px;
    background: rgba(255, 246, 220, 0.045);
    text-align: center;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cl-launcher-download-card:hover {
    color: #ffffff;
    border-color: var(--cl-line-strong);
    background: linear-gradient(135deg, rgba(185, 49, 58, 0.44), rgba(232, 196, 106, 0.1));
    transform: translateY(-3px);
}

.cl-launcher-download-card i {
    color: var(--cl-gold-light);
    font-size: 2.8rem;
}

.cl-launcher-download-card span {
    color: var(--cl-gold-light);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cl-launcher-download-card strong {
    font-size: 1.5rem;
}

.cl-launcher-download-card small {
    color: var(--cl-muted);
}

.cl-launcher-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cl-launcher-info-grid article {
    padding: 22px;
}

.cl-launcher-info-grid i {
    color: var(--cl-gold-light);
    font-size: 2rem;
}

.cl-launcher-info-grid h2 {
    margin: 12px 0 8px;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.cl-launcher-info-grid p {
    margin: 0;
    color: var(--cl-muted);
}

@media (max-width: 980px) {
    .cl-shop-wordmark {
        margin-top: -240px;
        margin-bottom: -38px;
    }

    .cl-shop-wordmark img {
        width: min(620px, 92vw);
    }

    .cl-launcher-hero,
    .cl-launcher-downloads,
    .cl-launcher-info-grid {
        grid-template-columns: 1fr;
    }

    .cl-launcher-seal {
        order: -1;
    }
}

@media (max-width: 560px) {
    .cl-shop-wordmark {
        margin-top: -188px;
        margin-bottom: -22px;
    }

    .cl-shop-wordmark img {
        width: min(430px, 102vw);
    }

    .cl-product-compact {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .cl-product-compact-action {
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: center;
    }

    .cl-home-card-grid .cl-news-card {
        grid-template-columns: 1fr;
    }

    .cl-footer-simple .container {
        justify-content: center;
        text-align: center;
    }
}

/* Hero responsive guard: keep CTA buttons visible on short screens. */
.header-nav:not(.small-header) {
    min-height: clamp(610px, 100vh, 760px);
}

.header-nav:not(.small-header) .cl-hero {
    min-height: calc(clamp(610px, 100vh, 760px) - 76px);
    padding: clamp(36px, 7vh, 74px) 0 clamp(106px, 14vh, 132px);
}

.cl-hero-copy {
    display: grid;
    justify-items: center;
    gap: clamp(7px, 1.2vh, 12px);
}

.cl-hero-logo {
    margin: 0 auto;
}

.cl-hero-actions {
    position: relative;
    z-index: 12;
    width: min(840px, 100%);
    margin-top: clamp(10px, 1.8vh, 18px);
    gap: 10px;
}

.cl-hero-actions .btn-volcano {
    flex: 0 1 auto;
    min-width: 150px;
    min-height: 42px;
    padding-right: 16px;
    padding-left: 16px;
}

.cl-brush-divider {
    z-index: 3;
}

@media (min-width: 1201px) and (max-height: 760px) {
    .header-nav:not(.small-header) {
        min-height: 100vh;
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(100vh - 76px);
        align-items: flex-start;
        padding-top: clamp(18px, 4vh, 34px);
        padding-bottom: 92px;
    }

    .header-nav:not(.small-header) .cl-hero-copy {
        width: min(900px, 100%);
        padding-top: 0;
        padding-bottom: 0;
        gap: 6px;
    }

    .header-nav:not(.small-header) .cl-hero-welcome {
        margin-bottom: 0;
        font-size: clamp(1.05rem, 2.2vh, 1.35rem);
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(640px, 58vw);
        max-height: clamp(110px, 22vh, 165px);
    }

    .header-nav:not(.small-header) .cl-hero-sub {
        max-width: 650px;
        font-size: clamp(0.92rem, 2vh, 1.05rem);
        line-height: 1.42;
    }

    .header-nav:not(.small-header) .cl-hero-actions {
        margin-top: 8px;
        gap: 8px;
    }

    .header-nav:not(.small-header) .cl-hero-actions .btn-volcano {
        min-width: 136px;
        min-height: 38px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 0.84rem;
    }

    .header-nav:not(.small-header) .cl-brush-divider {
        height: 108px;
    }
}

@media (max-width: 1200px) {
    .header-nav:not(.small-header) {
        min-height: clamp(600px, 100vh, 760px);
        padding-top: 68px;
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(clamp(600px, 100vh, 760px) - 68px);
        padding-top: clamp(28px, 6vh, 54px);
        padding-bottom: clamp(96px, 13vh, 118px);
    }
}

@media (max-width: 1200px) and (max-height: 720px) {
    .header-nav:not(.small-header) {
        min-height: 100vh;
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(100vh - 68px);
        align-items: flex-start !important;
        padding-top: 20px;
        padding-bottom: 84px;
    }

    .header-nav:not(.small-header) .cl-hero-copy {
        width: min(850px, 100%);
        padding-top: 0;
        padding-bottom: 0;
        gap: 6px;
    }

    .header-nav:not(.small-header) .cl-hero-welcome {
        margin-bottom: 0;
        font-size: clamp(1rem, 2.3vh, 1.25rem);
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(560px, 66vw);
        max-height: clamp(106px, 22vh, 150px);
    }

    .header-nav:not(.small-header) .cl-hero-sub {
        max-width: 620px;
        font-size: clamp(0.9rem, 2.2vh, 1rem);
        line-height: 1.4;
    }

    .header-nav:not(.small-header) .cl-hero-actions {
        margin-top: 8px;
        gap: 8px;
    }

    .header-nav:not(.small-header) .cl-hero-actions .btn-volcano {
        min-width: 136px;
        min-height: 38px;
        padding-right: 11px;
        padding-left: 11px;
        font-size: 0.82rem;
    }

    .header-nav:not(.small-header) .cl-brush-divider {
        height: 104px;
    }
}

@media (max-width: 885px) {
    .header-nav:not(.small-header) {
        min-height: auto;
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: auto;
        padding-top: clamp(34px, 7vw, 54px);
        padding-bottom: 112px;
    }

    .cl-hero-actions {
        width: min(520px, 100%);
    }
}

@media (max-width: 560px) {
    .header-nav:not(.small-header) .cl-hero {
        padding-top: 34px;
        padding-bottom: 104px;
    }

    .header-nav:not(.small-header) .cl-hero-copy {
        gap: 7px;
    }

    .cl-hero-actions {
        width: min(340px, 100%);
        gap: 8px;
    }

    .header-nav:not(.small-header) .cl-hero-actions .btn-volcano {
        width: 100%;
        min-height: 42px;
        font-size: 0.86rem;
    }
}

/* Shop product grids: always 4 > 2 > 1 columns, never 3 + 1. */
.cl-shop-product-grid,
.cl-shop-featured-grid,
.cl-shop-placeholder-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
}

.cl-shop-product-grid > .cl-shop-listing-card,
.cl-shop-featured-grid > .cl-shop-listing-card {
    width: 100%;
}

@media (max-width: 1180px) {
    .cl-shop-product-grid,
    .cl-shop-featured-grid,
    .cl-shop-placeholder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .cl-shop-product-grid,
    .cl-shop-featured-grid,
    .cl-shop-placeholder-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Community favorites: avoid cramped titles on medium widths. */
.cl-product-compact-copy h3 {
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .cl-product-compact {
        grid-template-columns: 66px minmax(0, 1fr) !important;
        grid-template-areas:
            "art copy"
            "art action";
        align-items: center;
    }

    .cl-product-compact-art {
        grid-area: art;
    }

    .cl-product-compact-copy {
        grid-area: copy;
        min-width: 0;
    }

    .cl-product-compact-action {
        grid-area: action;
        width: 100%;
        min-width: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        justify-self: stretch;
        gap: 8px;
    }
}

@media (max-width: 560px) {
    .cl-product-compact {
        grid-template-columns: 58px minmax(0, 1fr) !important;
        grid-template-areas:
            "art copy"
            "action action";
    }

    .cl-product-compact-action {
        justify-content: flex-end;
    }
}

@media (max-width: 420px) {
    .cl-product-compact-action {
        justify-content: stretch;
    }

    .cl-product-compact-action strong,
    .cl-product-compact-action .btn {
        flex: 1 1 auto;
    }
}

/* Player account card: game profile UI. */
.cl-player-profile-card {
    position: relative;
    isolation: isolate;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 16px !important;
    overflow: hidden;
    border-color: rgba(232, 196, 106, 0.44);
    background:
        radial-gradient(circle at 50% -10%, rgba(232, 196, 106, 0.2), transparent 40%),
        radial-gradient(circle at 88% 18%, rgba(185, 49, 58, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(35, 37, 56, 0.99), rgba(16, 18, 31, 0.99)),
        var(--cl-panel-bg);
}

.cl-player-profile-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(232, 196, 106, 0.14);
    border-radius: 8px;
}

.cl-player-profile-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-width: 0;
}

.cl-player-stage {
    position: relative;
    min-height: 245px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(232, 196, 106, 0.28);
    border-radius: 14px;
    background:
        radial-gradient(ellipse at 50% 16%, rgba(232, 196, 106, 0.32), transparent 34%),
        linear-gradient(180deg, rgba(255, 246, 220, 0.07), rgba(255, 246, 220, 0.025));
}

.cl-player-stage::after {
    content: "";
    position: absolute;
    right: 22%;
    bottom: 14px;
    left: 22%;
    height: 16px;
    border-radius: 999px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.45), transparent 70%);
}

.cl-player-stage-glow {
    position: absolute;
    inset: 14px;
    border-radius: 12px;
    background:
        linear-gradient(90deg, transparent 0, rgba(232, 196, 106, 0.12) 50%, transparent 100%),
        repeating-linear-gradient(90deg, rgba(255, 246, 220, 0.025) 0 1px, transparent 1px 18px);
    opacity: 0.78;
}

.cl-player-render-img {
    position: relative;
    z-index: 1;
    width: min(320px, 118%) !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin-bottom: -16px;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    image-rendering: auto;
    transform: scale(1.38);
    transform-origin: bottom center;
    filter:
        drop-shadow(0 18px 16px rgba(0, 0, 0, 0.48))
        drop-shadow(0 0 18px rgba(232, 196, 106, 0.16));
}

.cl-player-profile-info {
    display: grid;
    gap: 8px;
    min-width: 0;
    text-align: left;
}

.cl-player-profile-info .cl-kicker {
    margin-bottom: 0;
}

.cl-player-profile-info h2 {
    margin: 0;
    overflow: hidden;
    color: var(--cl-text);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.08;
    text-overflow: ellipsis;
}

.cl-player-profile-info p {
    margin: 0;
    color: var(--cl-muted);
    line-height: 1.4;
}

.cl-player-balance {
    display: grid;
    gap: 4px;
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(232, 196, 106, 0.36);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(28, 70, 42, 0.58), rgba(19, 22, 34, 0.88));
    box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.05);
}

.cl-player-balance span {
    color: rgba(255, 246, 220, 0.68);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.cl-player-balance strong {
    display: block;
    color: var(--cl-gold-light);
    font-size: 1.24rem;
    line-height: 1.1;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.52);
}

.cl-player-profile-status {
    display: grid;
    gap: 8px;
}

.cl-player-profile-status span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    color: var(--cl-text);
    border: 1px solid rgba(232, 196, 106, 0.18);
    border-radius: 9px;
    background: rgba(255, 246, 220, 0.045);
    font-size: 0.86rem;
    font-weight: 800;
}

.cl-player-profile-status i {
    color: var(--cl-gold-light);
}

.cl-player-login-card {
    display: grid;
    gap: 14px;
    justify-items: start;
}

.cl-player-login-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-gold-light);
    border: 1px solid rgba(232, 196, 106, 0.28);
    border-radius: 16px;
    background:
        radial-gradient(circle, rgba(232, 196, 106, 0.2), rgba(255, 246, 220, 0.055));
    font-size: 2rem;
}

.cl-player-login-card h2 {
    margin: 4px 0 6px;
    color: var(--cl-text);
    font-size: 1.35rem;
}

.cl-player-login-card p {
    margin: 0;
    color: var(--cl-muted);
    line-height: 1.45;
}

@media (max-width: 980px) and (min-width: 641px) {
    .cl-player-profile-top {
        grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .cl-player-stage {
        min-height: 260px;
    }

    .cl-player-profile-info {
        align-content: center;
    }

    .cl-player-profile-status {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .cl-player-profile-card {
        padding: 14px !important;
    }

    .cl-player-stage {
        min-height: 220px;
    }

    .cl-player-render-img {
        width: min(280px, 120%) !important;
        transform: scale(1.34);
    }

    .cl-player-profile-status span {
        font-size: 0.8rem;
    }
}

/* Home hero: tighter logo rhythm and safe space above the brush. */
.header-nav:not(.small-header) {
    min-height: clamp(640px, 100vh, 780px);
}

.header-nav:not(.small-header) .cl-hero {
    z-index: 6;
    min-height: calc(clamp(640px, 100vh, 780px) - 76px);
    padding: clamp(24px, 5vh, 56px) 0 clamp(126px, 16vh, 158px);
}

.header-nav:not(.small-header) .cl-hero-copy {
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.header-nav:not(.small-header) .cl-hero-welcome {
    margin-bottom: 0;
}

.header-nav:not(.small-header) .cl-hero-logo {
    width: min(900px, 78vw);
    height: auto;
    max-height: none;
    margin: clamp(-122px, -8vw, -86px) auto clamp(-108px, -7vw, -76px);
    transform: none;
}

.header-nav:not(.small-header) .cl-hero-sub {
    margin-top: 0;
}

.header-nav:not(.small-header) .cl-hero-actions {
    position: relative;
    z-index: 30;
    margin-top: clamp(8px, 1.1vh, 14px);
}

.header-nav:not(.small-header) .cl-brush-divider {
    z-index: 2;
}

@media (min-width: 1201px) and (max-height: 760px) {
    .header-nav:not(.small-header) {
        min-height: 100vh;
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(100vh - 76px);
        padding-top: clamp(18px, 4vh, 32px);
        padding-bottom: clamp(116px, 16vh, 138px);
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(720px, 66vw);
        margin-top: clamp(-94px, -6.8vw, -74px);
        margin-bottom: clamp(-84px, -6vw, -64px);
    }

    .header-nav:not(.small-header) .cl-hero-actions {
        margin-top: 6px;
    }
}

@media (max-width: 1200px) {
    .header-nav:not(.small-header) {
        min-height: clamp(620px, 100vh, 760px);
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(clamp(620px, 100vh, 760px) - 76px);
        padding-top: clamp(22px, 5vh, 46px);
        padding-bottom: clamp(124px, 17vh, 152px);
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(760px, 84vw);
        margin-top: clamp(-100px, -8vw, -70px);
        margin-bottom: clamp(-88px, -7vw, -60px);
    }
}

@media (max-width: 1200px) and (max-height: 720px) {
    .header-nav:not(.small-header) .cl-hero {
        padding-top: 18px;
        padding-bottom: 120px;
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(650px, 76vw);
        margin-top: clamp(-86px, -7vw, -62px);
        margin-bottom: clamp(-76px, -6vw, -54px);
    }
}

@media (max-width: 760px) {
    .header-nav:not(.small-header) {
        min-height: clamp(620px, 100vh, 760px);
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(clamp(620px, 100vh, 760px) - 76px);
        padding-top: clamp(28px, 6vh, 46px);
        padding-bottom: clamp(124px, 17vh, 150px);
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(560px, 114vw);
        margin-top: clamp(-70px, -10vw, -50px);
        margin-bottom: clamp(-62px, -9vw, -44px);
    }

    .header-nav:not(.small-header) .cl-hero-actions {
        width: min(360px, 100%);
        margin-top: 10px;
    }
}

@media (max-width: 560px) {
    .header-nav:not(.small-header) {
        min-height: clamp(640px, 100vh, 780px);
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(clamp(640px, 100vh, 780px) - 76px);
        padding-top: 32px;
        padding-bottom: 136px;
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(520px, 118vw);
        margin-top: clamp(-64px, -12vw, -46px);
        margin-bottom: clamp(-56px, -10vw, -40px);
    }
}

/* Final responsive pass: navbar, home hero and player profile. */
.header-nav .navigation-content {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.cl-nav-brand {
    min-width: 76px;
    justify-self: start;
}

.header-nav-main {
    justify-self: start;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.cl-nav-actions {
    justify-content: flex-end;
}

.cl-nav-user-btn {
    min-width: 172px;
    max-width: 210px;
}

.cl-nav-user-copy small {
    display: none;
}

.cl-nav-wallet {
    min-width: 118px;
    justify-content: center !important;
    padding-inline: 14px !important;
    color: var(--cl-gold-light) !important;
    border-color: rgba(232, 196, 106, 0.72) !important;
    background:
        linear-gradient(180deg, rgba(27, 70, 43, 0.96), rgba(17, 39, 28, 0.98)) !important;
}

.cl-nav-wallet i {
    color: var(--cl-gold-light);
}

.cl-nav-wallet span {
    font-size: 0.78rem;
    font-weight: 900;
}

.header-nav:not(.small-header) {
    min-height: clamp(610px, 72vh, 720px);
    background-position: center 46%;
}

.header-nav:not(.small-header) .cl-hero {
    min-height: calc(clamp(610px, 72vh, 720px) - 76px);
    align-items: center;
    padding: clamp(28px, 4vh, 44px) 0 clamp(112px, 11vh, 128px);
}

.header-nav:not(.small-header) .cl-hero-copy {
    gap: 0;
}

.header-nav:not(.small-header) .cl-hero-logo {
    width: min(860px, 74vw);
    max-height: none;
    margin: clamp(-108px, -7.1vw, -76px) auto clamp(-94px, -6.2vw, -66px);
}

.header-nav:not(.small-header) .cl-hero-sub {
    margin-top: 0;
}

.header-nav:not(.small-header) .cl-hero-actions {
    margin-top: clamp(12px, 1.4vh, 18px);
}

@media (min-width: 1600px) {
    .header-nav:not(.small-header) {
        min-height: clamp(650px, 66vh, 720px);
        background-size: cover;
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(clamp(650px, 66vh, 720px) - 76px);
        padding-top: 34px;
        padding-bottom: 118px;
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(780px, 48vw);
        margin-top: -86px;
        margin-bottom: -74px;
    }
}

@media (min-width: 1201px) and (max-height: 760px) {
    .header-nav:not(.small-header) {
        min-height: clamp(600px, 96vh, 650px);
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(clamp(600px, 96vh, 650px) - 76px);
        padding-top: 22px;
        padding-bottom: 112px;
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(700px, 62vw);
        margin-top: clamp(-84px, -6vw, -66px);
        margin-bottom: clamp(-72px, -5.2vw, -56px);
    }
}

@media (max-width: 1200px) {
    .header-nav:not(.small-header) {
        min-height: clamp(610px, 82vh, 720px);
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(clamp(610px, 82vh, 720px) - 76px);
        padding-top: clamp(26px, 5vh, 44px);
        padding-bottom: clamp(116px, 15vh, 136px);
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(720px, 82vw);
        margin-top: clamp(-86px, -7.2vw, -64px);
        margin-bottom: clamp(-76px, -6.3vw, -54px);
    }
}

@media (max-width: 760px) {
    .header-nav:not(.small-header) {
        min-height: clamp(620px, 100vh, 760px);
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(clamp(620px, 100vh, 760px) - 76px);
        padding-top: 32px;
        padding-bottom: 132px;
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(520px, 112vw);
        margin-top: clamp(-58px, -9.5vw, -42px);
        margin-bottom: clamp(-50px, -8vw, -36px);
    }

    .header-nav:not(.small-header) .cl-hero-actions {
        margin-top: 14px;
    }
}

.cl-player-profile-card {
    gap: 0;
    padding: 14px !important;
}

.cl-player-profile-top {
    grid-template-columns: minmax(88px, 104px) minmax(0, 1fr) !important;
    gap: 14px;
    align-items: center;
}

.cl-player-stage {
    min-height: 0 !important;
    height: 146px;
    align-items: flex-end;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cl-player-stage:hover,
.cl-player-stage:focus-visible {
    border-color: rgba(122, 205, 122, 0.78);
    box-shadow: 0 0 18px rgba(91, 180, 91, 0.18);
    transform: translateY(-1px);
}

.cl-player-stage::after {
    right: 12%;
    bottom: 10px;
    left: 12%;
    height: 12px;
}

.cl-player-stage-glow {
    inset: 8px;
}

.cl-player-render-img {
    width: auto !important;
    height: 134px !important;
    max-width: none !important;
    max-height: 134px !important;
    margin-bottom: 4px;
    transform: none;
}

.cl-player-profile-info {
    align-content: center;
    gap: 7px;
}

.cl-player-profile-info h2 {
    font-size: clamp(1.08rem, 1.5vw, 1.32rem);
}

.cl-player-profile-info p {
    font-size: 0.88rem;
}

.cl-player-balance {
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cl-player-balance small {
    color: rgba(255, 246, 220, 0.62);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cl-player-balance:hover,
.cl-player-balance:focus-visible {
    border-color: rgba(122, 205, 122, 0.84);
    background:
        linear-gradient(135deg, rgba(31, 99, 55, 0.8), rgba(17, 39, 28, 0.96));
    box-shadow:
        0 0 18px rgba(91, 180, 91, 0.18),
        inset 0 0 0 1px rgba(255, 246, 220, 0.06);
    transform: translateY(-1px);
}

.cl-player-profile-status {
    display: none !important;
}

@media (max-width: 1180px) {
    .cl-nav-brand {
        min-width: 68px;
    }

    .header-nav-main {
        gap: 7px;
    }

    .cl-nav-wallet {
        min-width: 102px;
    }
}

@media (max-width: 560px) {
    .cl-player-profile-top {
        grid-template-columns: 86px minmax(0, 1fr) !important;
        gap: 12px;
    }

    .cl-player-stage {
        height: 132px;
    }

    .cl-player-render-img {
        height: 122px !important;
        max-height: 122px !important;
    }
}

/* Home hero height fix: override the base full-viewport header. */
.header-nav:not(.small-header) {
    height: auto !important;
    min-height: clamp(680px, 72vh, 720px) !important;
}

.header-nav.small-header {
    height: auto !important;
}

.header-nav:not(.small-header) .cl-brush-divider {
    bottom: -34px !important;
}

.header-nav:not(.small-header) .cl-hero {
    min-height: calc(clamp(680px, 72vh, 720px) - 76px) !important;
}

.header-nav:not(.small-header) .cl-hero-logo {
    margin-top: clamp(-98px, -6.4vw, -68px) !important;
    margin-bottom: clamp(-84px, -5.5vw, -58px) !important;
}

@media (min-width: 1600px) {
    .header-nav:not(.small-header) {
        min-height: clamp(650px, 66vh, 720px) !important;
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(clamp(650px, 66vh, 720px) - 76px) !important;
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        margin-top: -78px !important;
        margin-bottom: -66px !important;
    }
}

@media (min-width: 1201px) and (max-height: 760px) {
    .header-nav:not(.small-header) {
        min-height: clamp(600px, 96vh, 650px) !important;
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(clamp(600px, 96vh, 650px) - 76px) !important;
    }
}

/* 2.0.36: unified responsive layout and storefront interaction pass. */
html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

body::before {
    display: none;
    background-position: center top;
    background-size: cover;
}

main {
    width: 100%;
    flex: 1 0 auto;
}

.cl-branded-main.pt-5 {
    padding-top: 0 !important;
}

.cl-branded-main > .container.pb-5 {
    padding-top: 30px !important;
}

.cl-footer-simple {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 34px 0 30px !important;
}

.header-nav.small-header.cl-branded-header {
    min-height: 270px !important;
}

.cl-page-brand-band {
    position: relative;
    z-index: 5;
    min-height: 194px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px 38px;
    pointer-events: none;
}

.cl-page-brand-band img {
    width: min(540px, 72vw);
    height: auto;
    filter:
        drop-shadow(0 5px 0 rgba(0, 0, 0, 0.42))
        drop-shadow(0 18px 28px rgba(0, 0, 0, 0.62));
}

.cl-brush-divider {
    left: -2px !important;
    right: -2px !important;
}

.header-nav:not(.small-header) {
    height: auto !important;
    min-height: clamp(38rem, 72svh, 44rem) !important;
    background-position: center 45%;
    background-size: cover;
}

.header-nav:not(.small-header) .cl-hero {
    min-height: calc(clamp(38rem, 72svh, 44rem) - 4.75rem) !important;
    padding: clamp(2rem, 4svh, 3rem) 0 clamp(7rem, 12svh, 8rem) !important;
}

.header-nav:not(.small-header) .cl-hero-copy {
    gap: 0.7rem;
}

.header-nav:not(.small-header) .cl-hero-welcome {
    margin: 0;
}

.header-nav:not(.small-header) .cl-hero-logo {
    width: min(610px, 78vw);
    height: auto;
    margin: 0.7rem auto 0.9rem !important;
}

.header-nav:not(.small-header) .cl-hero-sub {
    margin: 0;
}

.header-nav:not(.small-header) .cl-hero-actions {
    margin-top: 0.65rem;
}

.header-nav-top .item a:hover:not(.cl-nav-wallet),
.header-nav-top .dropdown .nav-link:hover {
    color: var(--cl-gold-light) !important;
    border-color: rgba(232, 196, 106, 0.92);
    background:
        linear-gradient(180deg, rgba(139, 48, 45, 0.98), rgba(77, 24, 29, 0.98));
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72);
}

.cl-nav-wallet {
    overflow: hidden;
}

.cl-nav-wallet-default,
.cl-nav-wallet-hover {
    grid-area: 1 / 1;
    white-space: nowrap;
}

.cl-nav-wallet-hover {
    display: none;
}

.cl-nav-wallet:hover,
.cl-nav-wallet:focus-visible {
    color: var(--cl-gold-light) !important;
    border-color: rgba(122, 205, 122, 0.88) !important;
    background:
        linear-gradient(180deg, rgba(34, 92, 52, 0.98), rgba(17, 54, 31, 0.98)) !important;
}

.cl-nav-wallet:hover .cl-nav-wallet-default,
.cl-nav-wallet:focus-visible .cl-nav-wallet-default {
    display: none;
}

.cl-nav-wallet:hover .cl-nav-wallet-hover,
.cl-nav-wallet:focus-visible .cl-nav-wallet-hover {
    display: inline;
    color: var(--cl-gold-light);
}

.cl-cart-total-pill[hidden] {
    display: none !important;
}

.cl-cart-total-pill {
    display: grid;
    align-items: center;
}

.cl-cart-total-default,
.cl-cart-total-hover {
    grid-area: 1 / 1;
}

.cl-cart-total-hover {
    display: none !important;
    align-self: center;
    color: var(--cl-gold-light) !important;
    font-size: 0.95rem !important;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
}

.cl-cart-total-pill:hover .cl-cart-total-default,
.cl-cart-total-pill:focus-visible .cl-cart-total-default {
    display: none;
}

.cl-cart-total-pill:hover .cl-cart-total-hover,
.cl-cart-total-pill:focus-visible .cl-cart-total-hover {
    display: block !important;
}

.cl-player-profile-card {
    padding: 14px !important;
}

.cl-player-profile-top {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    grid-template-areas:
        "stage info"
        "balance balance";
    gap: 12px 14px;
    align-items: center;
}

.cl-player-stage {
    grid-area: stage;
    width: 88px;
    height: 138px;
}

.cl-player-render-img {
    height: 128px !important;
    max-height: 128px !important;
}

.cl-player-profile-info {
    grid-area: info;
    min-width: 0;
    gap: 6px;
}

.cl-player-profile-info h2 {
    width: 100%;
    overflow: visible;
    color: var(--cl-text);
    font-size: clamp(0.86rem, 1.1vw, 1.15rem);
    line-height: 1.12;
    text-overflow: clip;
    white-space: nowrap;
}

.cl-player-profile-info p {
    font-size: 0.82rem;
}

.cl-player-balance {
    grid-area: balance;
    min-height: 66px;
    display: grid;
    align-items: center;
    margin-top: 0;
    text-decoration: none !important;
}

.cl-player-balance-default,
.cl-player-balance-hover {
    grid-area: 1 / 1;
}

.cl-player-balance-default {
    display: grid;
    gap: 3px;
}

.cl-player-balance-hover {
    display: none !important;
    color: var(--cl-gold-light) !important;
    font-size: 1rem !important;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.cl-player-balance:hover .cl-player-balance-default,
.cl-player-balance:focus-visible .cl-player-balance-default {
    display: none;
}

.cl-player-balance:hover .cl-player-balance-hover,
.cl-player-balance:focus-visible .cl-player-balance-hover {
    display: block !important;
}

.cl-player-login-card {
    justify-items: center;
    text-align: center;
}

.cl-player-login-card > div:not(.cl-player-login-icon) {
    width: 100%;
}

.cl-player-login-card .btn-volcano {
    justify-self: center;
}

.cl-shop-ranking-head {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
}

.cl-shop-ranking-head > i {
    align-self: center;
}

.cl-shop-ranking-head > div {
    min-height: 44px;
    display: grid;
    align-content: center;
}

.cl-shop-ranking-head .cl-kicker {
    margin-bottom: 2px;
}

.cl-auth-card .cl-kicker {
    display: flex;
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
}

.cl-auth-card .form-label,
.cl-auth-card .form-check-label,
.cl-auth-card .cl-auth-microsoft h2,
.cl-auth-card a {
    color: var(--cl-gold-light) !important;
}

.cl-auth-card .form-check-input {
    border-color: rgba(232, 196, 106, 0.62);
    background-color: rgba(8, 10, 18, 0.72);
}

.cl-auth-card .form-check-input:checked {
    border-color: var(--cl-gold);
    background-color: var(--cl-red);
}

.cl-launcher-page {
    position: relative;
}

.cl-launcher-hero {
    position: relative;
    min-height: 350px;
    grid-template-columns: minmax(0, 1fr) 390px;
    overflow: visible;
    padding: clamp(28px, 4vw, 44px);
}

.cl-launcher-copy {
    position: relative;
    z-index: 2;
    align-self: center;
}

.cl-launcher-copy h1 {
    max-width: 1000px;
}

.cl-launcher-mascot {
    position: absolute;
    right: clamp(-52px, -2.8vw, -22px);
    bottom: -118px;
    z-index: 4;
    width: min(460px, 34vw);
    pointer-events: none;
}

.cl-launcher-mascot img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.48));
}

.cl-launcher-downloads {
    position: relative;
    z-index: 2;
}

@media (max-width: 980px) {
    .header-nav.small-header.cl-branded-header {
        min-height: 242px !important;
    }

    .cl-page-brand-band {
        min-height: 174px;
        padding-bottom: 34px;
    }

    .cl-page-brand-band img {
        width: min(480px, 80vw);
    }

    .cl-launcher-hero {
        min-height: 520px;
        grid-template-columns: 1fr;
        padding-bottom: 250px;
    }

    .cl-launcher-mascot {
        right: 50%;
        bottom: -42px;
        width: min(360px, 76vw);
        transform: translateX(50%);
    }
}

@media (max-width: 560px) {
    .header-nav.small-header.cl-branded-header {
        min-height: 214px !important;
    }

    .cl-page-brand-band {
        min-height: 146px;
        padding: 10px 14px 30px;
    }

    .cl-page-brand-band img {
        width: min(360px, 84vw);
    }

    .header-nav:not(.small-header) {
        min-height: clamp(38rem, 100svh, 43rem) !important;
    }

    .header-nav:not(.small-header) .cl-hero {
        min-height: calc(clamp(38rem, 100svh, 43rem) - 4.25rem) !important;
        padding: 2rem 0 7rem !important;
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(360px, 80vw);
        margin-top: 0.5rem !important;
        margin-bottom: 0.7rem !important;
    }

    .cl-player-profile-top {
        grid-template-columns: 82px minmax(0, 1fr) !important;
        gap: 10px 12px;
    }

    .cl-player-stage {
        width: 82px;
        height: 128px;
    }

    .cl-player-render-img {
        height: 118px !important;
        max-height: 118px !important;
    }

    .cl-player-profile-info h2 {
        font-size: clamp(0.82rem, 4.2vw, 1rem);
    }

    .cl-launcher-hero {
        min-height: 560px;
        padding-bottom: 280px;
    }

    .cl-launcher-mascot {
        bottom: -26px;
        width: min(300px, 82vw);
    }
}

/* Browser zoom-out and very wide displays keep the interface readable and full-width. */
@media (min-width: 2400px) {
    html {
        font-size: clamp(18px, 0.84vw, 48px);
    }

    .container {
        width: 88vw;
        max-width: 88vw;
    }

    .header-nav .navigation,
    .header-nav .navigation-content {
        min-height: 4.75rem;
    }

    .header-nav-top .item a,
    .header-nav-top .dropdown .nav-link {
        min-height: 2.65rem;
        padding-right: 1.05rem;
        padding-left: 1.05rem;
        font-size: 0.82rem;
    }

    .cl-brand-seal {
        width: 3.75rem;
        height: 3.75rem;
        flex-basis: 3.75rem;
    }

    .cl-brand-seal img {
        width: 5.25rem;
        height: 5.25rem;
    }

    .header-nav.small-header.cl-branded-header {
        min-height: 16.875rem !important;
    }

    .header-nav:not(.small-header) .cl-hero-copy {
        width: min(52rem, 100%);
    }

    .header-nav:not(.small-header) .cl-hero-logo {
        width: min(38rem, 76vw);
    }

    .header-nav:not(.small-header) .cl-hero-sub {
        max-width: 44rem;
        font-size: 1.05rem;
        line-height: 1.45;
    }

    .header-nav:not(.small-header) .cl-hero-actions {
        width: min(52rem, 100%);
        gap: 0.65rem;
    }

    .header-nav:not(.small-header) .cl-hero-actions .btn-volcano {
        min-width: 9.4rem;
        min-height: 2.65rem;
        padding-right: 1rem;
        padding-left: 1rem;
        font-size: 0.84rem;
    }

    .cl-page-brand-band {
        min-height: 12.125rem;
    }

    .cl-page-brand-band img {
        width: min(34rem, 46vw);
    }

    .cl-footer-simple {
        padding-top: 2.1rem !important;
        padding-bottom: 1.9rem !important;
    }

    .cl-discord-widget-bare .cl-discord-frame-shell {
        width: min(100%, 22.5rem);
    }
}

/* 2.0.38: resilient shop summary and administrative preview profile. */
.cl-shop-hero-card.cl-shop-hero-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 224px);
    align-items: center;
}

.cl-shop-hero-actions {
    width: 100%;
    min-width: 0;
}

.cl-cart-sign,
.cl-cart-total-pill {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.cl-cart-total-default {
    min-width: 0;
}

.cl-player-stage-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cl-player-admin-render {
    position: relative;
    z-index: 2;
    width: 112%;
    max-width: none;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.46));
}

.sub-nav-avatar.cl-admin-avatar {
    padding: 2px;
    object-fit: contain;
    background: rgba(15, 16, 30, 0.96);
}

@media (max-width: 1180px) {
    .cl-shop-hero-card.cl-shop-hero-compact {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .cl-shop-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .cl-shop-hero-card.cl-shop-hero-compact {
        text-align: center;
    }

    .cl-shop-hero-card.cl-shop-hero-compact .cl-kicker {
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
    }

    .cl-shop-hero-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .cl-cart-total-default {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .cl-cart-total-default > span,
    .cl-cart-total-default > strong {
        display: block;
        margin: 0;
        line-height: 1.2;
        text-align: left;
    }

    .cl-cart-total-default > strong {
        flex: 0 0 auto;
        text-align: right;
        white-space: nowrap;
    }

    .cl-shop-section-heading,
    .cl-shop-section-heading > div,
    .cl-shop-category-note,
    .cl-shop-ranking-head > div,
    .cl-player-login-card > div:not(.cl-player-login-icon),
    .cl-player-profile-info {
        width: 100%;
        justify-items: center;
        text-align: center !important;
    }

    .cl-shop-section-heading {
        align-items: center;
    }

    .cl-shop-section-heading p,
    .cl-shop-category-note p {
        text-align: center !important;
    }

    .cl-shop-ranking-head {
        width: 100%;
        grid-template-columns: 44px minmax(0, auto);
        justify-content: center;
        text-align: center;
    }

    .cl-shop-ranking-head > div {
        width: auto;
    }

    .cl-shop-listing-card h3,
    .cl-product-compact h3,
    .cl-shop-side-card h2,
    .cl-shop-account-panel h2 {
        text-align: center;
    }

    .cl-player-stage-admin {
        min-height: 128px;
    }

    .cl-player-admin-render {
        width: 118%;
    }
}

/* 2.0.39: keep the launcher mascot contained on desktop and absent on mobile. */
.cl-launcher-hero {
    min-height: clamp(350px, 27vw, 430px);
    grid-template-columns: minmax(0, 1fr) clamp(280px, 29vw, 420px);
    overflow: hidden;
}

.cl-launcher-copy {
    max-width: 100%;
    padding-right: clamp(8px, 2vw, 30px);
}

.cl-launcher-mascot {
    right: clamp(12px, 2.4vw, 42px);
    bottom: 0;
    width: clamp(270px, 27vw, 410px);
    height: calc(100% - 20px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    transform: none;
}

.cl-launcher-mascot img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

@media (max-width: 980px) {
    .cl-launcher-hero {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: clamp(28px, 4vw, 44px);
    }

    .cl-launcher-copy {
        padding-right: 0;
    }

    .cl-launcher-mascot {
        display: none !important;
    }
}

/* 2.0.40: compact internal-page branding without crowding the wordmark. */
.header-nav.small-header.cl-branded-header {
    min-height: 220px !important;
}

.cl-page-brand-band {
    min-height: 144px;
    padding: 10px 18px 18px;
}

@media (max-width: 980px) {
    .header-nav.small-header.cl-branded-header {
        min-height: 196px !important;
    }

    .cl-page-brand-band {
        min-height: 128px;
        padding: 8px 16px 16px;
    }
}

@media (max-width: 560px) {
    .header-nav.small-header.cl-branded-header {
        min-height: 184px !important;
    }

    .cl-page-brand-band {
        min-height: 116px;
        padding: 7px 12px 14px;
    }
}

@media (min-width: 2400px) {
    .header-nav.small-header.cl-branded-header {
        min-height: 14.25rem !important;
    }

    .cl-page-brand-band {
        min-height: 9.5rem;
        padding-top: 0.65rem;
        padding-bottom: 1.2rem;
    }
}

/* 2.0.41: consume the transparent brush area instead of shrinking the logo. */
.header-nav.cl-branded-header {
    position: relative;
    z-index: 2;
}

.cl-branded-main {
    position: relative;
    z-index: 1;
    margin-top: -68px;
}

@media (max-width: 980px) {
    .cl-branded-main {
        margin-top: -62px;
    }
}

@media (max-width: 560px) {
    .cl-branded-main {
        margin-top: -56px;
    }
}

@media (min-width: 2400px) {
    .cl-branded-main {
        margin-top: -4rem;
    }
}

/* 2.0.44: cart redesign, editable quantities and unified discount codes. */
.cl-cart-page {
    display: grid;
    gap: 18px;
}

.cl-cart-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding-top: 24px;
    text-align: center;
}

.cl-cart-back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    color: var(--cl-gold-light) !important;
    border: 1px solid rgba(232, 196, 106, 0.56);
    border-radius: 7px;
    background: rgba(12, 14, 27, 0.78);
    box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.04);
    font-weight: 900;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cl-cart-back:hover,
.cl-cart-back:focus-visible {
    color: #ffffff !important;
    border-color: var(--cl-gold-light);
    background: rgba(139, 48, 45, 0.92);
    transform: translateX(-2px);
}

.cl-cart-hero-copy {
    width: min(820px, 100%);
}

.cl-cart-hero-copy .cl-kicker {
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
}

.cl-cart-hero-copy h1 {
    margin: 8px 0 6px;
}

.cl-cart-hero-copy p {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
}

.cl-cart-card {
    overflow: hidden;
    border: 2px solid var(--cl-line) !important;
    background:
        linear-gradient(145deg, rgba(31, 33, 51, 0.99), rgba(17, 19, 32, 0.99)) !important;
}

.cl-cart-card .card-body {
    display: grid;
    gap: 26px;
    padding: clamp(20px, 3vw, 34px) !important;
}

.cl-cart-items-form {
    display: grid;
    gap: 16px;
}

.cl-cart-items {
    display: grid;
    gap: 12px;
}

.cl-cart-item {
    display: grid;
    grid-template-columns: 88px minmax(190px, 1fr) minmax(160px, auto) minmax(130px, auto) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    color: var(--cl-text);
    border: 1px solid rgba(232, 196, 106, 0.34);
    border-radius: 11px;
    background:
        linear-gradient(110deg, rgba(67, 43, 45, 0.48), rgba(38, 39, 57, 0.94) 40%, rgba(31, 33, 51, 0.98));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.cl-cart-item-art {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--cl-gold-light);
    border: 1px solid rgba(232, 196, 106, 0.28);
    border-radius: 9px;
    background:
        radial-gradient(circle, rgba(232, 196, 106, 0.22), rgba(255, 246, 220, 0.04) 68%);
    font-size: 2rem;
}

.cl-cart-item-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cl-cart-item-copy {
    min-width: 0;
}

.cl-cart-item-copy > span,
.cl-cart-item-total span,
.cl-cart-item-quantity label {
    display: block;
    margin-bottom: 4px;
    color: var(--cl-gold);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cl-cart-item-copy h2 {
    margin: 0 0 5px;
    color: var(--cl-text);
    font-size: 1.16rem;
    line-height: 1.18;
}

.cl-cart-item-copy small {
    color: var(--cl-muted);
}

.cl-cart-item-quantity {
    min-width: 0;
}

.cl-quantity-control {
    display: grid;
    grid-template-columns: 38px minmax(54px, 72px) 38px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(232, 196, 106, 0.62);
    border-radius: 7px;
    background: rgba(9, 10, 20, 0.68);
}

.cl-quantity-control button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--cl-gold-light);
    border: 0;
    background: rgba(255, 246, 220, 0.06);
    transition: color 0.16s ease, background 0.16s ease;
}

.cl-quantity-control button:hover,
.cl-quantity-control button:focus-visible {
    color: #ffffff;
    background: rgba(139, 48, 45, 0.9);
}

.cl-quantity-control input {
    width: 100%;
    min-width: 0;
    padding: 9px 4px;
    color: var(--cl-gold-light);
    border: 0;
    border-right: 1px solid rgba(232, 196, 106, 0.28);
    border-left: 1px solid rgba(232, 196, 106, 0.28);
    outline: 0;
    background: rgba(15, 16, 30, 0.98);
    font-weight: 900;
    text-align: center;
    appearance: textfield;
}

.cl-quantity-control input::-webkit-outer-spin-button,
.cl-quantity-control input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.cl-cart-fixed-quantity {
    min-width: 58px;
    display: inline-flex;
    justify-content: center;
    padding: 9px 12px;
    color: var(--cl-gold-light);
    border: 1px solid rgba(232, 196, 106, 0.44);
    border-radius: 7px;
    background: rgba(15, 16, 30, 0.88);
}

.cl-cart-field-error,
.cl-cart-code-error {
    display: block;
    margin-top: 7px;
    color: #ff9898;
    font-size: 0.8rem;
}

.cl-cart-item-total {
    min-width: 126px;
    text-align: right;
}

.cl-cart-item-total strong {
    color: var(--cl-gold-light);
    font-size: 1.08rem;
    white-space: nowrap;
}

.cl-cart-remove {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 11px;
    color: #ffd9d9 !important;
    border: 1px solid rgba(220, 73, 73, 0.62);
    border-radius: 7px;
    background: rgba(118, 28, 34, 0.76);
    text-decoration: none !important;
}

.cl-cart-remove:hover,
.cl-cart-remove:focus-visible {
    color: #ffffff !important;
    border-color: #ff8d8d;
    background: rgba(168, 43, 48, 0.96);
}

.cl-cart-remove span {
    display: none;
}

.cl-cart-list-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cl-cart-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.cl-cart-code-panel,
.cl-cart-summary {
    padding: clamp(18px, 2.5vw, 26px);
    border: 1px solid rgba(232, 196, 106, 0.32);
    border-radius: 11px;
    background:
        linear-gradient(145deg, rgba(39, 40, 59, 0.96), rgba(21, 23, 38, 0.98));
}

.cl-cart-code-panel h2,
.cl-cart-summary h2 {
    margin: 7px 0 5px;
    color: var(--cl-text);
    font-size: 1.4rem;
}

.cl-cart-code-panel > p {
    margin-bottom: 16px;
}

.cl-cart-code-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.cl-cart-code-input input {
    min-width: 0;
    padding: 12px 14px;
    color: var(--cl-text);
    border: 1px solid rgba(232, 196, 106, 0.44);
    border-radius: 7px;
    outline: 0;
    background: rgba(10, 11, 22, 0.76);
}

.cl-cart-code-input input:focus {
    border-color: var(--cl-gold-light);
    box-shadow: 0 0 0 3px rgba(232, 196, 106, 0.12);
}

.cl-cart-code-input.has-error input {
    border-color: rgba(220, 73, 73, 0.88);
}

.cl-cart-applied-codes {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.cl-cart-applied-code {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(232, 196, 106, 0.22);
    border-radius: 8px;
    background: rgba(255, 246, 220, 0.045);
}

.cl-cart-code-type {
    padding: 4px 7px;
    color: var(--cl-gold-light);
    border: 1px solid rgba(232, 196, 106, 0.34);
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cl-cart-applied-code strong {
    overflow: hidden;
    color: var(--cl-text);
    text-overflow: ellipsis;
}

.cl-cart-applied-code small {
    color: var(--cl-muted);
}

.cl-cart-applied-code form button {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffd9d9;
    border: 1px solid rgba(220, 73, 73, 0.46);
    border-radius: 6px;
    background: rgba(118, 28, 34, 0.66);
}

.cl-cart-summary {
    display: grid;
    gap: 12px;
}

.cl-cart-summary-line,
.cl-cart-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cl-cart-summary-line {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(232, 196, 106, 0.16);
}

.cl-cart-summary-line span {
    color: var(--cl-muted);
}

.cl-cart-summary-line strong,
.cl-cart-summary-total strong {
    color: var(--cl-gold-light);
    white-space: nowrap;
}

.cl-cart-summary-total {
    margin-top: 2px;
    padding: 14px;
    border: 1px solid rgba(130, 205, 113, 0.4);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(34, 92, 52, 0.45), rgba(15, 23, 27, 0.88));
}

.cl-cart-summary-total span {
    color: var(--cl-text);
    font-weight: 900;
    text-transform: uppercase;
}

.cl-cart-summary-total strong {
    font-size: 1.18rem;
}

.cl-cart-checkout {
    width: 100%;
    margin-top: 4px;
}

.cl-cart-terms-note {
    margin: 10px 0 0;
    color: var(--cl-muted);
    font-size: 0.84rem;
    line-height: 1.4;
    text-align: center;
}

.cl-cart-terms-note a {
    color: var(--cl-gold-light);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cl-cart-terms-note a:hover,
.cl-cart-terms-note a:focus-visible {
    color: var(--cl-text);
}

.cl-cart-bottom-back {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--cl-gold-light) !important;
    border: 1px solid rgba(232, 196, 106, 0.58);
    border-radius: 7px;
    background: rgba(13, 14, 27, 0.86);
    font-weight: 900;
    text-decoration: none !important;
    text-transform: uppercase;
}

.cl-cart-bottom-back:hover,
.cl-cart-bottom-back:focus-visible {
    color: #ffffff !important;
    border-color: var(--cl-gold-light);
    background: rgba(139, 48, 45, 0.92);
}

.cl-cart-empty {
    min-height: 260px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    padding: 30px;
    text-align: center;
    border: 1px dashed rgba(232, 196, 106, 0.34);
    border-radius: 11px;
    background: rgba(255, 246, 220, 0.035);
}

.cl-cart-empty > i {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-gold-light);
    border: 1px solid rgba(232, 196, 106, 0.36);
    border-radius: 18px;
    background: radial-gradient(circle, rgba(232, 196, 106, 0.2), transparent 72%);
    font-size: 2rem;
}

.cl-cart-empty h2 {
    margin: 4px 0 0;
    color: var(--cl-text);
}

.cl-cart-empty p {
    margin: 0 0 8px;
}

@media (max-width: 1080px) {
    .cl-cart-item {
        grid-template-columns: 76px minmax(170px, 1fr) minmax(150px, auto) minmax(120px, auto);
    }

    .cl-cart-item-art {
        width: 76px;
        height: 76px;
    }

    .cl-cart-remove {
        grid-column: 2 / -1;
        justify-self: end;
    }

    .cl-cart-remove span {
        display: inline;
    }
}

@media (max-width: 820px) {
    .cl-cart-item {
        grid-template-columns: 72px minmax(0, 1fr) minmax(118px, auto);
    }

    .cl-cart-item-art {
        width: 72px;
        height: 72px;
    }

    .cl-cart-item-quantity {
        grid-column: 2;
    }

    .cl-cart-item-total {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .cl-cart-remove {
        grid-column: 3;
        justify-self: end;
    }

    .cl-cart-lower-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .cl-cart-page h1,
    .cl-cart-page h2,
    .cl-cart-page .cl-kicker {
        text-align: center;
    }

    .cl-cart-hero {
        padding: 16px;
    }

    .cl-cart-back {
        width: 100%;
        justify-content: center;
        margin-bottom: 6px;
    }

    .cl-cart-card .card-body {
        gap: 20px;
        padding: 14px !important;
    }

    .cl-cart-item {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .cl-cart-item-art {
        width: 64px;
        height: 64px;
    }

    .cl-cart-item-copy {
        text-align: left;
    }

    .cl-cart-item-copy h2 {
        text-align: left;
    }

    .cl-cart-item-quantity,
    .cl-cart-item-total,
    .cl-cart-remove {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .cl-cart-item-quantity {
        display: grid;
        justify-items: center;
    }

    .cl-cart-item-quantity label,
    .cl-cart-item-total {
        text-align: center;
    }

    .cl-cart-item-total {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        padding-top: 10px;
        border-top: 1px solid rgba(232, 196, 106, 0.14);
    }

    .cl-cart-item-total span {
        margin: 0;
    }

    .cl-cart-remove {
        width: 100%;
        justify-self: stretch;
    }

    .cl-cart-list-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .cl-cart-code-panel,
    .cl-cart-summary {
        text-align: center;
    }

    .cl-cart-code-panel .cl-kicker,
    .cl-cart-summary .cl-kicker {
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
    }

    .cl-cart-code-input {
        grid-template-columns: minmax(0, 1fr);
    }

    .cl-cart-applied-code {
        grid-template-columns: auto minmax(0, 1fr) auto;
        text-align: left;
    }

    .cl-cart-applied-code small {
        grid-column: 2;
    }

    .cl-cart-applied-code form {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .cl-cart-bottom-back {
        width: 100%;
        justify-content: center;
    }
}

/* 2.0.45: keep the compact shop total on one row on narrow screens. */
@media (max-width: 640px) {
    .cl-cart-total-pill .cl-cart-total-default {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .cl-cart-total-pill .cl-cart-total-default > span,
    .cl-cart-total-pill .cl-cart-total-default > strong {
        width: auto;
        margin: 0;
        line-height: 1.2;
    }
}

/* 2.0.46: stable wallet width while switching balance and purchase copy. */
.cl-nav-wallet-item {
    flex: 0 0 clamp(148px, 11.25vw, 162px);
    width: clamp(148px, 11.25vw, 162px);
}

.header-nav-top .cl-nav-wallet {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-content: center !important;
    box-sizing: border-box;
}

.cl-nav-wallet-default,
.cl-nav-wallet-hover {
    min-width: 0;
    text-align: center;
}

/* 2.0.47: keep the shop checkout shortcut stable while its copy changes. */
.cl-cart-total-pill {
    height: 66px;
    min-height: 66px;
    max-height: 66px;
    box-sizing: border-box;
}

.cl-cart-total-pill:hover,
.cl-cart-total-pill:focus-visible {
    transform: none;
}

.cl-cart-total-hover {
    width: 100%;
    align-self: center;
    justify-self: center;
    text-align: center;
}

/* 2.0.48: launcher mascot overlaps the hero edge like the reference artwork. */
.cl-launcher-hero {
    overflow: visible;
}

.cl-launcher-mascot {
    right: clamp(-150px, -7.8vw, -82px);
    bottom: clamp(-110px, -5.7vw, -76px);
    width: clamp(400px, 24.5vw, 470px);
    height: auto;
    display: block;
    overflow: visible;
    z-index: 4;
}

.cl-launcher-mascot img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: initial;
    object-position: initial;
}

.cl-launcher-downloads {
    z-index: 2;
}

@media (max-width: 980px) {
    .cl-launcher-hero {
        overflow: hidden;
    }

    .cl-launcher-mascot {
        display: none !important;
    }
}

/* 2.0.51: Pix checkout confirmation flow. */
.cl-pix-board {
    padding: clamp(18px, 2vw, 30px);
}

.cl-pix-grid {
    display: grid;
    grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 46px);
    align-items: stretch;
}

.cl-pix-qr-card,
.cl-pix-content {
    position: relative;
    z-index: 1;
}

.cl-pix-qr-card {
    display: grid;
    gap: 16px;
    align-content: start;
    justify-items: center;
    padding: clamp(18px, 2vw, 26px);
    border: 1px solid rgba(232, 196, 106, 0.32);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 196, 106, 0.14), transparent 52%),
        rgba(9, 10, 22, 0.42);
    box-shadow: inset 0 0 0 1px rgba(255, 244, 203, 0.035);
}

.cl-pix-qr-frame {
    width: min(100%, 310px);
    padding: clamp(10px, 1.2vw, 16px);
    border: 1px solid rgba(255, 244, 203, 0.35);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}

.cl-pix-qr-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.cl-pix-reference {
    display: grid;
    gap: 4px;
    width: min(100%, 310px);
    padding: 13px 15px;
    border: 1px solid rgba(232, 196, 106, 0.34);
    border-radius: 12px;
    background: rgba(18, 20, 38, 0.72);
    text-align: center;
}

.cl-pix-reference span,
.cl-pix-label {
    color: #f2ca62;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cl-pix-reference strong {
    color: #fff4cb;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.cl-pix-content {
    display: grid;
    gap: 16px;
    align-content: center;
}

.cl-pix-content h2 {
    margin: 0;
    color: #fff4cb;
    font-size: clamp(1.8rem, 3.2vw, 3.1rem);
    line-height: 0.98;
}

.cl-pix-lead {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 244, 203, 0.86);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.cl-pix-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cl-pix-steps div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 11px 12px;
    border: 1px solid rgba(232, 196, 106, 0.2);
    border-radius: 12px;
    background: rgba(28, 31, 50, 0.72);
    color: #fff4cb;
    font-weight: 800;
}

.cl-pix-steps i {
    color: #f2ca62;
    font-size: 1.2rem;
}

.cl-pix-code {
    min-height: 132px;
    color: #15111a !important;
    border-color: rgba(232, 196, 106, 0.55) !important;
    background: #fff8e6 !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.cl-pix-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cl-pix-status-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 4px;
    padding: 15px 16px;
    border: 1px solid rgba(232, 196, 106, 0.35);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(242, 202, 98, 0.08), transparent 46%),
        rgba(11, 13, 28, 0.78);
    color: #fff4cb;
}

.cl-pix-status-card i {
    color: #f2ca62;
    font-size: 1.35rem;
}

.cl-pix-status-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 1rem;
}

.cl-pix-status-card p {
    margin: 0;
    color: rgba(255, 244, 203, 0.78);
}

.cl-pix-status-card.is-success {
    border-color: rgba(109, 227, 127, 0.8);
    background:
        linear-gradient(135deg, rgba(47, 164, 73, 0.38), rgba(12, 48, 29, 0.86)),
        rgba(11, 13, 28, 0.8);
    box-shadow: 0 0 24px rgba(87, 221, 111, 0.24);
}

.cl-pix-status-card.is-success i {
    color: #7df08d;
}

@media (max-width: 991px) {
    .cl-pix-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cl-pix-content {
        text-align: center;
    }

    .cl-pix-content .cl-kicker,
    .cl-pix-label {
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
    }

    .cl-pix-actions,
    .cl-pix-status-card {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .cl-pix-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .cl-pix-actions .btn {
        width: 100%;
    }
}

/* 2.0.49: progressive desktop navbar compression before the phone menu. */
@media (min-width: 781px) and (max-width: 1320px) {
    .header-nav {
        padding-top: 0 !important;
    }

    .header-nav .navigation,
    #desktop-nav {
        display: block !important;
    }

    .header-mobile-nav {
        display: none !important;
    }

    .header-nav .navigation-content {
        width: min(100% - 28px, 1320px);
        min-height: 72px;
        gap: clamp(8px, 1vw, 14px);
    }

    .cl-nav-brand {
        min-width: clamp(54px, 6vw, 72px);
    }

    .cl-brand-seal {
        width: clamp(48px, 5.2vw, 58px);
        height: clamp(48px, 5.2vw, 58px);
        flex-basis: clamp(48px, 5.2vw, 58px);
    }

    .cl-brand-seal img {
        width: clamp(66px, 7vw, 82px);
        height: clamp(66px, 7vw, 82px);
    }

    .header-nav-main {
        gap: clamp(4px, 0.55vw, 7px);
    }

    .cl-nav-actions {
        gap: clamp(5px, 0.6vw, 8px);
    }

    .header-nav-top .item a,
    .header-nav-top .dropdown .nav-link {
        min-height: clamp(38px, 3.4vw, 42px);
        gap: clamp(3px, 0.35vw, 6px);
        padding-right: clamp(8px, 0.85vw, 13px);
        padding-left: clamp(8px, 0.85vw, 13px);
        font-size: clamp(11px, 0.93vw, 12.5px);
        letter-spacing: clamp(0.015em, 0.22vw, 0.04em);
    }

    .header-nav-top .item a::before,
    .header-nav-top .dropdown .nav-link::before {
        inset: -4px;
    }

    .cl-nav-icon-btn {
        width: clamp(36px, 3.3vw, 42px);
    }

    .cl-nav-user-btn {
        min-width: clamp(128px, 12vw, 168px);
        max-width: clamp(128px, 12vw, 168px);
        min-height: clamp(38px, 3.5vw, 46px) !important;
        padding: 4px clamp(7px, 0.75vw, 10px) 4px 6px !important;
    }

    .sub-nav-avatar {
        width: clamp(29px, 2.7vw, 34px);
        height: clamp(29px, 2.7vw, 34px);
        flex-basis: clamp(29px, 2.7vw, 34px);
    }

    .cl-nav-user-copy strong {
        max-width: clamp(74px, 8.6vw, 116px);
        font-size: clamp(0.68rem, 0.75vw, 0.8rem);
    }

    .cl-nav-wallet-item {
        flex: 0 0 clamp(112px, 10.8vw, 148px);
        width: clamp(112px, 10.8vw, 148px);
    }

    .header-nav-top .cl-nav-wallet {
        padding-right: clamp(8px, 0.8vw, 12px) !important;
        padding-left: clamp(8px, 0.8vw, 12px) !important;
    }

    .cl-nav-wallet span {
        font-size: clamp(0.68rem, 0.72vw, 0.78rem);
    }
}

@media (min-width: 781px) and (max-width: 1040px) {
    .header-nav .navigation-content {
        width: calc(100% - 18px);
        min-height: 66px;
        gap: 8px;
    }

    .header-nav-main {
        gap: 4px;
    }

    .cl-nav-actions {
        gap: 5px;
    }

    .header-nav-top .item a,
    .header-nav-top .dropdown .nav-link {
        min-height: 37px;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 10.8px;
        letter-spacing: 0.01em;
    }

    .header-nav-top .item a i,
    .header-nav-top .dropdown .nav-link i {
        margin-right: 0.15rem !important;
    }

    .cl-nav-brand {
        min-width: 50px;
    }

    .cl-brand-seal {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .cl-brand-seal img {
        width: 64px;
        height: 64px;
    }

    .cl-nav-icon-btn {
        width: 36px;
    }

    .cl-nav-user-btn {
        min-width: 122px;
        max-width: 122px;
    }

    .cl-nav-user-copy strong {
        max-width: 70px;
        font-size: 0.66rem;
    }

    .cl-nav-wallet-item {
        flex-basis: 108px;
        width: 108px;
    }

    .cl-nav-wallet span {
        font-size: 0.66rem;
    }
}

@media (min-width: 781px) and (max-width: 900px) {
    .header-nav .navigation-content {
        width: calc(100% - 12px);
        gap: 6px;
    }

    .header-nav-top .item a,
    .header-nav-top .dropdown .nav-link {
        min-height: 35px;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 10.2px;
    }

    .cl-brand-seal {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .cl-brand-seal img {
        width: 58px;
        height: 58px;
    }

    .cl-nav-user-btn {
        min-width: 112px;
        max-width: 112px;
    }

    .sub-nav-avatar {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .cl-nav-user-copy strong {
        max-width: 62px;
        font-size: 0.62rem;
    }

    .cl-nav-wallet-item {
        flex-basis: 100px;
        width: 100px;
    }
}

@media (max-width: 780px) {
    .header-nav {
        padding-top: 68px !important;
    }

    .header-nav .navigation,
    #desktop-nav {
        display: none !important;
    }

    .header-mobile-nav {
        display: flex !important;
    }
}
