:root {
    --rank-sculk: #22d3ee;
    --rank-sculk-plus: #7dd3fc;
    --rank-warden: #c084fc;
    --rank-custom: #ffd479;
}
[data-rank="sculk"] { --rank-accent: var(--rank-sculk); }
[data-rank="sculk-plus"] { --rank-accent: var(--rank-sculk-plus); }
[data-rank="warden"] { --rank-accent: var(--rank-warden); }
[data-rank="custom"] { --rank-accent: var(--rank-custom); }
.store-page { --cyanT: var(--rank-sculk); --cyanT-hi: #a5f3fc; --magT: var(--rank-sculk-plus); --magT-hi: #bae6fd; }
.rank-card[data-rank], .custom-rank-featured[data-rank] { border-color: color-mix(in srgb, var(--rank-accent) 40%, transparent); }
.rank-card[data-rank]:hover, .custom-rank-featured[data-rank]:hover { border-color: var(--rank-accent); box-shadow: 0 16px 32px #0005; }
.rank-card[data-rank] .rank-tier-lbl,
.custom-rank-featured .rank-tier-lbl,
.custom-rank-featured .custom-perks-title { color: var(--rank-accent); }
.rank-card[data-rank] .rank-perks li::before,
.custom-rank-featured .custom-bullets-grid li::before { background: var(--rank-accent); }
.rank-card[data-rank] .rank-buy-btn,
.custom-rank-featured .custom-buy-btn,
.rank-card[data-rank] .popular-badge,
.custom-rank-featured .custom-top-badge { background: var(--rank-accent); border-color: var(--rank-accent); color: #141217; }
/* Rank names directly below the tier labels retain their original white type. */
.rank-card .rank-name, .custom-rank-featured .rank-name { color: #fff; }
.th-sculk { color: var(--rank-sculk) !important; }
.th-sculk-plus { color: var(--rank-sculk-plus) !important; }
.th-warden { color: var(--rank-warden) !important; }
.th-custom { color: var(--rank-custom) !important; }
.rank-table tbody th { color: var(--muted); font-family: var(--font-ios); font-size: .88rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.rank-table tbody td { min-width: 125px; }
.rank-card[data-rank="sculk-plus"] .rank-badge,
[data-rank="sculk-plus"] .suggestion-rank-icon,
#modalPerksOverlay[data-rank="sculk-plus"] #perksModalIcon { filter: grayscale(1) sepia(1) saturate(3) hue-rotate(155deg); }
.rank-card[data-rank="warden"] .rank-badge,
[data-rank="warden"] .suggestion-rank-icon,
#modalPerksOverlay[data-rank="warden"] #perksModalIcon { filter: none; }
.modal-overlay[data-rank] .perks-modal-title,
.modal-overlay[data-rank] .perks-modal-price,
.modal-overlay[data-rank] .perks-kit-heading,
.modal-overlay[data-rank] .perks-kit-badge,
.modal-overlay[data-rank] .perks-category-title,
.modal-overlay[data-rank] #checkoutItemName { color: var(--rank-accent, #ffd479); }
.modal-overlay[data-rank] .modal-buy-perks,
.modal-overlay[data-rank] #btnGatewayProceed { background: var(--rank-accent, #ffd479); color: #141217; border-color: var(--rank-accent, #ffd479); }
.crate-policy-link { color: var(--gold-hi); text-decoration: underline; }
.crate-choice-policy .faq-a > a { display: inline-block; color: var(--gold-hi); margin-top: 12px; }
.crate-card .crate-desc-txt { flex: 1; }
.crate-card .crate-buy-btn { margin-top: 24px; }
.rank-suggestion {
    position: fixed; bottom: 24px; right: 24px; z-index: 12000;
    width: min(420px, calc(100vw - 32px)); background: #231e2b;
    border: 1px solid #594d66; border-radius: 14px; overflow: hidden;
    box-shadow: 0 12px 36px #0006; padding: 20px 44px 22px 20px;
    font-family: var(--font-ios); color: #f3f0f7;
    animation: suggestion-enter 240ms cubic-bezier(.16, 1, .3, 1);
}
.rank-suggestion [role="status"] { display: flex; gap: 14px; align-items: flex-start; }
.suggestion-rank-icon { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; flex: 0 0 44px; }
.rank-suggestion strong { color: var(--rank-accent); font-size: 1rem; font-weight: 700; line-height: 1.4; display: block; }
.rank-suggestion p { font-size: .9rem; line-height: 1.55; color: #d1c9db; margin: 6px 0 10px; }
.rank-suggestion button { font-family: inherit; cursor: pointer; }
.rank-suggestion [role="status"] button { border: 0; background: transparent; color: var(--rank-accent); padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; font-size: .875rem; text-align: left; }
.rank-suggestion .suggestion-close { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; color: #d1c9db; background: transparent; }
.suggestion-timer { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background: var(--rank-accent); transform-origin: left; animation: suggestion-countdown 7s linear forwards; }
@keyframes suggestion-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes suggestion-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.server-maintenance-icon { width: 20px; height: 20px; object-fit: contain; image-rendering: pixelated; flex-shrink: 0; }
.server-maintenance-icon[hidden] { display: none; }
.js-copy-ip[data-server-state="maintenance"] .pulse-circle { display: none; }
.js-copy-ip[data-server-state="checking"] .pulse-circle,
.js-copy-ip[data-server-state="unavailable"] .pulse-circle { background: #78716c; box-shadow: none; }
.js-copy-ip[data-server-state="maintenance"] { background: #362328; color: #fca5a5; border-color: #b64a55; box-shadow: none; }
.js-copy-ip[data-server-state="maintenance"] .ip-online-count,
.js-copy-ip[data-server-state="maintenance"] .js-player-count { color: #fca5a5; }
.skin-preview-status { font-family: var(--font-ios); color: #b9afc5; font-size: .8rem; line-height: 1.5; margin: -8px 0 18px; min-height: 1.5em; }
.preview-avatar-img { image-rendering: pixelated; transition: opacity 150ms ease; }
.preview-avatar-img.skin-loading { opacity: .45; }
.community-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; width: 100%; padding: 24px 8px 4px; }
.community-links h2 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: #f3f0f7; margin: 0 0 4px; }
.community-links p { color: #b9afc5; font-size: .9rem; }
.community-socials { display: flex; flex-wrap: wrap; gap: 12px; }
.community-socials a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid #51475d; border-radius: 8px; font-family: var(--font-ios); text-decoration: none; color: #f3f0f7; min-height: 46px; }
.community-socials a:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* A compact comparison matrix: quantities carry data, icons carry availability. */
.rank-table-wrap:has(.rank-comparison) { border-radius: 12px; border-color: #45394f; box-shadow: none; }
.rank-comparison { min-width: 680px; table-layout: fixed; }
.rank-comparison caption { text-align: left; font-family: var(--font-ios); font-size: 1.1rem; font-weight: 600; padding: 22px 24px; color: #f3f0f7; background: #211b28; }
.rank-comparison thead th { background: #211b28; padding: 16px 12px; font-size: .9rem; }
.rank-comparison thead th:first-child { width: 38%; }
.rank-comparison tbody th, .rank-comparison tbody td { padding: 11px 16px; font-family: var(--font-ios); font-size: .9rem; line-height: 1.5; border-color: #ffffff0a; }
.rank-comparison tbody th { color: #d1c9db; font-weight: 400; text-align: left; }
.rank-comparison tbody td { min-width: 0; font-variant-numeric: tabular-nums; }
.rank-comparison tbody tr:hover { background: #ffffff03; }
.rank-comparison .comparison-group th { padding-top: 22px; padding-bottom: 10px; font-size: .85rem; font-weight: 600; color: #f3f0f7; background: #211b28; border-bottom: 1px solid #45394f; }
.rank-comparison .comparison-price td { font-size: 1rem; font-weight: 600; padding-top: 16px; padding-bottom: 16px; }
.rank-comparison td:nth-child(2) { --comparison-color: var(--rank-sculk); }
.rank-comparison td:nth-child(3) { --comparison-color: var(--rank-sculk-plus); }
.rank-comparison td:nth-child(4) { --comparison-color: var(--rank-warden); }
.rank-comparison td:nth-child(5) { --comparison-color: var(--rank-custom); }
.comparison-state { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; vertical-align: middle; }
.comparison-state.is-included { color: var(--comparison-color); }
.comparison-state.is-excluded { color: #b4a6bb; }
.comparison-amount { color: #f3f0f7; font-weight: 500; }

.rank-purchase-bonus { display: flex; align-items: flex-start; gap: 12px; text-align: left; margin: 0 0 20px; padding: 14px; border: 1px solid color-mix(in srgb, var(--rank-accent) 35%, transparent); background: color-mix(in srgb, var(--rank-accent) 7%, var(--panel)); border-radius: 8px; font-family: var(--font-ios); }
.rank-purchase-bonus > i { margin-top: 3px; color: var(--rank-accent); font-size: 1rem; }
.rank-purchase-bonus strong { display: block; font-size: .8rem; font-weight: 600; color: var(--rank-accent); margin-bottom: 4px; }
.rank-purchase-bonus p { margin: 0; line-height: 1.5; }
.rank-purchase-bonus b { font-size: 1rem; font-weight: 700; color: #f3f0f7; }
.rank-purchase-bonus p > span { display: block; margin-top: 3px; font-size: .8rem; color: #d1c9db; }
.rank-purchase-bonus .bonus-voucher { display: block; margin-top: 6px; color: #d1c9db; font-size: .8rem; }
.custom-card-right .rank-purchase-bonus { margin: 0 0 24px; }
#perksPurchaseBonus { margin: 0 0 20px; }
#perksPurchaseBonus > div { flex: 1; }
#perksPurchaseBonus p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; }
#perksPurchaseBonus p > span { margin: 0; }
#perksKitShowcase { margin: 0 0 24px; }
.perks-kit-img-frame { width: fit-content; max-width: 100%; margin: 0 auto; }
.perks-kit-img { width: auto; height: auto; max-width: 100%; max-height: min(28dvh, 250px); object-fit: contain; }
.perks-kit-img:hover { transform: none; }
.perks-kit-overlay-badge { position: static; justify-content: center; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 7px 12px; backdrop-filter: none; }
.crate-choice-policy .faq-a { text-align: center; }
.crate-choice-policy .faq-a > p { max-width: 66ch; margin-inline: auto; }
.rules-page #economy .clean-item-body { text-align: center; margin-inline: auto; padding-left: 0; }
.info-tabs > a.info-tab { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

.home-page .sculk-subnav-inner { height: auto; min-height: 72px; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.home-page .subnav-left-links { display: flex; flex-wrap: wrap; gap: 10px; }
.home-page .home-category-link { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; min-height: 48px; background: #2b2433; border: 1px solid #51475d; border-radius: 8px; color: #f3f0f7; line-height: 1.35; font-weight: 500; transition: border-color 180ms ease, background-color 180ms ease; }
.home-category-link img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; flex-shrink: 0; }
.home-page .home-category-link:hover { border-color: var(--gold-light); background: #352b3e; color: var(--gold-light); }
@media (max-width: 900px) {
    .home-page .sculk-subnav-inner { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .home-page .subnav-right-actions { margin-left: auto; }
}
@media (max-width: 640px) {
    .rank-suggestion { bottom: 16px; right: 16px; }
    .community-links { padding: 20px 8px; }
    .community-socials { width: 100%; }
    .community-socials a { flex: 1; justify-content: center; }
    .rank-comparison caption { padding: 18px 16px; }
    .rank-comparison th:first-child { position: sticky; left: 0; z-index: 1; background: #1b1720; }
    .rank-comparison .comparison-group th { position: static; background: #211b28; }
    .rank-comparison thead th:first-child { background: #211b28; }
    .rank-comparison thead th:first-child { width: 30%; }
    .rank-comparison tbody th, .rank-comparison tbody td { padding: 10px 12px; }
    .home-page .sculk-subnav-inner { padding: 12px; }
    .home-page .subnav-left-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
    .home-page .home-category-link { flex-direction: column; height: 100%; gap: 7px; padding: 10px 7px; font-size: .8rem; text-align: center; }
    .home-page .subnav-right-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
    .perks-kit-img { max-height: min(25dvh, 200px); }
    #perksKitShowcase .perks-kit-bar { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .rank-suggestion { animation: none; }
    .suggestion-timer { animation: none; }
    .preview-avatar-img { transition: none; }
    .home-page .home-category-link { transition: none; }
}
/* Rank store craft pass: Minecraft reward artifacts, clear purchase actions, shared logo. */
.rank-purchase-bonus {
    display: block;
    margin: 10px 0 16px;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    font-family: var(--font-ios);
}
.rank-bonus-heading {
    display: block;
    margin-bottom: 9px;
    color: var(--rank-accent);
    font-family: var(--font-px);
    font-size: .58rem;
    font-weight: 400;
    letter-spacing: .04em;
    line-height: 1.5;
    text-transform: uppercase;
}
.rank-bonus-items { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.rank-bonus-item, .rank-bonus-voucher {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    color: #e8e3ec;
    font-size: .8rem;
    line-height: 1.35;
}
.rank-bonus-item img, .rank-bonus-voucher img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    image-rendering: pixelated;
    flex: 0 0 25px;
}
.rank-bonus-item b { color: #fff; font-size: .86rem; font-weight: 650; }
.rank-bonus-voucher { margin-top: 8px; color: #ded5e7; }
.custom-card-right .rank-purchase-bonus { margin: 0 0 20px; }
#perksPurchaseBonus { margin: 0 0 20px; }
#perksPurchaseBonus .rank-bonus-items { gap: 8px 18px; }
#perksPurchaseBonus .rank-bonus-voucher { flex-basis: 100%; }

.rank-card[data-rank] .rank-buy-btn,
.custom-rank-featured[data-rank] .custom-buy-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    min-height: 58px;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--rank-accent) 70%, #fff);
    border-radius: 5px;
    background: var(--rank-accent);
    color: #15131a;
    box-shadow: 0 4px 0 color-mix(in srgb, var(--rank-accent) 48%, #08070a) !important;
    font-family: var(--font-px);
    font-size: .68rem;
    line-height: 1.45;
    text-align: left;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.rank-buy-item {
    display: block;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 1px #0005);
}
.rank-buy-label { flex: 1; }
.rank-card[data-rank] .rank-buy-btn > i,
.custom-rank-featured[data-rank] .custom-buy-btn > i { margin-left: auto; font-size: .9rem; }
.rank-card[data-rank] .rank-buy-btn:hover,
.custom-rank-featured[data-rank] .custom-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 color-mix(in srgb, var(--rank-accent) 48%, #08070a) !important;
    filter: brightness(1.08);
}
.rank-card[data-rank] .rank-buy-btn:active,
.custom-rank-featured[data-rank] .custom-buy-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 color-mix(in srgb, var(--rank-accent) 48%, #08070a) !important;
}
.rank-card[data-rank] .rank-buy-btn:focus-visible,
.custom-rank-featured[data-rank] .custom-buy-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.rank-comparison caption {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 24px 24px 20px;
    color: #fff;
    background: transparent;
    font-family: var(--font-waffles);
    text-align: center;
}
.rank-comparison caption::before, .rank-comparison caption::after {
    content: '';
    height: 2px;
    flex: 1;
    background: var(--line-hi);
}
.rank-comparison caption > span {
    display: inline-block;
    padding: .75rem 1.35rem;
    border: 2px solid var(--violet-soft);
    background: linear-gradient(180deg, #9d5ce6, var(--violet));
    box-shadow: 0 4px 0 #0008;
    font-size: clamp(1rem, 2vw, 1.3rem);
    letter-spacing: 1px;
    line-height: 1.35;
    white-space: nowrap;
}

.footer-brand-legal .footer-logo-text {
    font-family: var(--font-logo);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 1px 0 #cbd5e1, 0 2px 0 #94a3b8, 0 3px 0 #475569, 0 5px 12px #000d;
    filter: none;
}
@media (max-width: 640px) {
    .rank-comparison caption { gap: .75rem; padding-inline: 12px; }
    .rank-comparison caption > span { padding: .65rem .85rem; font-size: .88rem; }
    .rank-bonus-items { gap: 7px 11px; }
    .rank-bonus-item, .rank-bonus-voucher { font-size: .74rem; }
}
/* Currency rate viewer, based on PayNow's documented adaptive-currency regions. */
.currency-widget { position: relative; flex: 0 0 auto; z-index: 30; }
.currency-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 11px;
    color: #e8e3ec; background: #211b28; border: 1px solid #51475d; border-radius: 7px;
    font: 600 .78rem var(--font-ios); cursor: pointer; white-space: nowrap;
}
.currency-toggle > i:first-child { color: #bda7d0; }
.currency-toggle b { color: #fff; }
.currency-toggle:hover, .currency-toggle[aria-expanded="true"] { border-color: #9875b5; background: #2a2332; }
.currency-chevron { color: #aaa0b1; font-size: .65rem; transition: transform 150ms ease; }
.currency-toggle[aria-expanded="true"] .currency-chevron { transform: rotate(180deg); }
.currency-panel {
    position: absolute; top: calc(100% + 10px); right: 0; width: min(370px, calc(100vw - 24px));
    padding: 16px; color: #f3f0f7; background: #211b28; border: 1px solid #50425c; border-radius: 10px;
    box-shadow: 0 14px 34px #0009; font-family: var(--font-ios);
}
.currency-panel[hidden] { display: none; }
.currency-panel-head { padding-bottom: 12px; border-bottom: 1px solid #ffffff13; }
.currency-panel-head strong { font-size: .95rem; font-weight: 650; }
.currency-panel-head p { margin: 5px 0 0; color: #bdb3c7; font-size: .78rem; line-height: 1.45; }
.currency-list { display: grid; gap: 3px; padding: 9px 0; max-height: min(340px, 42dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #80678f #211b28; }
.currency-search-label { display: block; margin: 12px 0 6px; font-size: .76rem; color: #d9cde4; }
.currency-search { width: 100%; min-height: 42px; box-sizing: border-box; padding: 9px 11px; border: 1px solid #786287; border-radius: 6px; background: #17121e; color: #f3f0f7; font: .82rem var(--font-ios); }
.currency-search::placeholder { color: #bdb3c7; }
.currency-search:focus-visible, .currency-option:focus-visible { outline: 2px solid #c7a3e8; outline-offset: 2px; }
.currency-option[hidden], .currency-empty[hidden] { display: none; }
.currency-option:disabled { opacity: .6; cursor: default; }
.currency-empty { margin: 16px 0; color: #d9cde4; font-size: .8rem; }
.currency-flag { flex: 0 0 24px; object-fit: contain; }
.currency-country-text { display: grid; gap: 3px; min-width: 0; }
.currency-option .currency-country-text b { font-size: .8rem; }
.currency-option .currency-country-text small { font-size: .69rem; }
.currency-option .currency-option-rate { flex: 0 0 105px; text-align: right; font-size: .69rem; white-space: normal; }
.currency-panel { max-height: calc(100dvh - 110px); overflow-y: auto; }
.rank-price-unit { display: block; margin-top: 4px; color: #c4b7d0; font: 400 .78rem var(--font-ios); }
.currency-option {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 47px;
    padding: 6px 9px; color: #e8e3ec; background: transparent; border: 1px solid transparent; border-radius: 6px;
    font: inherit; text-align: left; cursor: pointer;
}
.currency-option:hover { background: #ffffff08; }
.currency-option[aria-pressed="true"] { background: #31283a; border-color: #675578; }
.currency-option-info { display: flex; align-items: center; gap: 9px; min-width: 0; }
.currency-option-info b { min-width: 37px; color: #fff; font-size: .82rem; }
.currency-option-info small { color: #bdb3c7; font-size: .76rem; }
.currency-option-rate { color: #d9cde4; font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.currency-updated { margin: 0; padding-top: 10px; color: #aaa0b1; font-size: .71rem; border-top: 1px solid #ffffff13; }
.currency-panel-foot { display: grid; gap: 6px; margin-top: 8px; color: #91889a; font-size: .69rem; line-height: 1.4; }
.currency-panel-foot a { width: fit-content; color: #cab4df; text-decoration: underline; text-underline-offset: 2px; }
.rank-bonus-money {
    display: inline-block; padding: 2px 7px; border-radius: 4px;
    color: #ffd479; background: #302738; box-shadow: none;
    font-size: .9rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap;
}
.rank-comparison .comparison-money { color: #ffd479; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 1120px) {
    .currency-widget { margin-left: auto; }
    .currency-panel { right: -8px; }
}
@media (max-width: 640px) {
    .currency-widget { order: 2; margin-left: 0; }
    .currency-toggle { min-height: 40px; padding: 7px 9px; gap: 6px; }
    .currency-toggle > span { display: none; }
    .currency-panel { right: -54px; width: min(350px, calc(100vw - 24px)); padding: 13px; }
    .currency-option { min-height: 44px; }
    .currency-option-rate { font-size: .7rem; }
    .rank-bonus-money { font-size: .84rem; }
}
.currency-panel-head p strong { color: #ded0eb; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .currency-panel { left: 0; right: auto; }
}
.currency-estimate {
    display: block;
    margin-top: 3px;
    color: #b8a9c4;
    font: 500 .7rem/1.35 var(--font-ios);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.currency-estimate[hidden] { display: none; }
.rank-comparison .comparison-price .currency-estimate { color: #b8a9c4; font-size: .66rem; font-weight: 400; }
.rank-comparison-title { max-width: 880px; margin: 0 auto 12px; }
.rank-comparison-title::before, .rank-comparison-title::after { height: 2px; }
.rank-comparison-title > span { font-size: clamp(1rem, 2vw, 1.3rem); padding: .75rem 1.35rem; }
.rank-comparison caption.visually-hidden-caption {
    position: absolute !important; width: 1px; height: 1px; padding: 0 !important; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.crate-bundle-art {
    display: block;
    width: 144px;
    height: 124px;
    margin: 0 auto 1.4rem;
    object-fit: contain;
    image-rendering: pixelated;
    transition: transform .22s ease, filter .22s ease;
}
.crate-card:hover .crate-bundle-art { transform: translateY(-3px) scale(1.04); filter: drop-shadow(0 9px 12px #0008); }
@media (max-width: 640px) {
    .rank-comparison-title { gap: .75rem; margin-bottom: 10px; }
    .rank-comparison-title > span { padding: .65rem .85rem; font-size: .88rem; }
}

/* Compact address control: status lives in a tooltip, outside navbar flow. */
.sculk-header .js-copy-ip { position: relative; flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; box-shadow: none; }
.sculk-header .js-copy-ip .ip-separator,
.sculk-header .js-copy-ip .server-maintenance-icon { display: none; }
.sculk-header .js-copy-ip .ip-online-count {
    display: block; position: absolute; top: calc(100% + 10px); right: 0;
    width: max-content; max-width: min(280px, calc(100vw - 24px));
    padding: 10px 14px; border-radius: 8px; background: #26212d; color: #f5f0fa;
    box-shadow: 0 6px 18px #0005; font-size: .85rem; line-height: 1.5;
    white-space: normal; pointer-events: none; opacity: 0; visibility: hidden;
    transition: opacity 150ms ease, visibility 150ms ease; z-index: 20;
}
.sculk-header .js-copy-ip:hover .ip-online-count,
.sculk-header .js-copy-ip:focus-visible .ip-online-count { opacity: 1; visibility: visible; }
.sculk-header .js-copy-ip[data-server-state="maintenance"] { background: #852f3b; color: #fff0f1; }
.sculk-header .js-copy-ip[data-server-state="maintenance"]:hover { background: #9b3845; }
.sculk-header .js-copy-ip[data-server-state="maintenance"] .pulse-circle { display: block; background: #ffb4bf; box-shadow: none; }
.sculk-header .js-copy-ip[data-server-state="online"] { background: #21613d; color: #e6ffef; }
.sculk-header .js-copy-ip[data-server-state="online"]:hover { background: #28764a; }
.sculk-header .js-copy-ip[data-server-state="online"] .pulse-circle { background: #97f5b8; box-shadow: none; }
.sculk-header .js-copy-ip[data-server-state="checking"],
.sculk-header .js-copy-ip[data-server-state="unavailable"] { background: #39323f; color: #f3edf7; }
.sculk-header .js-copy-ip .js-player-count { color: inherit; }
.store-page .sculk-nav-container { gap: 18px; }
.store-page .sculk-nav-container > * { flex-shrink: 0; }
.store-page .nav-menu-links { gap: 22px; padding-left: 0; }
.store-page .nav-right-actions { gap: 12px; flex-wrap: nowrap; }
@media (max-width: 1280px) {
    .store-page .nav-menu-links { display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; background: #221d28; border: 1px solid #44384f; border-radius: 12px; box-shadow: 0 12px 24px #0005; max-height: calc(100dvh - 150px); overflow-y: auto; }
    .store-page .nav-menu-links.is-open { display: flex; }
    .store-page .nav-menu-item a { display: flex; padding: 12px 16px; min-height: 44px; }
    .store-page .mobile-sculk-toggle { display: block; min-width: 44px; min-height: 44px; }
    .store-page .currency-widget { margin-left: auto; }
}
@media (max-width: 640px) {
    .store-page .sculk-nav-container { display: grid; grid-template-columns: 1fr auto; height: auto; gap: 10px 12px; padding: 12px; }
    .store-page .sculk-nav-container > nav { position: absolute; width: 0; }
    .store-page .currency-widget { order: 0; grid-column: 2; margin: 0; }
    .store-page .currency-panel { left: auto; right: 0; }
    .store-page .nav-right-actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 6px; width: 100%; }
    .store-page .nav-right-actions .js-copy-ip { justify-self: start; min-height: 44px; padding: 9px 10px; font-size: .78rem; }
    .store-page #nav-set-user-btn { width: 44px; min-height: 44px; justify-content: center; }
    .store-page #nav-set-user-btn > span { display: none; }
    .store-page #nav-account-pill { max-width: 100px; min-width: 0; padding: 6px; gap: 5px; }
    .store-page #nav-account-name { max-width: 45px; }
    .store-page .account-nav-edition { display: none; }
    .store-page .nav-right-actions > a { display: grid; place-items: center; min-width: 30px; min-height: 44px; }
    .store-page .js-copy-ip .ip-online-count { left: 0; right: auto; }
}
@media (prefers-reduced-motion: reduce) { .sculk-header .js-copy-ip .ip-online-count { transition: none; } }

/* Keep bonus details in the normal flow between perks and purchase. */
.rank-purchase-bonus .rank-bonus-heading { margin-bottom: 6px; font-size: .55rem; }
.rank-purchase-bonus .rank-bonus-items { gap: 5px 10px; }
.rank-purchase-bonus .rank-bonus-item,
.rank-purchase-bonus .rank-bonus-voucher { min-height: 20px; font-size: .73rem; }
.rank-purchase-bonus .rank-bonus-item img,
.rank-purchase-bonus .rank-bonus-voucher img { width: 20px; height: 20px; flex-basis: 20px; }
.rank-price, .crate-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 7px; min-width: 0; font-variant-numeric: tabular-nums; }
.rank-price .cur, .crate-price .cur { margin-right: 0; flex: 0 0 auto; }
.store-price-amount { min-width: 0; overflow-wrap: anywhere; font-size: clamp(1.2rem, 2.3vw, 1.85rem); line-height: 1.25; }
.rank-price-unit { flex-basis: 100%; }
.rank-comparison .comparison-price td { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rank-comparison .comparison-price .cur { display: block; color: #c4b7d0; font-size: .68rem; margin-bottom: 4px; }
.rank-comparison .comparison-price .store-price-amount { font-size: .92rem; }
#checkoutItemPrice, #checkoutTotalVal, #perksModalPrice { overflow-wrap: anywhere; min-width: 0; font-variant-numeric: tabular-nums; }
#checkoutItemPrice, #checkoutTotalVal { text-align: right; }
