.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: #ff6600; --color-primary-hover: #ff7a21; --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: #920804; --fv-topbar: #950904; --color-bg: #920804; --color-brighter-bg: #ac1700; --color-text-secondary: #efc3a4; --fv-border: #ff2200; }
body { font-family: Arial, sans-serif; background: #550a07; }
.site { gap: 0; background: linear-gradient(180deg, #950904 0%, var(--fv-page) 48%, #570a07 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 #ff6804; border-radius: 7px; background: #950904; }
.currency-pill, .patrons-link { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 15px; border: 1px solid #ff6804; 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: #d9c4af; 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 #ff7010; border-radius: 9px; background: #950904; 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: #ff2200; }
.currency-menu li.active a { background: #ff7519; }
.patrons-link { background: transparent; border-color: #ff6804; }
.patrons-link::before { content: "♛"; margin-right: 7px; }
.site-header-inner .log-in { border: 1px solid #ff6804; background: #950904; }
.site-header-inner .open-basket { --color-primary: #ff6600; --color-primary-hover: #ff7a21; 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 #ff8533; border-bottom: 5px solid #e21e00; 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 #950904, 0 8px 15px #0009; }
.navigation-horizontal { margin: 0 auto; padding: 8px var(--content-padding); background: #950904; }
.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: #fa2100; background: linear-gradient(145deg, #b41800, #950904); box-shadow: none; }
.site-footer { margin-top: auto; padding: 28px 0; border-top: 1px solid var(--fv-border); background: #950904; border-color: #c21a00; }
.popup { background: #260403e8; 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 #ff2200; border-radius: 14px; background: linear-gradient(150deg, #920804, #580a07) !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: #eec09f; 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 #fc2200; 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 #aa1700; }
.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 #aa1700; }
  .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: #ff8533; 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: #ff8f34; }
.site-home-categories .category-2 { --accent: #22c6f0; }
.site-home-categories .category-3 { --accent: #ff8533; }
.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: #410705; 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, #bc1900, #950904);
  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, #bc1900, #950904); }

.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: #ff913d; 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: #ff913d; 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, #bc1900, #950904); 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: #410705; }
.store-products-images .store-product::before { background: radial-gradient(circle at 50% 30%, #cc234c2e, transparent 55%), linear-gradient(180deg, #bc1900, #950904); }
.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 #c21a00; transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #c21a00; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #c21a00; }
.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 #c21a00; }
.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: #950904; border-bottom: 1px solid #aa1700; }
  .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, #b71800, #950904); box-shadow: inset 0 3px 0 var(--accent), inset 0 -3px 0 #00000040; }
.store-products-images .store-product::before { background: linear-gradient(180deg, #b71800, #950904); }
.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(#550a07a6, #550a07a6), 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, #b71800, #950904); 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: #410705; }
.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: #aa1700; min-width: 150px; }
  .rc-table tbody tr:nth-child(even) th { background: #950904; }
}
@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 #fc2200; 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: #ff7f2a; --sale-b: #fb2100; --sale-edge: #ad1700; --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: #410705; }
.fv-sale--gold { --sale-a: #ffc93a; --sale-b: #e98f0c; --sale-edge: #8a4d00; --sale-ink: #2a1400; }
.fv-sale--purple { --sale-a: #ff8119; --sale-b: #ff2200; --sale-edge: #b41800; }
.fv-sale--custom { --sale-a: var(--color-sale-banner-bg, #ff7f2a); --sale-b: var(--color-sale-banner-bg, #fb2100); --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: #410705; }
.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, #ff6600, #ff8533); 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), #410705 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: #2e0504f0; }
.store-product-full .actions { background-color: #790e0af5; }

/* ---- Homepage: "Upgrade your rank" box (logged-in players with a store rank) ---- */
.fv-up { position: relative; isolation: isolate; grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; padding: 18px 26px 20px; color: #fff; text-decoration: none; }
.fv-up[hidden] { display: none; }
.fv-up::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--fv-notch); background: linear-gradient(180deg, #bc1900, #950904); box-shadow: inset 0 3px 0 #5fe07a, inset 0 -3px 0 #00000040; }
.fv-up::after { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--fv-notch); transform: translateY(6px); background: #410705; }
.fv-up:hover { color: #fff; }
.fv-up-art { flex: none; width: 64px; height: 64px; object-fit: contain; transition: transform .2s ease; }
.fv-up:hover .fv-up-art { transform: rotate(-6deg) scale(1.06); }
.fv-up-body { display: grid; gap: 4px; min-width: 0; flex: 1; }
.fv-up-eyebrow { color: #5fe07a; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fv-up-title { font-family: "Rubik", Arial, sans-serif; font-size: 22px; font-weight: 800; line-height: 1.15; }
.fv-up-title b { color: #5fe07a; }
.fv-up-note { color: #ff913d; font-size: 14px; font-weight: 600; }
.fv-up-btn { flex: none; display: inline-flex; align-items: 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; white-space: nowrap; 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; transition: transform .15s ease, filter .15s ease; }
.fv-up-btn::after { content: ""; 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-up:hover .fv-up-btn { transform: translateY(-2px); filter: brightness(1.08); }
.fv-up:hover .fv-up-btn::after { transform: translateX(3px); }
@media (max-width: 640px) {
  .fv-up { flex-wrap: wrap; gap: 12px 14px; padding: 16px 16px 18px; }
  .fv-up-art { width: 52px; height: 52px; }
  .fv-up-title { font-size: 19px; }
  .fv-up-btn { flex: 1 1 100%; justify-content: center; min-height: 44px; font-size: 15px; }
}
/* Rank Upgrades page: "Your next step" tag */
.store-product.is-next-upgrade { position: relative; outline: 3px solid #5fe07a; outline-offset: -3px; }
.fv-next-tag { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 4px 10px 5px; clip-path: var(--fv-notch); background: linear-gradient(180deg, #7fe34f, #4cbf36); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 0 #2e8a1f; pointer-events: none; }

/* ---- Compare Ranks: smooth sideways scrolling on phones (header lines no longer slide over the fixed column) ---- */
.rc-table { border-collapse: separate; border-spacing: 0; }
.rc-table thead th { border-bottom: 0; box-shadow: inset 0 -3px 0 var(--rc); }
.rc-table thead td { border-bottom: 3px solid transparent; }
@media (max-width: 960px) {
  .rc-scroll { margin: 0; padding: 0 0 4px; }
  .rc-table tbody th, .rc-table thead td { z-index: 2; box-shadow: 1px 0 0 #ffffff1f; }
}

/* ---- FAQ page: each question opens and closes ---- */
.faq-list > p:first-child { color: var(--color-text-secondary); }
.faq-item { border-bottom: 1px solid #ffffff14; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px; cursor: pointer; list-style: none; color: #fff; font-family: "Rubik", Arial, sans-serif; font-size: 17px; font-weight: 800; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; color: var(--color-primary); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 4px 16px; color: #ff913d; font-size: 15px; line-height: 1.55; }
.faq-answer > :first-child { margin-top: 0; }
.faq-answer > :last-child { margin-bottom: 0; }

/* ---- Crate contents: Minecraft-style item tooltips on the crate pictures ---- */
.mc-inside { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 38px; margin-top: 8px; border: 1px solid #ffffff2e; background: #00000026; color: #fff; font-family: "Rubik", Arial, sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; clip-path: var(--fv-notch); }
.mc-inside:hover { background: #ffffff14; }
.mc-crate { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.mc-crate img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
.mc-slot { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mc-hl { position: absolute; display: none; overflow: hidden; pointer-events: none; }
.mc-hl img { position: absolute; max-width: none; height: auto; image-rendering: pixelated; filter: url(#mc-hl); }
.mc-slot:hover .mc-hl, .mc-slot:focus-visible .mc-hl { display: block; }
.mc-slot:focus-visible { outline: none; }
/* Same layout as the in-game tooltip at GUI scale 2 (1 Minecraft pixel = 2px): dark edge with cut corners, purple border, 2px gap */
.mc-tip { position: fixed; z-index: 10000; padding: 6px 8px; background: #2b0503f0; color: #fff; font-family: "FV Craft", ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 400; line-height: 20px; white-space: nowrap; pointer-events: none; clip-path: polygon(2px 0, calc(100% - 2px) 0, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px), 0 2px, 2px 2px); }
.mc-tip::before { content: ""; position: absolute; inset: 2px; border: 2px solid; border-image: linear-gradient(180deg, #ff6f0050, #a4190450) 1; pointer-events: none; }
.mc-tip-name { margin-bottom: 4px; }
.mc-tip .mc-b { letter-spacing: 2px; }
.mc-pop { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: #2e0504e6; }
.mc-pop-box { position: relative; width: min(620px, 100%); max-height: 90vh; overflow: auto; padding: 22px; background: #aa1700; border-top: 3px solid var(--color-primary); clip-path: var(--fv-notch); }
.mc-pop-box h3 { margin: 0 0 4px; color: #fff; font-family: "Rubik", Arial, sans-serif; font-size: 22px; font-weight: 800; }
.mc-pop-box p { margin: 0 0 14px; color: #f2cdb3; font-size: 14px; }
.mc-pop-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* Buttons: Minecraft-style blocks, one look everywhere.
   The button itself is the dark pixel outline; the coloured face sits 2px inside it with its own pixel corners,
   a light top edge and a darker bottom edge. The face never touches the outer edge, so no colour shows outside the outline. */
:root {
  --fv-notch-btn: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
  --fv-ring-btn: polygon(evenodd, 0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 2px 6px, 2px calc(100% - 6px), 6px calc(100% - 6px), 6px calc(100% - 2px), calc(100% - 6px) calc(100% - 2px), calc(100% - 6px) calc(100% - 6px), calc(100% - 2px) calc(100% - 6px), calc(100% - 2px) 6px, calc(100% - 6px) 6px, calc(100% - 6px) 2px, 6px 2px, 6px 6px, 2px 6px, 0 4px);
}
.btn-primary, .btn-secondary, .key-amount, .currency-pill, .patrons-link, .mc-inside, .fv-up-btn, .fv-sale-btn { --face: #c21a00; --face-hi: #ff6905; --face-lo: #950904; --face-hover: #ff2200; --text-sh: #4e0906;
  position: relative; isolation: isolate; border: 0; border-radius: 0; clip-path: var(--fv-notch-btn); background: #330301; color: #fff; box-shadow: none; text-shadow: 0 2px 0 var(--text-sh); filter: none; transform: none; padding-bottom: 2px; }
.btn-primary, .key-amount[aria-pressed="true"] { --face: #ff6600; --face-hi: #ff8533; --face-lo: #c21a00; --face-hover: #ff7d12; --text-sh: #c21a00; background: #330301; }
.fv-up-btn, .fv-sale-btn { --face: #5fcf42; --face-hi: #9ced78; --face-lo: #2e8a1f; --face-hover: #6cdb4f; --text-sh: #2e8a1f; background: #330301; }
.btn-primary::after, .btn-secondary::after, .key-amount::after, .currency-pill::after, .patrons-link::after, .mc-inside::after, .fv-up-btn::before, .fv-sale-btn::before { content: ""; position: absolute; inset: 2px; z-index: -1; width: auto; height: auto; margin: 0; background: var(--face); box-shadow: inset 0 2px 0 var(--face-hi), inset 0 -4px 0 var(--face-lo); clip-path: var(--fv-notch-btn); -webkit-mask: none; mask: none; pointer-events: none; }
.btn-primary:hover, .btn-secondary:hover, .key-amount:hover, .currency-pill:hover, .patrons-link:hover, .mc-inside:hover, .fv-up-btn:hover, .fv-sale-btn:hover { background: #330301; box-shadow: none; filter: none; transform: none; }
.btn-primary:hover::after, .btn-secondary:hover::after, .key-amount:hover::after, .currency-pill:hover::after, .patrons-link:hover::after, .mc-inside:hover::after, .fv-up:hover .fv-up-btn::before, .fv-sale-btn:hover::before { background: var(--face-hover); }
.fv-up:hover .fv-up-btn { transform: none; filter: none; }
.btn-primary:active, .btn-secondary:active, .key-amount:active, .currency-pill:active, .patrons-link:active, .mc-inside:active, .fv-up-btn:active, .fv-sale-btn:active { transform: translateY(2px); }
.btn-tertiary, .popup-close { border-radius: 0; clip-path: var(--fv-notch-btn); }
.store-product .actions { padding-bottom: 0; }
.basket-item { border-radius: 0; clip-path: var(--fv-notch); }
.quantity-field { --ring: var(--color-secondary); position: relative; border: 0; border-radius: 0; clip-path: var(--fv-notch-btn); }
.quantity-field::after { content: ""; position: absolute; inset: 0; background: var(--ring); clip-path: var(--fv-ring-btn); pointer-events: none; }
.login-popup-content input[type=text], .login-popup-content input[type=password], .login-popup-content input[type=email], .basket-popup-content input[name="ign"], .widget input[type=text] { border-radius: 0; }
/* Button sizes: buttons of the same kind share one height and text size.
   Header buttons 44px, main buttons 46px, small choice buttons 38px. */
.site-header-inner .currency-pill, .site-header-inner .patrons-link, .site-header-inner .open-basket { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-height: 44px; padding: 0 16px 2px; font-size: 14px; font-weight: 700; line-height: 1; }
.btn-primary:not(.open-basket), .btn-secondary:not(.btn-glyph) { height: 46px; min-height: 46px; font-size: 16px; font-weight: 700; line-height: 44px; }
.fv-up-btn { min-height: 46px; }
.key-amount, .mc-inside { height: 38px; min-height: 38px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700; line-height: 1; }
@media (max-width: 960px) {
  .site-header-inner .patrons-link, .site-header-inner .open-basket { width: 44px; min-width: 44px; padding: 0 0 2px; font-size: 0; }
}
@media (max-width: 370px) {
  .site-header-inner .patrons-link, .site-header-inner .open-basket { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
}
.package-layout .actions .wide, .package-layout .actions .half, .basket-popup-content form:has(input[name="ign"]) .btn-primary { min-height: 46px; }
/* Package page: compact top section. No divider line, smaller picture area,
   and the price + Add to Basket sit inside one dark bar with pixel corners. */
.store-product-full.package-layout { gap: 18px 32px; padding: 28px 32px 32px; }
.package-layout .package-media { min-height: 0; }
.package-layout .package-media .image { max-height: 190px; }
.package-layout .package-info { gap: 14px; }
.package-layout .actions.product-actions { flex-wrap: nowrap; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 20px; background: #530907; clip-path: var(--fv-notch); }
.package-layout .actions .price { margin: 0; }
.package-layout .descr { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 640px) {
  .package-layout .actions.product-actions { flex-wrap: wrap; padding: 10px; }
  .package-layout .actions .price { padding-left: 8px; }
}
/* Login button: same outlined block look as the other header buttons */
.site-header-inner .log-in { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; height: 44px; min-height: 44px; padding: 0 16px 2px; border: 0; border-radius: 0; background: #330301; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; text-shadow: 0 2px 0 #4e0906; clip-path: var(--fv-notch-btn); }
.site-header-inner .log-in::after { content: ""; position: absolute; inset: 2px; z-index: -1; background: #c21a00; box-shadow: inset 0 2px 0 #ff6905, inset 0 -4px 0 #950904; clip-path: var(--fv-notch-btn); pointer-events: none; }
.site-header-inner .log-in:hover { background: #330301; color: #fff; }
.site-header-inner .log-in:hover::after { background: #ff2200; }
.site-header-inner .log-in:active { transform: translateY(2px); }
/* Rank names under "Ranks": plain labels (not buttons). A grey number shows the order, then a small square in the rank colour. */
.category-tiers { gap: 6px 16px; counter-reset: rk; }
.category-tiers li { --rc: #efc3a4; counter-increment: rk; display: inline-flex; align-items: center; gap: 0; padding: 0 0 0 28px; border: 0; background: linear-gradient(var(--rc), var(--rc)) no-repeat 14px 50% / 8px 8px; clip-path: none; box-shadow: none; color: #ff913d; text-shadow: 0 1px 0 #0006; }
.category-tiers li::before { content: counter(rk); flex: none; width: 10px; margin: 0 18px 0 -28px; color: #bb9672; font-size: 12px; font-weight: 700; text-align: right; }
.category-tiers li[data-rank="gold"] { --rc: #e8b021; }
.category-tiers li[data-rank="diamond"] { --rc: #35c6f0; }
.category-tiers li[data-rank="emerald"] { --rc: #34c24a; }
.category-tiers li[data-rank="legend"] { --rc: #f0a020; }
.category-tiers li[data-rank="mythic"] { --rc: #a94be8; }
.category-tiers li[data-rank="ultimate"] { --rc: #ff822e; }
@media (max-width: 640px) {
  .site-header-inner .log-in { padding: 0 12px 2px; }
  .category-tiers { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 18px; }
}
@media (max-width: 370px) {
  .site-header-inner .log-in { height: 40px; min-height: 40px; padding: 0 10px 2px; font-size: 13px; }
}


/* ===== FV CHRISTMAS START (delete this whole block after the season) ===== */
/* Snowy village picture at the top of the home page only (picture file: fv-xmas-bg.jpg) */
.home-hero{--hero-image:var(--fv-xmas-bg)!important;height:560px;
  background-image:linear-gradient(180deg,transparent 40%,var(--fv-page) 100%),linear-gradient(#550a0740,#550a0740),var(--hero-image);
  background-size:cover;background-position:center 62%}
@media (max-width:700px){.home-hero{height:440px;background-position:center 70%}}
/* Compare Ranks: rank chat colour squares and gold buy buttons on hover */
.rank-compare .rc-swatches{display:inline-grid;grid-template-columns:repeat(3,10px);gap:3px;justify-content:center}
.rank-compare .rc-swatches i{width:10px;height:10px;background:var(--rc);display:block;outline:1px solid rgb(0 0 0 / 40%)}
.rank-compare .rc-buy:hover,.rank-compare .rc-buy:focus-visible{background:#F4C542;color:#410705}
/* Welcome block over the snowy picture (home page) */
.fv-welcome{width:min(calc(100% - 32px),1130px);margin:0 auto;padding:44px 0 34px;text-align:center;color:#fff;text-shadow:0 2px 12px rgb(10 4 14 / 85%)}
.fv-welcome-kicker{display:inline-block;margin:0 0 12px;padding:4px 12px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#410705;background:#F4C542;clip-path:var(--fv-notch-btn);text-shadow:none}
.fv-welcome-title{margin:0 0 10px;font-family:Rubik,Arial,sans-serif;font-weight:800;font-size:clamp(26px,3.6vw,42px);line-height:1.05}
.fv-welcome-text{margin:0 auto 16px;max-width:560px;font-size:17px;color:#ff913d}
.fv-welcome-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.fv-welcome-actions .btn-tertiary{background:rgb(20 4 15 / 70%);clip-path:var(--fv-notch-btn)}
.fv-welcome-actions a{min-height:44px;padding:0 22px;display:inline-flex;align-items:center;font-weight:800;text-shadow:none}
@media (max-width:700px){.fv-welcome{padding:28px 0 22px}.fv-welcome-text{font-size:15px}}
/* ===== FV CHRISTMAS END ===== */

/* FV fire theme: readable sale countdown on red */
.countdown, .countdown * { color: #ffd23f !important; text-shadow: 0 2px 0 #5a0500; }

/* FV store-check fixes 28 Nov */
del.discount, .discount { color: rgba(255,226,205,.75) !important; }
.actions.product-actions { background: rgba(70,4,2,.45) !important; }
a.btn-primary[aria-disabled=true], .btn-primary.disabled, .btn-primary[disabled] { background: #8c2410 !important; opacity: .7 !important; cursor: not-allowed; }
ul.currency-menu li.active a, .currency-menu a[aria-current=true] { background: #b83200 !important; color: #fff !important; }
a.btn-tertiary { background-color: rgba(80,10,4,.72) !important; }
.fv-welcome-text { text-shadow: 0 2px 6px rgba(45,4,2,.9) !important; }
a.category-4 .category-frame { box-shadow: inset 0 3px 0 #5ad1ff !important; }
input::placeholder { color: rgba(255,255,255,.5) !important; }
.rc-prefix { background: rgba(35,2,1,.6); padding: 2px 7px; border-radius: 4px; }

.store-product .actions.product-actions, .category-products .actions.product-actions { background: transparent !important; box-shadow: none !important; }

/* FV Christmas section */
.fv-xmas-section { position: relative; margin: 0 0 28px; padding: 18px 18px 22px; background: linear-gradient(180deg, rgba(120,210,255,.18), rgba(120,210,255,.06)); border: 2px solid rgba(190,235,255,.55); clip-path: var(--fv-notch); }
.fv-xmas-section::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: repeating-linear-gradient(90deg, #fff 0 14px, #e8f7ff 14px 28px); opacity: .9; }
.fv-xmas-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px; font-size: 1.45rem; color: #fff; text-shadow: 0 2px 0 #7a0d08; }
.fv-xmas-badge { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; background: #2fb14a; color: #fff; text-shadow: none; clip-path: var(--fv-notch); }
.fv-section-title { margin: 4px 0 14px; font-size: 1.3rem; color: #fff; }
.fv-xmas-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fv-xmas-intro { margin: 0 0 18px; }
.fv-xmas-section { background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)) !important; border-color: rgba(255,255,255,.6) !important; }
.fv-xmas-section .store-products-grid, .fv-xmas-section [class^="store-products-"] { justify-content: start; }
.fv-nav-xmas > a { background: #2fb14a; color: #fff !important; padding-left: 12px; padding-right: 12px; clip-path: var(--fv-notch); }
.fv-nav-xmas > a:hover, .fv-nav-xmas.active > a { background: #3fd15c; }
/* Christmas section v2: closed frame, wide single card, popups */
.fv-xmas-section { clip-path: none !important; border: 2px solid rgba(255,255,255,.55) !important; padding-bottom: 18px !important; }
.fv-xmas-section [class^="store-products-"] > .store-product:only-child, .fv-xmas-page-grid > .store-product:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(140px, 260px) 1fr; gap: 24px; align-items: center; }
.fv-xmas-section [class^="store-products-"] > .store-product:only-child .product-card-content { max-width: 520px; }
@media (max-width: 640px) { .fv-xmas-section [class^="store-products-"] > .store-product:only-child, .fv-xmas-page-grid > .store-product:only-child { grid-template-columns: 110px 1fr; gap: 14px; } }
.fv-pop-body { max-height: 60vh; overflow: auto; text-align: left; }
.fv-crate-group h4 { margin: 14px 0 6px; font-size: 1rem; text-shadow: 0 2px 0 #00000080; }
.fv-crate-group ul { margin: 0; padding-left: 20px; }
.fv-crate-group li { margin: 3px 0; }
.fv-xmas-section [class^="store-products-"] > .store-product:only-child .product-card-content, .fv-xmas-page-grid > .store-product:only-child .product-card-content { display: flex !important; flex-direction: column; align-items: stretch; gap: 10px; grid-column: 2; grid-row: 1; }
.fv-xmas-section .store-product:only-child .image-link { grid-column: 1; grid-row: 1; }
.fv-xmas-section .store-product:only-child .product-card-content > * { margin-top: 0; margin-bottom: 0; }
.fv-xmas-section .store-product:only-child .key-amounts { justify-content: flex-start; }
.fv-xmas-section .store-product:only-child { width: 100% !important; max-width: none !important; justify-self: stretch !important; }
.fv-xmas-page-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; gap: 16px; }
.fv-xmas-section .store-product:only-child { flex: 1 1 100% !important; }

/* 28 Nov: pixel Christmas frame (closed, notched corners like the buttons) */
.fv-xmas-section { border: 0 !important; clip-path: none !important; margin: 4px 4px 32px !important; background: rgba(255,255,255,.08) !important;
  box-shadow: 0 -4px 0 0 #fff, 0 4px 0 0 #fff, -4px 0 0 0 #fff, 4px 0 0 0 #fff, 0 12px 0 0 rgba(0,0,0,.28) !important; }
.fv-xmas-section::before { inset: 0 0 auto 0 !important; height: 8px !important; background: repeating-linear-gradient(90deg, #e8232b 0 12px, #fff 12px 24px) !important; opacity: 1 !important; }
@media (max-width: 600px) {
  .is-featured .category-tiers { display: grid !important; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-auto-columns: max-content; gap: 6px 10px; }
  .is-featured .category-art { width: 92px !important; height: 92px !important; margin: -30px -4px -10px 0 !important; opacity: 1 !important; }
}


/* ===== FV fixes 28 Nov 2026 (draft) ===== */
/* Phone: quantity box stays inside its card in the 2-column grid */
.store-product .quantity-field { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
.store-product .quantity-field input[type=number] { min-width: 0; }
.store-product .actions { min-width: 0; }

/* Basket drawer: long names stop after 2 lines, and the list can scroll past the total */
.basket .basket-item .info { min-width: 0; }
.basket .basket-item .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 18px; line-height: 1.25; }
.basket .basket-items { padding-bottom: 140px; }

/* FROST featured card: picture on top, text below on small phones */
@media (max-width: 480px) {
  .fv-xmas-section [class^="store-products-"] > .store-product:only-child,
  .fv-xmas-page-grid > .store-product:only-child { grid-template-columns: 1fr !important; }
  .fv-xmas-section [class^="store-products-"] > .store-product:only-child .image-link,
  .fv-xmas-page-grid > .store-product:only-child .image-link { grid-column: 1 !important; grid-row: 1 !important; justify-self: center; max-width: 180px; }
  .fv-xmas-section [class^="store-products-"] > .store-product:only-child .product-card-content,
  .fv-xmas-page-grid > .store-product:only-child .product-card-content { grid-column: 1 !important; grid-row: 2 !important; }
}

/* Christmas page: cards centred, no inner heading, loading text only shows if loading is slow */
.fv-xmas-page-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)) !important; justify-content: center !important; }
.fv-xmas-page-grid > .store-product:only-child { grid-column: auto !important; }
.fv-xmas-page { padding-top: 26px !important; }
[data-fv-xmas-loading] { grid-column: 1 / -1; text-align: center; opacity: 0; animation: fv-show-late .2s ease 1.5s forwards; }
@keyframes fv-show-late { to { opacity: .8; } }

/* Christmas menu tab: gold outline instead of a solid green block */
.fv-nav-xmas > a { background: transparent !important; box-shadow: inset 0 0 0 2px #f2c14e; }
.fv-nav-xmas > a:hover, .fv-nav-xmas.active > a { background: rgba(242, 193, 78, .16) !important; }

/* "See perks" / "See what's inside": same size as Add to Basket, outline style */
.mc-inside { height: 46px; min-height: 46px; font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: 700; line-height: 1; background: transparent; text-shadow: none; }
.mc-inside::after { background: transparent !important; box-shadow: inset 0 0 0 2px var(--face) !important; }
.mc-inside:hover::after { background: rgba(255, 255, 255, .08) !important; }

/* Package page: price under the name, Add to Basket right under the price */
.package-layout .actions.product-actions { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; gap: 12px; padding: 14px 16px; }
.package-layout .actions .price { margin: 0; padding-left: 0; }
.package-layout .actions .wide, .package-layout .actions .half, .package-layout .actions .quantity-field, .package-layout .actions .open-basket-cta { flex: none; width: 100%; max-width: 320px; }

/* Footer: everything centred */
.site-footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand { justify-items: center; text-align: center; }
.site-footer-inner .copyright { text-align: center; margin: 0; }

/* Compare Ranks table */
.rank-compare .rc-no { color: rgba(255, 255, 255, .5); }
.rank-compare .rc-swatches { display: inline-flex !important; flex-wrap: nowrap; gap: 3px; }
.rank-compare .rc-swatches i { flex: none; }
.rc-swipe { display: none; margin: 0 0 6px; color: var(--color-text-secondary); font-size: 13px; text-align: right; }
.rc-frost-note { margin: 14px 0 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }
.rc-frost-note strong { color: #bfe9ff; }
@media (max-width: 960px) {
  /* the table already has its own "Swipe sideways" hint, so .rc-swipe stays hidden */
  .rc-table tbody th[scope="row"], .rc-table thead td { position: sticky; left: 0; z-index: 2; background: var(--fv-page, var(--color-bg)); }
}
