/* Parole: rules for the rebuilt home and category markup, loaded after parole.css */

.main-plain { padding-top: 40px; }
.band-kicker { margin-bottom: 8px; font-size: 12px; letter-spacing: var(--fp); text-transform: uppercase; color: var(--accent-hi); text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.6); }
.band-kicker a { color: inherit; text-decoration: none; }
.band-kicker a:hover { color: #fff; }
.hero-card .rich { margin-top: 10px; font-size: 17px; color: #cfcbc1; }
.hero-card .rich p + p { margin-top: 8px; }
.cats, .bonus-tiers { list-style: none; margin: 0; padding: 0; }
.cat-blurb:empty { display: none; }
button.bonus-tier { font: inherit; color: var(--text); cursor: pointer; transition: var(--lift), border-color 180ms; }
button.bonus-tier:is(:hover, :focus-visible) { border-color: var(--text); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--btn-drop); }
.steps h3 { text-transform: none; }
.bundle-head h2 .accent { color: var(--accent-text); }
.bonus-tier { position: relative; }
.bonus-tier .free { font-family: var(--pixel); font-size: 13px; color: var(--accent-text); }
.bonus-tier .pay .pct { color: var(--accent-text); }
.bonus-tier .ribbon { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 2px 8px; font-family: var(--pixel); font-size: 10px; line-height: 1.4; letter-spacing: var(--fp); text-transform: uppercase; white-space: nowrap; color: var(--accent-ink); background: var(--accent-fill); }
.bonus-tier.best { padding-top: 18px; }

/* Contrast (WCAG AA, 4.5:1): fills carry white text and text sits on dark panels, so each gets its own shade of the accent */
:root {
    --faint: #a09d95;
    --accent-fill: color-mix(in srgb, var(--accent) 78%, #000);
    --accent-text: color-mix(in srgb, var(--accent) 70%, #fff);
    --accent-ink: #fff;
}
.skip, .cart-count, .badge-sale, .modal-thumb .product-label, .modal-nav-item .nav-icon { background: var(--accent-fill); }
.btn-primary, .chip.is-active, .chip.is-active:hover { background: var(--accent-fill); border-color: var(--accent-fill); }
.bg-primary, .hover\:bg-primary:hover { background: var(--accent-fill) !important; }
.text-primary, .hover\:text-primary:hover { color: var(--accent-text) !important; }
a, .rich a, .brand:hover, .nav-link.is-active, .rung-name button:hover, .bundle-kicker, .step-n, .cat-art > i, .fs-item:hover, .fs-item:hover .hint { color: var(--accent-text); }

/* Product art: one look for painted icons (.png) and in-game scenes (.gif). Both sit on the same dark backdrop with an
   accent glow; scenes are graded and fade out into it, icons float with a glow and shadow. */
:root { --art-glow: color-mix(in srgb, var(--accent) 24%, transparent); }
.card-art, .cat-art, .modal-thumb, .rung-icon { background: radial-gradient(circle at 50% 46%, var(--art-glow) 0%, transparent 58%), radial-gradient(circle at 50% 42%, #3a3e46 0%, var(--bg-sunk) 78%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.card-art img[src$=".gif"], .cat-art img[src$=".gif"], .modal-thumb img[src$=".gif"] { -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); filter: saturate(0.7) contrast(1.08) brightness(0.85); }
.card-art img:not([src$=".gif"]), .cat-art img:not([src$=".gif"]), .modal-thumb img:not([src$=".gif"]), .rung-icon img { filter: drop-shadow(0 0 16px var(--art-glow)) drop-shadow(0 10px 12px rgba(0, 0, 0, 0.5)); }
/* The parole.rocks art (website/store-art) is a finished square tile with its own backdrop: full bleed, no filters.
   The box-open icon under it only shows when neither the art nor the PayNow image loads. */
.card-art img[src^="https://parole.rocks/"], .cat-art img[src^="https://parole.rocks/"], .rung-icon img[src^="https://parole.rocks/"], .product-img[src^="https://parole.rocks/"] { filter: none; -webkit-mask-image: none; mask-image: none; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.card-art img.art { z-index: 0; }
.product-img[src^="https://parole.rocks/"] { width: 100%; max-width: 420px; aspect-ratio: 1; border: 2px solid var(--line-soft); }

/* Home hero: the map screenshots crossfade with a slow push-in; one still frame when motion is reduced */
.hero-slides { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; opacity: 0; animation: hero-slide 40s linear infinite; animation-delay: calc(var(--i) * 8s - 1s); }
.hero-slides img:first-child { opacity: 1; }
@keyframes hero-slide {
    0% { opacity: 0; transform: scale(1.08); }
    3%, 20% { opacity: 1; }
    23% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slides img { animation: none; }
    .hero-slides img:not(:first-child) { display: none; }
}

/* Deals: green is the saving colour everywhere (ribbons, "You save", Save % chips). Dark ink on the green fill and
   green text on the dark panels, both above 4.5:1. */
:root { --deal: #5ad878; --deal-ink: #06240f; --deal-glow: rgba(90, 216, 120, 0.28); }
.deals .section-head h2 .accent { color: var(--deal); }
.deal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.deal-hit { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; font: inherit; color: var(--text); cursor: pointer; background: var(--panel); border: 2px solid var(--deal); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 28px var(--deal-glow); transition: var(--lift), box-shadow 180ms; }
.deal-hit:is(:hover, :focus-visible) { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--btn-drop), 0 0 36px var(--deal-glow); }
.deal-art { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-bottom: 2px solid var(--deal); }
.deal-art img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform 300ms; }
.deal-hit:is(:hover, :focus-visible) .deal-art img { transform: scale(1.04); }
.deal-ribbon { position: absolute; top: 14px; right: -38px; z-index: 1; width: 150px; padding: 6px 0 5px; transform: rotate(35deg); text-align: center; font-family: var(--pixel); font-size: 18px; line-height: 1; color: var(--deal-ink); background: var(--deal); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); }
.deal-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.deal-name { font-family: var(--pixel); font-size: 20px; line-height: 1.2; color: #fff; }
.deal-blurb { color: var(--muted); font-size: 14px; line-height: 1.45; }
.deal-price { margin-top: 4px; font-family: var(--pixel); font-size: 26px; line-height: 1; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.4); }
.deal-price s { margin-right: 8px; font-size: 15px; color: var(--faint); text-shadow: none; }
.deal-save, .card-save, .rung-save { font-family: var(--pixel); font-size: 14px; line-height: 1.3; color: var(--deal); }
.deal-save i { margin-right: 2px; }

/* deal cards on category pages and the savings under row prices */
.card.is-deal .card-hit { border-color: var(--deal); box-shadow: 0 0 22px var(--deal-glow); }
.badge-deal { top: 10px; left: 10px; padding: 5px 9px 4px; font-size: 15px; background: var(--deal); color: var(--deal-ink); box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45); }
.card-price s { color: var(--faint); }
.rung-price { display: grid; justify-items: end; gap: 4px; }
.rung-save { display: grid; justify-items: end; text-align: right; }
.rung-monthly { color: var(--faint); font-size: 12px; }
.rung-label-deal { background: var(--deal); color: var(--deal-ink); }
@media (max-width: 760px) { .rung-price, .rung-save { justify-items: start; text-align: left; } }

/* Parole+ row on the home page: gold like the in-game [PLUS] tag, label chips (Most popular, Best value) and the
   billing period after the price. Dark ink on the gold fill and gold text on the dark panels, both above 4.5:1. */
.plus { --plus: #ffc857; --art-glow: color-mix(in srgb, var(--plus) 26%, transparent); }
.plus .section-head h2 .accent { color: var(--plus); }
.rung-label { display: inline-block; margin-left: 10px; padding: 2px 8px; vertical-align: middle; font-family: var(--pixel); font-size: 10px; line-height: 1.4; letter-spacing: var(--fp); text-transform: uppercase; white-space: nowrap; color: #1a1405; background: var(--plus, var(--accent-text)); }
.price .per { margin-left: 4px; font-size: 12px; color: var(--faint); text-shadow: none; }

/* Currency picker in the header: a native select dressed as a button, so keyboards and screen readers get a real listbox.
   The select fills the whole button and sits above the .btn hover strip (::after), which would otherwise swallow the click. */
.currency { min-height: 44px; padding: 0; }
.currency i { position: absolute; left: 12px; z-index: 2; pointer-events: none; }
.currency:focus-within { background: var(--text); border-color: var(--text); color: var(--bg); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--btn-drop); }
.currency select { position: relative; z-index: 1; align-self: stretch; appearance: none; -webkit-appearance: none; margin: 0; padding: 0 12px 0 34px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; outline: none; }
.currency option { background: var(--bg); color: var(--text); }
@media (max-width: 760px) { .currency i { display: none; } .currency select { padding: 0 10px; } }
