.is-pillager-plus{--pink:#a64739;--night:#15171a;--muted:#c9c2b8}
.is-pillager-plus body{background:#15171a}
.is-pillager-plus :is(.hero__shade,.page-shade){background:linear-gradient(180deg,#20171970,#17191ad9)}
.is-pillager-plus :is(h1,h2) em,.is-pillager-plus .eyebrow,.is-pillager-plus .rules-label{color:#e1b18a}
.is-pillager-plus :is(.primary-button,.rules-button-primary,.submit-button){background:#89382d;color:#fff4df;border-color:#bb7b59;box-shadow:3px 3px 0 #271916}
.is-pillager-plus :is(.primary-button,.rules-button-primary,.submit-button):hover{background:#a64a39}
.is-pillager-plus :is(.rule-card,.rules-finish,.application-form,.custom-mod-card){background:#222326ee;border-color:#ac78584d}
.is-pillager-plus .theme-trigger{background:#252325;color:#f2d4ae;border-color:#997254}
.is-pillager-plus .theme-panel{background:#201e21;border-color:#9a6d50}
.is-pillager-plus .theme-card{border-color:#92705b}
.is-pillager-plus .theme-card[aria-pressed=true]{outline-color:#e7ac72}
.is-pillager-plus .site-footer{border-top:2px solid #9b573a;background:linear-gradient(#292126,#171719)}
.pillager-stage{pointer-events:none;position:absolute;inset:0;overflow:hidden}
.pillager-stage [data-pillager-slot]:empty{display:none}
.theme-card .pillager-theme-preview{display:grid;place-content:center;gap:12px;width:100%;aspect-ratio:1.32;background:linear-gradient(145deg,#363431,#15171c 65%);color:#e6be92;text-align:center;font:700 19px/1.3 'Minecraft',sans-serif;border-bottom:3px solid #9a4839}
.pillager-theme-preview small{color:#cec3b7;font:16px/1.4 'Barlow Condensed',sans-serif}
.achievement-toast.is-pillager-achievement{border-color:#d09b6b;background:#272125}
.achievement-toast.is-pillager-achievement .achievement-icon{color:#ecc090;font:700 20px 'Minecraft',sans-serif}
@media(max-width:650px){.theme-card .pillager-theme-preview{width:120px;height:90px;font-size:12px;gap:6px}.pillager-theme-preview small{font-size:12px}}

.theme-panel{max-height:calc(100dvh - 140px);overflow-y:auto}
.theme-card.is-locked .pillager-theme-preview{filter:grayscale(.7);opacity:.65}

.theme-picker .theme-panel{width:min(960px,calc(100vw - 32px))}
.theme-picker .theme-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){.theme-picker .theme-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.theme-picker .theme-cards{grid-template-columns:1fr}}

/* The rules are captured only during the takeover, not in the saved theme. */
a[data-pillager-locked="rules"]{position:relative;isolation:isolate;cursor:not-allowed}
a[data-pillager-locked="rules"]::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background:url("assets/pillager/iron_bars.png") center center / 96px 96px repeat;image-rendering:pixelated;filter:drop-shadow(3px 4px 2px #000c)}
a[data-pillager-locked="rules"] .feature-widget__content{opacity:.8}
a[data-pillager-locked="rules"]:hover{transform:none}

/* The actor's feet follow this document-space footer strip. Only projectiles
   use the transparent viewport canvas, which never intercepts pointer input. */
.site-footer.has-pillager-patrol{padding-bottom:0;row-gap:12px}
.pillager-patrol-ground{grid-column:1/-1;position:relative;height:350px;min-width:0;pointer-events:none}
.pillager-footer{position:relative;background:linear-gradient(#292126,#171719);border-top:2px solid #9b573a}
.pillager-patrol-canvas{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:70;image-rendering:pixelated}
.pillager-patrol-canvas[hidden]{display:none}
@media(max-width:650px){.pillager-patrol-ground{height:260px}}

.ravager-virtual-cursor,.ravager-virtual-cursor *{cursor:none!important}
html:not(.ravager-stunned) .ravager-stun-cursor small,html:not(.ravager-stunned) .ravager-stun-stars{display:none}
.ravager-stun-cursor{position:fixed;z-index:190;pointer-events:none;width:20px;height:26px;filter:drop-shadow(0 2px 2px #000)}
.ravager-stun-cursor[hidden]{display:none}
.ravager-stun-cursor svg{width:20px;height:26px;fill:#fff2c4;stroke:#211b18;stroke-width:2;shape-rendering:crispEdges}
.ravager-stun-cursor small{position:absolute;top:35px;left:9px;transform:translateX(-50%);font:9px/1.2 'Minecraft',monospace;color:#ffdc83;white-space:nowrap}
.ravager-stun-stars{position:absolute;inset:-15px;animation:ravager-dizzy 1s linear infinite}
.ravager-stun-stars i{position:absolute;width:6px;height:6px;background:#ffe296;box-shadow:0 0 8px #ffd173aa}
.ravager-stun-stars i:nth-child(1){top:0;left:50%}
.ravager-stun-stars i:nth-child(2){bottom:8px;left:0}
.ravager-stun-stars i:nth-child(3){bottom:8px;right:0}
@keyframes ravager-dizzy{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ravager-stun-stars{animation:none}}

.pillager-cursor-health{position:fixed;display:flex;gap:0;transform:translate(-50%,-100%);pointer-events:none;z-index:180;filter:drop-shadow(0 2px 1px #0009);width:180px;height:18px}
.pillager-cursor-health[hidden]{display:none}
.pillager-heart{position:relative;width:18px;height:18px;flex:none;background:url('assets/pillager/heart-container.png') center/100% 100%;image-rendering:pixelated}
.pillager-heart img{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}
.pillager-heart img[hidden]{display:none}
.pillager-heart-lost{opacity:0}
.pillager-cursor-health.is-hit{animation:pillager-health-hit .32s steps(2,end)}
.is-hit .pillager-heart-lost{animation:pillager-heart-lost .7s steps(5,end) forwards}
.pillager-combat-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes pillager-health-hit{0%,50%{margin-left:-3px}25%,75%{margin-left:3px}100%{margin-left:0}}
@keyframes pillager-heart-lost{0%,25%{opacity:1;transform:translateY(0)}45%{opacity:0}60%{opacity:1}100%{opacity:0;transform:translateY(-7px)}}
@media(prefers-reduced-motion:reduce){.pillager-cursor-health.is-hit,.is-hit .pillager-heart-lost{animation:none}}

/* Minecraft player damage and automatic respawn feedback. */
.cursor-hurt-flash{position:fixed;inset:0;z-index:210;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,transparent 32%,#820d0d66 68%,#b20e0ed9 100%)}
.cursor-hit-particles{position:fixed;inset:0;width:100%;height:100%;z-index:231;pointer-events:none;image-rendering:pixelated}
.cursor-death-screen{position:fixed;inset:0;z-index:230;display:flex;align-items:flex-start;justify-content:center;overflow:auto;pointer-events:auto;background:linear-gradient(#410000ed,#843434ed);color:white;text-align:center;font-family:'Minecraft',monospace;cursor:auto}
.cursor-death-screen[hidden]{display:none}
.cursor-death-screen.is-visible{opacity:1;animation:none}
.cursor-death-content{width:min(480px,calc(100% - 40px));padding:24vh 0 36px}
.cursor-death-screen h2{margin:0 0 12px;font-family:inherit;font-weight:400;font-size:clamp(32px,4.2vw,46px);line-height:1.15;letter-spacing:0;text-transform:none;text-shadow:3px 3px 0 #3c1717}
.cursor-death-screen p{margin:0 0 8px;font:20px/1.25 'Minecraft',monospace;color:#fff;text-shadow:2px 2px 0 #401c1c}
.cursor-death-score span{color:#ffff55}
.cursor-death-actions{display:grid;gap:8px;margin-top:44px}
.cursor-death-actions button{position:relative;display:block;width:100%;height:44px;margin:0;padding:0 44px;border:2px solid #080808;border-radius:0;box-shadow:inset 2px 2px #aaa,inset -2px -2px #414141;background-color:#777;background-image:repeating-linear-gradient(0deg,#ffffff04 0 2px,#00000004 2px 4px),repeating-linear-gradient(90deg,transparent 0 3px,#ffffff04 3px 6px);color:white;font:20px/1 'Minecraft',monospace;text-shadow:2px 2px #353535;cursor:pointer;transition:none;transform:none}
.cursor-death-actions button:hover:not(:disabled),.cursor-death-actions button:focus-visible{background-color:#8585a3;color:#ffffa0;outline:2px solid white;outline-offset:-2px}
.cursor-death-actions button:active:not(:disabled){box-shadow:inset 2px 2px #414141,inset -2px -2px #aaa}
.cursor-death-actions button:disabled{color:#aaa;cursor:default}
.cursor-death-actions kbd{position:absolute;right:14px;top:50%;transform:translateY(-50%);font:14px 'Minecraft',monospace;color:inherit;opacity:.8}
@media(max-height:500px){.cursor-death-content{padding-top:16vh}.cursor-death-actions{margin-top:28px}}

/* The collection uses the same ominous banner as the outpost event. */
.theme-card .pillager-theme-preview{position:relative;display:grid;place-content:initial;place-items:center;gap:0;background:radial-gradient(ellipse at 50% 35%,#59483b,#211d21 75%)}
.pillager-theme-preview::before{content:"";position:absolute;left:27%;right:27%;top:9%;height:5%;background:#66513c;box-shadow:0 3px #241b17}
.pillager-theme-preview .theme-outpost-banner{display:block;height:78%;width:auto;max-width:70%;aspect-ratio:1/2;image-rendering:pixelated;filter:drop-shadow(4px 5px 0 #0005)}
.achievement-outpost-banner{display:block;width:24px;height:48px;image-rendering:pixelated}

/* The collection shows the actual title model with the same theme material. */
.theme-card .pillager-theme-preview{overflow:hidden;isolation:isolate;background:#201e1c}
.pillager-theme-preview::before{inset:0;height:auto;background:linear-gradient(#17161966,#111315cf),url("assets/Schermafbeelding 2026-09-15 121431.png") center/cover;box-shadow:none;filter:grayscale(.85);z-index:-1}
.pillager-theme-preview .theme-title-preview{width:96%;height:100%;aspect-ratio:auto;pointer-events:none}

/* Neutral charcoal surfaces throughout The last stand, including inner pages. */
html.is-pillager-plus{--night:#111111;--violet:#292929;--ink:#f4f2ef;--muted:#c5c3bf;background:#111111}
.is-pillager-plus body,.is-pillager-plus :is(.about-section,.feature-section,.creators-section){background:#111111}
.is-pillager-plus photo-header{--ph-night:#111111}
.is-pillager-plus :is(.hero__shade,.page-shade){background:linear-gradient(180deg,#11111170,#111111e8)}
.is-pillager-plus .page-backdrop{filter:grayscale(1) brightness(.55)}
.is-pillager-plus .lore-page{background:linear-gradient(90deg,#111111f5,#111111eb),var(--page-art) center/cover fixed}
.is-pillager-plus :is(.site-footer,.pillager-footer){background:linear-gradient(#1c1c1c,#111111)}
.is-pillager-plus :is(.gallery-viewport,.feature-widget,.creator-card,.custom-mod-card,.application-form,.rule-card,.rules-finish,.lore-card,.placeholder-card,.faq-item,.faq-help){background:#1b1b1b;box-shadow:4px 4px 0 #08080899}
.is-pillager-plus .feature-widget__shade{background:linear-gradient(0deg,#111111f2,#11111114 75%)}
.is-pillager-plus .gallery-slide::after{background:linear-gradient(transparent,#111111b3)}
.is-pillager-plus .gallery-control{background:#181818e6}
.is-pillager-plus :is(h1,h2){text-shadow:4px 5px 0 #060606cc}
.is-pillager-plus :is(.theme-panel,.theme-card,.rules-dialog,.pillager-clause,.model-controls){background:#1b1b1b}
.is-pillager-plus .theme-card:hover{background:#262626}
.is-pillager-plus :is(.theme-close,.theme-eyebrow,.theme-policy,.theme-unlock-help,.theme-storage-note,.theme-card small){color:#c9c5bf}
.is-pillager-plus :is(.theme-trigger,.rules-button,.model-controls button,.mod-edit-actions button){background:#252525;color:#eee9e2;border-color:#70675e}
.is-pillager-plus :is(.theme-trigger:hover,.theme-trigger[aria-expanded=true],.rules-button:hover,.model-controls button:hover){background:#343434;border-color:#c7ab8d}
.is-pillager-plus :is(input,textarea,select,select option){background:#202020;color:#f4f2ef}
.is-pillager-plus :is(input,textarea,select):focus{background:#292929;border-color:#c7ab8d}
.is-pillager-plus :is(bb-model-viewer,.custom-mod-card .model-empty,.creator-avatar){background:radial-gradient(ellipse at 50% 35%,#333333,#141414 75%);color:#ded8cf}
.is-pillager-plus :is(.feature-widget__content small,.footer-links a,.hero__footer a,.server-address,.copy-feedback){color:#d6c9b9}
.is-pillager-plus :is(.feature-widget:hover,.public-mod:hover){border-color:#c7ab8d}
.is-pillager-plus .creator-socials a:hover{background:#ffffff12;border-color:#c7ab8d}

/* Reserve the full outpost canvas height plus clearance below the footer copy.
   raid-outposts.js uses clamp(440px, footerWidth * .75, 1000px) * 1.15.
   Using viewport width here also safely covers narrower footer containers. */
footer.has-raid-outposts .pillager-patrol-ground{height:calc(clamp(506px,86.25vw,1150px) + 32px)}

html.is-pillager-plus{--lore-year-accent:#e2b488}
