.site, .page-index.home-categories-enabled .site { display: flex; flex-direction: column; align-items: stretch; gap: 24px; width: 100%; min-height: 100vh; }
#main-content { flex: 1; width: 100%; min-width: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100001; padding: 12px; background: var(--color-primary); color: #111; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; }
.btn-primary, .btn-secondary, .btn-tertiary { border-radius: 8px; }
.btn-primary, .btn-secondary { font-weight: 700; }
a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.site-header-inner .user-actions, .site-header-inner .log-in, .site-header-inner .actions, .site-header-inner .info { position: static; inset: auto; margin: 0; width: auto; height: auto; }
.site-header-inner > .actions { display: none; }
.site-header-inner .user-name { max-width: 150px; overflow-wrap: anywhere; }
.eyebrow { color: var(--color-primary); text-transform: uppercase; font-weight: 700; font-size: 12px; letter-spacing: .12em; margin-bottom: 10px; }
.home-information summary { cursor: pointer; color: var(--color-text); font-weight: 700; list-style-position: inside; }
.home-information-content { margin-top: 24px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 24px; margin-bottom: 24px; font-size: 13px; }
.footer-links a:hover { color: var(--color-primary); }
.site-popup { min-height: 0; }
.site-content { margin-top: 28px; margin-bottom: 36px; }
.store-text, .category-header, .widget, .no-products, .store-product-full, .store-products-list .store-product, .store-products-images .store-product { border: 1px solid var(--fv-border); border-radius: 12px; background: var(--color-brighter-bg); }
.store-text { padding: 28px; }
.text-content { line-height: 1.7; }
.text-content p { color: var(--color-text-secondary); }
.text-content a { text-decoration: underline; text-underline-offset: 3px; }
.category-header { padding: 24px; margin-bottom: 20px; }
.category-header h1 { font-size: 32px; }
.category-description { margin-top: 12px; padding: 0; }
.product-card-content { display: contents; }
.store-product .image-link-empty, .store-product-full > .image-default { display: none; }
.store-product .image { object-fit: contain; }
.store-product-full { padding: 24px; }
.widget-title { text-align: left; }
.popup-content, .toast, .basket-item, .quantity-field { border-radius: 10px; }
.footer-brand { display: grid; gap: 8px; margin-bottom: 20px; }
.footer-brand strong { font-size: 22px; }
.footer-brand span, .copyright { color: var(--color-text-secondary); font-size: 13px; }
:root { --color-primary: #cc234c; --color-primary-hover: #e73963; --color-primary-text: #ffffff; --color-primary-text-hover: #ffffff; --color-text: #f6f6f7; --color-secondary: #333641; --color-secondary-hover: #444855; --color-secondary-text: #fff; --color-secondary-text-hover: #fff; --bg-image: none; --fv-page: #241029; --fv-topbar: #35113b; --color-bg: #241029; --color-brighter-bg: #35183b; --color-text-secondary: #d0bfd4; --fv-border: #65406b; }
body { font-family: Arial, sans-serif; background: #1d0b22; }
.site { gap: 0; background: linear-gradient(180deg, #2b1030 0%, var(--fv-page) 48%, #1e0b23 100%); }
.site-header { width: 100%; max-width: none; padding: 0; background: var(--fv-topbar); }
.site-header-inner, body.is-navigation-horizontal .site-header-inner { display: flex; align-items: center; gap: 20px; height: auto; width: min(calc(100% - 32px), var(--content-inner-width)); max-width: none; min-height: 72px; margin: 0 auto; padding: 11px 0; border: 0; border-radius: 0; background: transparent; }
.site-header-inner .actions { order: 1; }
.header-community-actions { display: flex; flex: 1; gap: 24px; order: 2; justify-content: flex-start; }
.site-header-inner .user-actions { display: flex; align-items: center; gap: 10px; order: 3; margin-left: auto; }
.site-header-inner .info.server { display: flex; align-items: center; gap: 10px; max-width: none; text-align: left; min-width: 0; padding: 8px 12px; border: 1px solid #82458b; border-radius: 7px; background: #310d36; }
.currency-pill, .patrons-link { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 15px; border: 1px solid #82458b; border-radius: 7px; color: #fff; font-size: 13px; font-weight: 800; }
.currency-selector { position: relative; }
.currency-selector summary { list-style: none; cursor: pointer; user-select: none; }
.currency-selector summary::-webkit-details-marker { display: none; }
.currency-globe { position: relative; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 7px; border: 1px solid currentColor; border-radius: 50%; font-size: 0; }
.currency-globe::before, .currency-globe::after { content: ""; position: absolute; display: block; }
.currency-globe::before { width: 5px; height: 11px; border-right: 1px solid currentColor; border-left: 1px solid currentColor; border-radius: 50%; }
.currency-globe::after { width: 11px; border-top: 1px solid currentColor; }
.currency-chevron { margin-left: 8px; color: #cbb6d2; font-size: 11px; transition: transform .18s ease; }
.currency-selector[open] .currency-chevron { transform: rotate(180deg); }
.currency-menu { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; width: 112px; max-height: 360px; margin: 0; padding: 6px 0; overflow-y: auto; border: 1px solid #8e3e9e; border-radius: 9px; background: #3b0d40; box-shadow: 0 16px 40px #0009; list-style: none; }
.currency-menu li { margin: 0; padding: 0; }
.currency-menu a { display: block; padding: 10px 16px; color: #fff; font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; }
.currency-menu a:hover, .currency-menu a:focus-visible { background: #762782; }
.currency-menu li.active a { background: #aa3bb6; }
.patrons-link { background: transparent; border-color: #82458b; }
.patrons-link::before { content: "♛"; margin-right: 7px; }
.site-header-inner .log-in { border: 1px solid #82458b; background: #310d36; }
.site-header-inner .open-basket { --color-primary: #cc234c; --color-primary-hover: #e73963; border: 0; }
.site-sale-banner { display: flex; align-items: center; justify-content: center; width: min(calc(100% - 32px), 1130px); max-width: none; min-height: 135px; margin: 48px auto 22px; padding: 24px; border: 1px solid #ff4f71; border-bottom: 5px solid #b90028; border-radius: 14px; color: #fff; background: linear-gradient(90deg, #ff1e48ee, #dc0734ee), var(--bg-image) center/cover; font-size: clamp(26px, 4vw, 42px); font-weight: 900; text-transform: uppercase; text-shadow: 0 5px 0 #720019, 0 8px 15px #0009; }
.page-index .navigation-horizontal { display: none; }
.page-index .toggle-navigation { display: none !important; }
.navigation-horizontal { margin: 0 auto; padding: 8px var(--content-padding); background: #351039; }
.navigation-horizontal .menu { border: 0; background: transparent; }
.page-index:has(.site-sale-banner) #main-content { padding-top: 0; }
.home-bottom { margin-top: 0; }
.home-information { border-color: #67306e; background: linear-gradient(145deg, #3b1741, #2d1233); box-shadow: none; }
.site-footer { margin-top: auto; padding: 28px 0; border-top: 1px solid var(--fv-border); background: #2b102f; border-color: #55225c; }
.popup { background: #09000de8; backdrop-filter: blur(9px); }
.popup-scroll-cont { min-height: 100dvh; padding: 20px; }
.login-popup-content { width: min(100%, 480px) !important; max-width: 480px !important; min-height: 0 !important; padding: 34px !important; overflow: visible; border: 1px solid #713078; border-radius: 14px; background: linear-gradient(150deg, #2a0a2f, #17131c) !important; box-shadow: 0 24px 80px #000b; }
.login-popup-content h1, .login-popup-content h2, .login-popup-content h3 { margin: 0 42px 8px 0; font-size: 28px; line-height: 1.15; }
.login-popup-content p { margin-bottom: 20px; color: #cbbdd0; font-size: 15px; }
.login-popup-content .field, .login-popup-content .input-group { margin-bottom: 18px; }
.login-popup-content label { display: block; margin-bottom: 8px; color: #fff; font-size: 13px; font-weight: 800; }
.login-popup-content input[type=text], .login-popup-content input[type=password], .login-popup-content input[type=email] { display: block !important; width: 100% !important; min-height: 50px; margin: 0 0 16px !important; padding: 12px 14px !important; border: 1px solid #69316f; border-radius: 8px; color: #fff; background: #100d13 !important; }
.login-popup-content .actions { justify-content: flex-start; }
.login-popup-content .btn-primary, .login-popup-content button[type=submit], .login-popup-content input[type=submit] { min-width: 150px; border-radius: 8px; text-align: center; }
.popup-close { top: 10px; right: 10px; border-radius: 7px; }
.popup-close::before { mask: none; background: no-repeat center/22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5 5 19'/%3E%3C/svg%3E"); }
.key-amounts { display: flex; gap: 6px; }
.key-amount { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; min-height: 38px; padding: 0 4px; border: 1px solid var(--fv-border); border-radius: 6px; background: transparent; color: var(--color-text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.key-amount:hover { border-color: var(--color-text-secondary); }
.key-amount[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-primary-text); }
.key-variant { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: flex-end; gap: 4px; }
.store-products-images .key-variant .actions { flex: 0 0 auto; }
.store-products-images .key-variant .price { margin-bottom: 4px; }
.key-product .image { width: auto; height: 140px; object-fit: contain; }
.key-variant[hidden] { display: none; }
.key-each { margin: 0; color: var(--color-text-secondary); font-size: 13px; }
.store-products-images:has( > .key-product) { display: flex; flex-wrap: wrap; justify-content: center; container-type: inline-size; }
.store-products-images:has( > .key-product) > .store-product { flex: 0 0 calc((100% - 72px) / 3); min-width: 0; }

@media (min-width: 961px) {
  .navigation-horizontal { margin-top: 14px; }
  .navigation-horizontal .menu { border-radius: 10px; flex-wrap: wrap; }
  .navigation-horizontal .menu > li { flex: 0 1 auto; min-width: 0; }
  .navigation-horizontal .menu > li > a { max-width: none; text-overflow: clip; white-space: normal; padding-inline: 20px; }
  .navigation-horizontal .has-children:focus-within > ul { visibility: visible; opacity: 1; pointer-events: auto; }
}

@media (max-width: 1100px) {
  .header-community-actions { gap: 8px; }
}

@media (max-width: 520px) {
  .site-header-inner .user-actions { gap: 5px; }
  .site-header-inner .log-in { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media (max-width: 960px) {
  .site-header-inner { flex-wrap: wrap; gap: 12px; }
  .site-header-inner .user-name { display: none; }
  .site-header-inner .toggle-navigation { background: no-repeat center/22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
  .site-header-inner .open-basket::before { width: 21px; height: 21px; margin: 0; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 2 11h10l2-11H5Z'/%3E%3Cpath d='m9 9 3-5 3 5'/%3E%3C/svg%3E"); mask: none; }
  .site-header-inner, body.is-navigation-horizontal .site-header-inner { flex-wrap: nowrap; min-height: 66px; }
  .site-header-inner > .actions { display: flex; }
  .header-community-actions { flex-basis: 100%; display: flex; }
  .currency-selector, .user-actions > .currency-pill { display: none; }
  .patrons-link { width: 42px; padding: 0; font-size: 0; }
  .patrons-link::before { margin: 0; font-size: 17px; }
}

@media (max-width: 640px) {
  .site-sale-banner { min-height: 105px; margin-top: 24px; }
  .popup-scroll-cont { align-items: center !important; padding: 14px; }
  .login-popup-content { padding: 26px 20px !important; border-radius: 12px; }
  .login-popup-content h1, .login-popup-content h2 { font-size: 24px; }
  .site-header-inner, body.is-navigation-horizontal .site-header-inner { gap: 6px; }
  .site-header-inner .user-actions { gap: 6px; }
  .site-header-inner .log-in { display: inline-flex; align-items: center; height: 42px; padding: 0 10px; font-size: 13px; }
  .header-community-actions { flex: 1 1 auto; min-width: 0; }
  .site-header-inner .info.server { gap: 6px; min-width: 0; max-width: 100%; padding: 8px; }
  .site-header-inner .info.server > span:last-child { min-width: 0; }
}

@container (max-width: 821px) {
  .store-products-images:has( > .key-product) > .store-product { flex-basis: calc((100% - 36px) / 2); }
}

@container (max-width: 535px) {
  .store-products-images:has( > .key-product) > .store-product { flex-basis: 100%; }
}

/* Top bar: logo on the left of the bar, server address as plain text with a copy hint */
.site-header { border-bottom: 1px solid #3b1041; }
.site-header-inner .site-title { position: static; inset: auto; width: auto; height: auto; transform: none; margin: 0 16px 0 0; line-height: 0; flex: 0 0 auto; order: 1; }
.site-header-inner .site-title a { display: block; }
.site-header-inner .site-title img { height: 54px; width: auto; max-width: none; max-height: none; filter: none; animation: none; }
.site-header-inner .info.server { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: auto; min-width: 0; padding: 4px 0; border: 0; border-radius: 0; background: none; color: #fff; cursor: pointer; text-align: left; }
.server-ip { font-size: 15px; font-weight: 700; line-height: 1.2; }
.server-ip-hint { display: inline-flex; align-items: center; gap: 5px; color: var(--color-text-secondary); font-size: 12px; line-height: 1.2; }
.server-ip-hint::before { content: ""; width: 11px; height: 11px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E") center / contain no-repeat; }
.site-header-inner .info.server:hover .server-ip { text-decoration: underline; text-underline-offset: 3px; }

.header-community-actions { order: 2; }

@media (max-width: 640px) {
  .site-header-inner, body.is-navigation-horizontal .site-header-inner { flex-wrap: wrap; row-gap: 0; }
  .site-header-inner > .actions { order: 0; }
  .site-header-inner .site-title { order: 1; margin: 0; }
  .site-header-inner .site-title img { height: 36px; }
  .site-header-inner .user-actions { order: 3; flex: 0 0 auto; margin-left: auto; justify-content: flex-end; }
  .header-community-actions { order: 5; flex: 1 0 100%; justify-content: center; margin-top: 10px; padding-top: 6px; border-top: 1px solid #3b1041; }
  .site-header-inner .info.server { flex-direction: row; align-items: center; gap: 10px; padding: 2px 0; }
}
@media (max-width: 370px) {
  .site-header-inner, body.is-navigation-horizontal .site-header-inner { gap: 4px; }
  .site-header-inner .site-title img { height: 28px; }
  .site-header-inner .user-actions { gap: 4px; }
  .site-header-inner .log-in { padding: 0 8px; }
  .patrons-link { width: 38px; }
  .site-header-inner .open-basket { min-width: 38px; }
}

/* ---- Homepage category cards ----
   Dark cards in the store colours, a glow in the item's own colour, notched "block" corners
   and a hard offset shadow like the logo. Ranks is the wide featured card. */
.page-index #main-content { padding-top: 40px; }
.category-section { width: min(calc(100% - 32px), var(--content-inner-width)); margin: 0 auto 44px; }
.category-section .site-home-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; padding: 0; }

.site-home-categories .category { --step: 6px; --accent: #ff4a6e; position: relative; isolation: isolate; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 170px; padding: 26px 28px 30px; overflow: visible; border: 0; border-radius: 0; color: #fff; background: none !important; box-shadow: none; text-align: left; text-decoration: none; transition: transform .15s ease; }
.site-home-categories .category.is-featured { grid-column: 1 / -1; min-height: 200px; padding: 34px 44px 38px; }
.site-home-categories .category-1 { --accent: #b24be8; }
.site-home-categories .category-2 { --accent: #22c6f0; }
.site-home-categories .category-3 { --accent: #ff4150; }
.site-home-categories .category-4 { --accent: #6f7dff; }

.category-shadow, .category-frame { position: absolute; inset: 0; pointer-events: none;
  clip-path: polygon(0 var(--step), var(--step) var(--step), var(--step) 0, calc(100% - var(--step)) 0, calc(100% - var(--step)) var(--step), 100% var(--step), 100% calc(100% - var(--step)), calc(100% - var(--step)) calc(100% - var(--step)), calc(100% - var(--step)) 100%, var(--step) 100%, var(--step) calc(100% - var(--step)), 0 calc(100% - var(--step))); }
.category-shadow { z-index: -2; transform: translateY(7px); background: #13051a; transition: transform .15s ease; }
.category-frame { z-index: -1; background:
    radial-gradient(circle at 84% 58%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 42%),
    linear-gradient(180deg, #3d1a44, #2e1234);
  box-shadow: inset 0 2px 0 #ffffff14, inset 0 -3px 0 #00000040; }
.site-home-categories .category.is-featured .category-frame { background:
    radial-gradient(circle at 86% 55%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 34%),
    linear-gradient(180deg, #3d1a44, #2e1234); }

.site-home-categories .category:hover { transform: translateY(-3px); filter: none; }
.site-home-categories .category:hover .category-shadow { transform: translateY(10px); }
.site-home-categories .category:active { transform: translateY(3px); }
.site-home-categories .category:active .category-shadow { transform: translateY(4px); }

.category-content { position: relative; z-index: 1; display: grid; gap: 10px; min-width: 0; text-align: left; }
.category-name { font-family: "Rubik", Arial, sans-serif; font-size: 28px; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-transform: none; text-shadow: 0 3px 0 #0000004d; }
.is-featured .category-name { font-size: 44px; }
.category-meta { min-height: 1.3em; color: #e3d3e8; font-size: 15px; font-weight: 600; opacity: 0; transition: opacity .25s; }
.category-meta.is-ready { opacity: 1; }

.category-art { position: relative; z-index: 1; flex: 0 0 auto; width: 130px; height: 130px; margin: -58px -6px -18px 0; object-fit: contain; filter: drop-shadow(0 8px 0 #0000004d); transition: transform .2s ease; }
.is-featured .category-art { width: 200px; height: 200px; margin: -80px 8px -30px 0; }
.site-home-categories .category:hover .category-art { transform: translateY(-4px) rotate(-4deg); }
.category-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.category-tiers li { margin: 0; padding: 5px 10px; border: 1px solid #ffffff26; background: #00000033; color: #f1e6f4; font-size: 13px; font-weight: 700; line-height: 1.3;
  clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px)); }

@media (max-width: 960px) {
  .category-section .site-home-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-home-categories .category:last-child:nth-child(even) { grid-column: 1 / -1; }
  .category-art { width: 116px; height: 116px; margin-top: -44px; }
  .category-name { font-size: 26px; }
}
@media (max-width: 640px) {
  .page-index #main-content { padding-top: 34px; }
  .category-section .site-home-categories { grid-template-columns: 1fr; gap: 30px; }
  .site-home-categories .category, .site-home-categories .category.is-featured { min-height: 124px; padding: 20px 20px 24px; }
  .category-name { font-size: 24px; }
  .is-featured .category-name { font-size: 30px; }
  .category-meta { font-size: 14px; }
  .category-tiers { gap: 6px; }
  .category-tiers li { padding: 4px 8px; font-size: 12px; }
  .category-art { width: 96px; height: 96px; margin: -34px -4px -12px 0; }
  .is-featured .category-art { width: 124px; height: 124px; margin: -46px -4px -16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-home-categories .category:hover, .site-home-categories .category:hover .category-art { transform: none; }
}
.category-header h1 { font-family: "Rubik", Arial, sans-serif; font-weight: 800; letter-spacing: -.01em; }

/* ---- Store-wide block style (matches the homepage cards) ----
   Notched corners + hard shadow are drawn by ::before / ::after layers so buttons inside are never clipped. */
:root { --fv-notch: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)); }
.store-products-images .store-product, .store-product-full, .category-header, .store-text, .store-extras .widget, .no-products {
  position: relative; isolation: isolate; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.store-products-images .store-product::before, .store-product-full::before, .category-header::before, .store-text::before, .store-extras .widget::before, .no-products::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; clip-path: var(--fv-notch);
  background: linear-gradient(180deg, #3d1a44, #2e1234); box-shadow: inset 0 2px 0 #ffffff14, inset 0 -3px 0 #00000040; }
.store-products-images .store-product::after, .store-product-full::after, .category-header::after, .store-text::after, .store-extras .widget::after, .no-products::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; clip-path: var(--fv-notch); transform: translateY(6px); background: #13051a; }
.store-products-images .store-product::before { background: radial-gradient(circle at 50% 30%, #cc234c2e, transparent 55%), linear-gradient(180deg, #3d1a44, #2e1234); }
.store-products-images .store-product { transition: transform .15s ease; }
.store-products-images .store-product:hover { transform: translateY(-3px); }
.store-products-images .store-product .image { transition: transform .2s ease; }
.store-products-images .store-product:hover .image { transform: translateY(-3px) rotate(-3deg); }

/* Titles in the store font */
.store-product .product-title, .category-header h1, .store-text h2, .widget-title { font-family: "Rubik", Arial, sans-serif; font-weight: 800; letter-spacing: -.01em; }
.store-products-images .store-product .product-title { font-size: 20px; }

/* Buttons: chunky block style that presses down */
.btn-primary { border-radius: 4px; box-shadow: 0 4px 0 #7d1230; transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #7d1230; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #7d1230; }
.btn-secondary { border-radius: 4px; }
.store-product .actions { overflow: visible; padding-bottom: 4px; }

/* Category header: slimmer */
.category-header { min-height: 0; padding: 22px 26px 24px; margin-bottom: 30px; }
.category-header .category-description { margin-bottom: 0; }
.category-header .eyebrow { display: none; }
.category-header h1 { font-size: 34px; line-height: 1.1; }
.category-description { margin-top: 8px; color: var(--color-text-secondary); }

/* Page layout: no sidebar column, products use the full width */
.site-content, .site-content-widgets, .site-content-text { width: min(calc(100% - 32px), var(--content-inner-width)); max-width: none; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
.site-content-widgets { display: flex !important; flex-direction: column; align-items: stretch; gap: 44px; }
.site-content-widgets > main { width: 100%; }
.site-content-widgets .store-extras { order: 2; width: 100%; }
.store-products-images { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 34px 24px; }
.store-products-images .store-product .image-link { height: 180px; margin-bottom: 4px; }
.store-products-images .store-product .image { height: 170px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 0 #0000004d); }
@container (min-width: 1000px) {
  .store-products-images:has( > .key-product) > .store-product { flex-basis: calc((100% - 72px) / 4); }
}

/* Widgets row under the content */
.store-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; order: 2; }
.store-extras:empty { display: none; }
.store-extras .widget { margin: 0 !important; padding: 22px 24px 24px; }
.store-extras .widget-recent { grid-column: 1 / -1; }
.store-extras .widget-title { margin-bottom: 14px; font-size: 18px; }
.store-extras > * { min-width: 0; }
.store-extras .widget-recent .purchases { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.store-extras .widget-recent .purchase { flex: 0 0 auto; align-items: center; margin: 0; padding: 8px 14px 8px 8px; background: #00000033; clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px)); }
.store-extras .widget-recent .avatar { width: 32px; height: 32px; }
.store-extras .widget-recent .info p, .store-extras .widget-recent time { font-size: 12px; color: var(--color-text-secondary); }
.store-extras .widget-top-donator .widget-content { display: flex; align-items: center; gap: 16px; }
.store-extras .widget-top-donator .avatar { width: 56px; margin: 0; }
.store-extras .widget-top-donator .username { margin-bottom: 2px; }
.store-extras .widget-top-donator p { color: var(--color-text-secondary); font-size: 14px; }

/* Package page: picture left, name/price/button right, perks below */
.store-product-full.package-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 40px; align-items: center; padding: 36px 40px 40px; }
.package-layout .package-media { display: grid; place-items: center; min-height: 260px; background: radial-gradient(circle at 50% 50%, #cc234c33, transparent 62%); }
.package-layout .package-media .image { width: auto; max-width: 100%; max-height: 300px; object-fit: contain; filter: drop-shadow(0 8px 0 #0000004d); }
.package-layout .package-info { display: grid; gap: 22px; align-content: center; }
.package-layout .product-title { font-size: 36px; line-height: 1.1; }
.package-layout .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin: 0; background: none; padding: 0 0 4px; }
.package-layout .actions .price { width: auto; margin: 0 8px 0 0; }
.package-layout .actions .price strong { font-size: 30px; font-weight: 800; font-family: "Rubik", Arial, sans-serif; }
.package-layout .actions .wide, .package-layout .actions .half { flex: 0 1 240px; min-height: 48px; font-size: 16px; }
.package-layout .descr { grid-column: 1 / -1; margin-top: 10px; padding-top: 26px; border-top: 1px solid #ffffff1a; color: var(--color-text-secondary); line-height: 1.6; }
.package-layout .descr ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; margin: 12px 0 18px; padding: 0; list-style: none; }
.package-layout .descr li { position: relative; margin: 0; padding-left: 22px; color: var(--color-text); }
.package-layout .descr li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; background: var(--color-primary); box-shadow: 2px 2px 0 #7d1230; }
.package-layout .descr li:has(img) { grid-column: 1 / -1; padding-top: 4px; }
.package-layout .descr img { display: block; width: min(100%, 520px) !important; max-width: 100%; height: auto !important; margin: 12px 0; image-rendering: pixelated; }
.package-layout .descr em { color: var(--color-text-secondary); }

/* Tab bar under the top bar (desktop); on phones it stays in the menu button */
@media (min-width: 961px) {
  .navigation-horizontal { margin: 0 !important; padding: 0; background: #2a0d2f; border-bottom: 1px solid #3b1041; }
  .site-header .navigation-horizontal .menu { width: min(calc(100% - 32px), var(--content-inner-width)); margin: 0 auto; padding: 0; justify-content: flex-start; gap: 4px; background: transparent; border: 0; border-radius: 0; font-size: 15px; line-height: 1.2; }
  .site-header .navigation-horizontal .menu > li > a { padding: 15px 16px 13px; border-bottom: 3px solid transparent; color: var(--color-text-secondary); font-family: "Rubik", Arial, sans-serif; font-weight: 700; max-width: none; }
  .site-header .navigation-horizontal .menu > li > a:hover { color: #fff; }
  .site-header .navigation-horizontal .menu > li > a.link-active { color: #fff; border-bottom-color: var(--color-primary); }
}

@media (max-width: 960px) {
  .store-product-full.package-layout { grid-template-columns: 1fr; padding: 26px 22px 28px; }
  .package-layout .package-media { min-height: 0; }
  .package-layout .package-media .image { max-height: 220px; }
  .package-layout .product-title { font-size: 28px; }
  .store-extras { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .store-products-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .store-products-images .store-product { padding: 16px 14px 18px; }
  .store-products-images .store-product .image-link { height: 120px; }
  .store-products-images .store-product .image { height: 112px; }
  .store-products-images .store-product .product-title { font-size: 16px; }
  .store-products-images .store-product .price strong { font-size: 17px; }
  .category-header h1 { font-size: 28px; }
  .package-layout .actions .wide, .package-layout .actions .half { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .store-products-images .store-product:hover, .store-products-images .store-product:hover .image, .btn-primary:hover, .btn-primary:active { transform: none; }
}

/* ---- Less glow: flat cards, colour shown as a solid line on top instead of a glow ---- */
.category-frame, .site-home-categories .category.is-featured .category-frame { background: linear-gradient(180deg, #3b1942, #2f1335); box-shadow: inset 0 3px 0 var(--accent), inset 0 -3px 0 #00000040; }
.store-products-images .store-product::before { background: linear-gradient(180deg, #3b1942, #2f1335); }
.package-layout .package-media { background: none; }

/* ---- Homepage picture (Appearance -> Background Image), homepage only ---- */
.page-index #main-content { position: relative; isolation: isolate; padding-top: 150px; }
.page-index .site, .page-index.home-categories-enabled .site { gap: 0; }
.home-hero { position: absolute; top: 0; left: 0; right: 0; z-index: -1; height: 420px; pointer-events: none;
  background-image: linear-gradient(180deg, transparent 35%, var(--fv-page) 100%), linear-gradient(#1d0b22a6, #1d0b22a6), var(--hero-image);
  background-size: cover; background-position: center 30%; background-repeat: no-repeat; }
@media (max-width: 640px) {
  .page-index #main-content { padding-top: 90px; }
  .home-hero { height: 260px; }
}

/* ---- Compare Ranks page ---- */
.category-compare-link { display: inline-block; margin-top: 12px; color: #fff; font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.category-compare-link::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .4em; vertical-align: -.16em; background: var(--color-primary); -webkit-mask: var(--fv-arrow) center / contain no-repeat; mask: var(--fv-arrow) center / contain no-repeat; transition: transform .15s ease; }
.category-compare-link:hover::after { transform: translateX(3px); }
.category-compare-link:hover { color: var(--color-primary); }
.rank-compare { display: flex; flex-direction: column; gap: 30px; }
.rank-compare .category-header { margin-bottom: 0; }
.rc-panel { position: relative; isolation: isolate; padding: 26px 28px 30px; }
.rc-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--fv-notch); background: linear-gradient(180deg, #3b1942, #2f1335); box-shadow: inset 0 2px 0 #ffffff14, inset 0 -3px 0 #00000040; }
.rc-panel::after { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--fv-notch); transform: translateY(6px); background: #13051a; }
.rc-panel h2 { margin: 0 0 4px; font-family: "Rubik", Arial, sans-serif; font-size: 24px; font-weight: 800; }
.rc-panel h2.rc-gap { margin-bottom: 18px; }

/* upgrade path */
.rc-path { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.rc-step { position: relative; flex: 1 1 0; min-width: 118px; }
.rc-step a { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; padding: 14px 8px 16px; border-top: 3px solid var(--rc); background: #00000033; color: #fff; text-align: center; text-decoration: none; transition: transform .15s ease; }
.rc-step a:hover { transform: translateY(-3px); }
.rc-step img { width: 56px; height: 56px; object-fit: contain; }
.rc-step-name { font-family: "Rubik", Arial, sans-serif; font-weight: 800; font-size: 17px; }
.rc-step-price { color: var(--color-text-secondary); font-size: 14px; font-weight: 700; min-height: 1.2em; }

/* table */
.rc-scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px 4px; scrollbar-width: thin; }
.rc-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; }
.rc-table th, .rc-table td { padding: 11px 10px; border-bottom: 1px solid #ffffff14; text-align: center; vertical-align: middle; }
.rc-table tbody th { width: 26%; color: var(--color-text); font-weight: 700; text-align: left; }
.rc-table tbody th small { display: block; margin-top: 2px; color: var(--color-text-secondary); font-size: 12px; font-weight: 400; }
.rc-table tbody tr:nth-child(even) { background: #00000022; }
.rc-table thead th { padding: 6px 6px 14px; border-bottom: 3px solid var(--rc); }
.rc-table thead a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-family: "Rubik", Arial, sans-serif; font-size: 16px; font-weight: 800; text-decoration: none; }
.rc-table thead img { width: 64px; height: 64px; object-fit: contain; transition: transform .2s ease; }
.rc-table thead a:hover img { transform: translateY(-3px) rotate(-3deg); }
.rc-price-row td strong { font-family: "Rubik", Arial, sans-serif; font-size: 18px; font-weight: 800; }
.rc-yes { color: #5fe07a; font-weight: 800; font-size: 16px; }
.rc-no { color: #ffffff40; }
.rc-prefix { display: inline-block; padding: 2px 7px; border: 1px solid var(--rc); color: var(--rc); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.rc-buy-row td, .rc-buy-row th { border-bottom: 0; padding-top: 16px; }
.rc-buy { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 18px; font-size: 14px; }
/* keep the perk names visible while scrolling sideways on phones */
@media (max-width: 960px) {
  .rc-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; overflow: visible; }
  .rc-step { min-width: 0; }
  .rc-step + .rc-step::before { display: none; }
  .rc-table tbody th, .rc-table thead td { position: sticky; left: 0; z-index: 1; background: #34163b; min-width: 150px; }
  .rc-table tbody tr:nth-child(even) th { background: #2d1233; }
}
@media (max-width: 640px) {
  .rc-panel { padding: 20px 16px 22px; }
  .rc-panel h2 { font-size: 20px; }
  .rc-table { font-size: 13px; }
  .rc-table thead img { width: 44px; height: 44px; }
}

/* ---- Patrons page (list loaded from the fv-patrons worker) ---- */
.patrons-page { display: flex; flex-direction: column; gap: 30px; }
.patrons-page .category-header { margin-bottom: 0; }
.pt-count { color: var(--color-text-secondary); font-weight: 700; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pt-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px 16px; border-top: 3px solid var(--color-primary); background: #00000033; text-align: center; }
.pt-card img { width: 64px; height: 64px; image-rendering: pixelated; }
.pt-name { max-width: 100%; font-family: "Rubik", Arial, sans-serif; font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.pt-note { margin: 0; color: var(--color-text-secondary); }
.pt-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.pt-cta h2 { margin-bottom: 4px; }
@media (max-width: 640px) {
  .pt-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pt-cta .btn-primary { width: 100%; text-align: center; }
}

/* ---- Login box inside the basket (shown when someone opens the basket before logging in) ---- */
.basket-popup-content:has(input[name="ign"]) { padding: 30px 26px !important; }
.basket-popup-content:has(input[name="ign"]) h2 { margin: 0 44px 6px 0; font-family: "Rubik", Arial, sans-serif; font-size: 26px; font-weight: 800; line-height: 1.15; }
.basket-popup-content:has(input[name="ign"]) h2::after { content: "Enter your Minecraft username so we know who to give your items to."; display: block; margin-top: 8px; color: var(--color-text-secondary); font-family: Arial, sans-serif; font-size: 15px; font-weight: 400; line-height: 1.5; }
.basket-popup-content form:has(input[name="ign"]) { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.basket-popup-content input[name="ign"] { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #69316f; border-radius: 8px; color: #fff; background: #100d13; font-size: 16px; }
.basket-popup-content input[name="ign"]:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.basket-popup-content form:has(input[name="ign"]) .btn-primary { width: 100%; min-height: 48px; justify-content: center; text-align: center; }

/* ---- Phone tweaks ---- */
@media (max-width: 640px) {
  .pt-name { font-size: 13px; }
  .rc-table { min-width: 680px; }
  .rc-table tbody th, .rc-table thead td { min-width: 118px; width: 118px; }
  #rc-table-title::after { content: "Swipe sideways to see every rank"; display: block; margin-top: 4px; color: var(--color-text-secondary); font-family: Arial, sans-serif; font-size: 13px; font-weight: 400; }
}

/* ---- Sale banner (Appearance -> Sale banner): big block at the top of the page ---- */
.fv-sale { --sale-a: #ff2a52; --sale-b: #c80a31; --sale-edge: #7a0a22; --sale-ink: #fff; box-sizing: border-box; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; width: min(calc(100% - 32px), var(--content-inner-width)); min-height: 150px; margin: 0 auto 30px; padding: 26px 26px 30px; color: var(--sale-ink); text-align: center; }
body:not(.page-index) .fv-sale { margin-top: 26px; }
.fv-sale::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--fv-notch); background: linear-gradient(90deg, color-mix(in srgb, var(--sale-a) 88%, transparent), color-mix(in srgb, var(--sale-b) 92%, transparent)), var(--sale-image, none) center 40% / cover; box-shadow: inset 0 3px 0 #ffffff40, inset 0 -5px 0 var(--sale-edge); }
.fv-sale::after { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--fv-notch); transform: translateY(6px); background: #13051a; }
.fv-sale--gold { --sale-a: #ffc93a; --sale-b: #e98f0c; --sale-edge: #8a4d00; --sale-ink: #2a1400; }
.fv-sale--purple { --sale-a: #b347d1; --sale-b: #6d1f86; --sale-edge: #3d0b4d; }
.fv-sale--custom { --sale-a: var(--color-sale-banner-bg, #ff2a52); --sale-b: var(--color-sale-banner-bg, #c80a31); --sale-edge: #00000066; --sale-ink: var(--color-sale-banner-text, #fff); }
.fv-sale-text { max-width: 900px; margin: 0; font-family: "Rubik", Arial, sans-serif; font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 4px 0 var(--sale-edge), 0 8px 18px #0006; }
.fv-sale--gold .fv-sale-text { text-shadow: 0 3px 0 #ffffff66; }
.fv-sale-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fv-sale-actions:empty { display: none; }
.fv-sale-btn, .fv-sale-timer { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px 3px; clip-path: var(--fv-notch); font-family: "Rubik", Arial, sans-serif; font-size: 16px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: transform .15s ease, filter .15s ease; }
.fv-sale-btn { color: #fff; background: linear-gradient(180deg, #7fe34f, #4cbf36); box-shadow: inset 0 2px 0 #ffffff55, inset 0 -4px 0 #2e8a1f; text-shadow: 0 2px 0 #2e8a1f; }
.fv-sale-btn::after { content: ""; flex: none; width: 1em; height: 1em; margin-left: .45em; background: currentColor; -webkit-mask: var(--fv-arrow) center / contain no-repeat; mask: var(--fv-arrow) center / contain no-repeat; transition: transform .15s ease; }
.fv-sale-btn:hover::after { transform: translateX(3px); }
.fv-sale-timer { color: var(--sale-ink); background: #00000040; box-shadow: inset 0 2px 0 #ffffff26, inset 0 -4px 0 #00000059; font-variant-numeric: tabular-nums; }
.fv-sale--gold .fv-sale-timer { background: #00000024; }
.fv-sale-timer[hidden] { display: none; }
a.fv-sale-btn:hover, a.fv-sale-timer:hover { color: inherit; transform: translateY(-2px); filter: brightness(1.08); }
a.fv-sale-btn:hover { color: #fff; }
.page-index:has(.fv-sale) #main-content { padding-top: 110px; }
@media (max-width: 640px) {
  .fv-sale { min-height: 0; padding: 18px 14px 20px; gap: 12px; }
  .fv-sale-text { font-size: 22px; }
  .fv-sale-actions { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .fv-sale-btn, .fv-sale-timer { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 0 8px 3px; font-size: 13px; letter-spacing: .03em; white-space: normal; text-align: center; }
  .page-index:has(.fv-sale) #main-content { padding-top: 70px; }
}

/* ---- Arrow icon (used by links and the sale button) ---- */
:root { --fv-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h10.5M8 3.5 12.5 8 8 12.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E"); }

/* ---- Patrons page: personal progress bar + suggestions ---- */
.pt-progress h2 { margin-bottom: 6px; }
.pt-bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 0 8px; color: var(--color-text-secondary); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pt-bar-head strong { color: #fff; font-family: "Rubik", Arial, sans-serif; font-size: 16px; letter-spacing: 0; }
.pt-bar { position: relative; height: 28px; padding: 4px; clip-path: var(--fv-notch); background: #13051a; }
.pt-bar[hidden], .pt-bar-head[hidden], .pt-sugg-wrap[hidden] { display: none; }
.pt-bar-fill { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #cc234c, #ff4f71); box-shadow: inset 0 3px 0 #ffffff45, inset 0 -3px 0 #00000045; transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.pt-bar::after { content: ""; position: absolute; inset: 4px; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 3px), #13051a calc(10% - 3px) 10%); }
.pt-progress.is-patron .pt-bar-fill { background: linear-gradient(90deg, #ffc93a, #e98f0c); }
.pt-sugg-wrap h3 { margin: 24px 0 12px; font-family: "Rubik", Arial, sans-serif; font-size: 18px; font-weight: 800; }
.pt-sugg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pt-sugg { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-top: 3px solid var(--color-primary); background: #00000033; color: #fff; text-decoration: none; transition: transform .15s ease; }
.pt-sugg:hover { color: #fff; transform: translateY(-3px); }
.pt-sugg img { flex: none; width: 54px; height: 54px; object-fit: contain; }
.pt-sugg-body { display: grid; gap: 2px; min-width: 0; }
.pt-sugg-name { font-family: "Rubik", Arial, sans-serif; font-size: 15px; font-weight: 800; }
.pt-sugg-price { color: var(--color-text-secondary); font-size: 14px; font-weight: 700; }
.pt-sugg-note { color: #5fe07a; font-size: 13px; font-weight: 800; }
.pt-login { display: inline-flex; margin-top: 16px; }
@media (max-width: 640px) {
  .pt-sugg-grid { grid-template-columns: 1fr; }
}

/* ---- Speed: no page-fade animation and no live blur effects (both are heavy on phones) ---- */
@view-transition { navigation: none; }
*, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.popup { background: #0b0210f0; }
.store-product-full .actions { background-color: #2d1233f5; }
