/* Shared public-page controls, including narrow mobile screens. */
html{overflow-x:clip}body{min-width:0}main,section,article,figure{min-width:0}img,video,canvas{max-width:100%}a,button{touch-action:manipulation}
[hidden]{display:none!important}
.site-button,.application-close,.compass-menu button,.game-controls button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 18px;border:1px solid #c36cb7;border-radius:12px;background:#381c3a;color:#ffddf6;text-decoration:none;font:600 18px/1.25 'Barlow Condensed',sans-serif;cursor:pointer}
.site-button:focus-visible,button:focus-visible{outline:3px solid #edb4e3;outline-offset:4px}
.site-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:24px;padding:42px clamp(20px,6vw,96px);border-top:1px solid #b2a5bd44;background:#090b16}
.footer-brand{display:flex;align-items:center;gap:18px}.footer-brand rl-brand-logo{width:54px;height:54px}.footer-brand strong,.footer-brand span{display:block}.footer-brand span,.footer-copyright{color:#c3bed2}
.hero-hook{font-size:clamp(18px,2vw,25px);color:var(--muted);text-align:center;margin:18px auto;max-width:34ch}.hero-invite{max-width:48ch;margin:14px auto;font:17px/1.4 'Barlow Condensed',sans-serif;text-align:center;color:var(--muted)}
.hero-world-teaser{max-width:650px;margin:18px auto 0;text-align:center;font-size:18px;line-height:1.5}.hero-world-teaser .site-button{margin-top:10px}.hero-world-teaser p{margin:7px 0}
.application-badge{display:inline-block;max-width:100%;border-radius:20px;padding:7px 12px;font:600 15px/1.3 'Barlow Condensed',sans-serif;background:#24212d;color:#eee;border:1px solid #aaa4}.application-badge[data-status=open]{color:#bbf5cb;background:#173622;border-color:#70ac85}.application-badge[data-status=soon]{color:#ffe7aa;background:#493613;border-color:#a98a46}.application-badge[data-status=closed]{color:#ddd;background:#333;border-color:#777}
.hero__actions{flex-wrap:wrap;gap:16px;align-items:center}.hero__footer{flex-wrap:wrap;gap:12px}.server-state{flex-wrap:wrap;min-width:0}.hero__backdrop{max-width:100%;overflow:hidden}
.application-panel{position:fixed;inset:0 0 0 auto;margin:0;width:min(650px,100%);height:100%;max-height:100dvh;max-width:100vw;padding:0;border:0;border-left:1px solid #9f618c;background:#15101e;color:#f6ecfa;box-shadow:-20px 0 70px #0008;overscroll-behavior:contain;overflow:auto}
.application-panel::backdrop{background:#07050bc9}.application-panel[open]{animation:application-slide .3s ease-out}.application-panel-heading{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;background:#15101ef5;border-bottom:1px solid #a46b9633}.application-panel-heading h2{margin:0;font:24px/1.25 'Minecraft',sans-serif}.application-close{width:44px;padding:0;font:28px/1 sans-serif}.application-panel-body{padding:24px}
.application-panel-open{overflow:hidden}.application-reading{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}.application-availability{line-height:1.5;margin:12px 0 24px;white-space:pre-line}.application-availability button{display:block;margin-top:14px}
[data-application-root] .application-form{display:grid;gap:18px;max-width:100%;padding:0;border:0;background:none}[data-application-root] .form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}[data-application-root] label{display:grid;gap:7px;min-width:0;font:600 18px/1.4 'Barlow Condensed',sans-serif}
[data-application-root] input,[data-application-root] select,[data-application-root] textarea{width:100%;min-width:0;max-width:100%;min-height:44px;padding:12px;color:inherit;background:#ffffff0c;border:1px solid #a77a9d88;border-radius:9px;font:17px/1.4 'Barlow Condensed',sans-serif;color-scheme:dark}[data-application-root] option{background:#211329;color:#fff}[data-application-root] textarea{resize:vertical}[data-application-root] .submit-button{width:100%;min-height:48px;border:1px solid #ed78d9;border-radius:12px;background:#ab198f;color:#fff;font:600 19px/1.3 'Barlow Condensed',sans-serif;cursor:pointer}
.website-field{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}
.is-divine .application-panel,.is-divine .application-panel-heading{background:#fff5df;color:#483c2a}.is-divine [data-application-root] :is(input,textarea,select){background:#fffaf0;color:#493b27;border-color:#b7a178;color-scheme:light}.is-divine [data-application-root] option{background:#fffaf0;color:#493b27}.is-divine .site-button{background:#f4e3ba;color:#514125;border-color:#ac8e4e}.is-divine .site-footer{background:#f1e8cd}.is-divine .footer-brand span,.is-divine .footer-copyright{color:#685941}
.is-pillager-plus .site-button{background:#313436;color:#eee5d2;border-color:#9c8c73}
.lore-story{max-width:980px;margin:auto}.lore-story section{margin:64px 0;scroll-margin-top:110px}.lore-story p,.lore-story li{font:20px/1.65 'Barlow Condensed',sans-serif;max-width:75ch}.lore-story h2,.lore-story h3,.lore-story summary{font-family:'Minecraft',sans-serif;line-height:1.5}.lore-story summary{cursor:pointer;padding:20px;border:1px solid #a4789d66;border-radius:12px}.lore-story details>div{padding:12px 20px}.lore-screenshot{margin:36px 0}.lore-screenshot img{display:block;width:100%;height:clamp(160px,30vw,340px);object-fit:cover;border-radius:12px}.lore-updated,.rules-updated{color:var(--muted);font-size:16px}.lore-story a{text-decoration:none}
.creator-bio{font-size:18px;line-height:1.45}.creator-character{font-size:17px;color:var(--muted)}.creator-socials svg{width:24px;height:24px;fill:currentColor}.creator-featured{margin-top:12px}.creator-collab{margin-top:38px;max-width:680px}.creator-collab p{font-size:20px;line-height:1.5}
.game-controls{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left));z-index:12000;max-width:calc(100vw - 32px)}.game-controls button{font-size:15px;padding:8px 12px;background:#201829e8;color:#fff;box-shadow:0 3px 14px #0004}
.application-panel-open .game-controls{visibility:hidden}.minigames-paused :is(.golem-cage-canvas,.golem-cage-cursor,.pillager-patrol-canvas,.raid-magic,.raid-enemy-health,.ravager-stun-cursor,.mobile-attacks){display:none!important}.minigames-paused .content-corruption-canvas{display:none!important}
.theme-achievement-count,.theme-era-status{font:15px/1.4 'Barlow Condensed',sans-serif}.theme-era-status{display:block;color:inherit;margin-top:7px}
[data-theme-only][hidden]{display:none!important}
.compass-pickup,.burial-spot{display:inline-grid;place-items:center;width:32px;height:32px;padding:4px;border:0;background:none;color:inherit;cursor:pointer;opacity:.58}.compass-pickup:hover,.compass-pickup:focus-visible,.burial-spot:focus-visible{opacity:1;outline:1px solid #b59a6e;border-radius:6px}.compass-pickup svg{width:22px;height:22px}.burial-spot{opacity:.2;font-size:22px}
.lore-compass{position:fixed;bottom:84px;left:18px;z-index:11500}.lore-compass>button{display:grid;place-items:center;width:44px;height:44px;background:#262133ed;border:1px solid #9f8155;border-radius:50%;color:#dac794;cursor:pointer}.lore-compass svg{width:30px;height:30px;overflow:visible}.compass-needle{transform-origin:16px 16px}.compass-menu{position:absolute;bottom:54px;left:0;width:220px;max-width:calc(100vw - 36px);padding:16px;border:1px solid #aa855b;border-radius:12px;background:#20192b;color:#f5e8cd}.compass-menu p{font-size:16px;line-height:1.4}.compass-menu a{display:block;margin-top:12px;color:#f7dfaf;text-decoration:none}.application-panel-open .lore-compass{display:none!important}
.arg-code-form{display:grid;gap:12px;max-width:450px}.arg-code-form input{padding:14px;border-radius:10px;font:inherit}.arg-text{white-space:pre-wrap;line-height:1.7}
@keyframes application-slide{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(max-width:600px){.hero__footer{font-size:12px}.hero__actions{display:flex;justify-content:center;flex-wrap:wrap}.hero-world-teaser{padding-inline:20px}.application-panel-heading,.application-panel-body{padding:18px}.application-panel-heading h2{font-size:19px}[data-application-root] .form-row{grid-template-columns:1fr}.lore-story p,.lore-story li{font-size:18px}.lore-story h2{font-size:23px}.site-footer{align-items:flex-start}.footer-brand{max-width:100%}.footer-brand div{min-width:0}.creator-card{min-width:0}.creator-socials{flex-wrap:wrap}.theme-panel{max-width:calc(100vw - 24px)!important}.gallery-dots{max-width:100%;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.application-panel[open]{animation:none}}

[hidden]{display:none!important}
.minigames-paused .content-corruption-mark{display:none!important}
.minigames-paused :is(.content-infected,.content-infected-captured){filter:none!important;box-shadow:none!important}
.minigames-paused .cursor-death-overlay{display:none!important}
.hidden-story{min-height:65vh;padding-top:8rem}.hidden-story-text{white-space:normal;overflow-wrap:anywhere;line-height:1.8}
.hidden-story label{display:grid;gap:.6rem}.hidden-story input{max-width:100%;padding:.8rem;border-radius:8px}
.creator-collab{max-width:900px;margin:3rem auto;padding:2rem;text-align:center}.creator-collab p{line-height:1.7}
#experience-form textarea{width:100%;max-width:100%;box-sizing:border-box}#experience-form fieldset{min-width:0;margin-bottom:1.5rem}
.not-found{min-height:60vh;padding-top:9rem}

/* Cataclysm Egg Tracker: original 32-frame item and masked Minecraft glint. */
.compass-pickup{background:transparent;border:0;border-radius:0;padding:0;width:32px;height:32px;vertical-align:middle;opacity:.85;box-shadow:none}
.compass-pickup:hover,.compass-pickup:focus-visible{opacity:1;filter:brightness(1.25)}
.compass-pickup img,.lore-compass>button img{display:block;width:100%;height:100%;image-rendering:pixelated;object-fit:contain;pointer-events:none}
.lore-compass>button{width:64px;height:64px;min-height:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 3px 0 #0006)}
.lore-compass>button:hover{background:#ffffff12}
.compass-item{--compass-texture:url('assets/cataclysm-egg-tracker/egg_tracker_16.png');position:relative;display:block;width:100%;height:100%;isolation:isolate;pointer-events:none;image-rendering:pixelated}
@supports ((mask-image:url('')) or (-webkit-mask-image:url(''))){
 .compass-item::before,.compass-item::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:url('assets/minecraft-compass/enchanted_glint_item.png');background-repeat:repeat;background-size:128px 128px;mix-blend-mode:screen;opacity:.54;-webkit-mask-image:var(--compass-texture);mask-image:var(--compass-texture);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;animation:compass-enchantment 7s linear infinite}
 .compass-item::after{opacity:.26;background-size:96px 96px;animation:compass-enchantment-return 11s linear infinite}
}
@keyframes compass-enchantment{from{background-position:0 0}to{background-position:-128px 128px}}
@keyframes compass-enchantment-return{from{background-position:0 0}to{background-position:96px -96px}}
@media(prefers-reduced-motion:reduce){.compass-item::before,.compass-item::after{animation:none}}
body:has(#theme-panel:not([hidden])) .lore-compass{visibility:hidden}
.is-divine .theme-era-status,.is-divine .theme-close{color:#705b34}

/* Defeat stays a game panel, leaving the website and its navigation usable. */
body .cursor-death-screen{inset:auto 16px 90px auto;width:min(320px,calc(100vw - 32px));max-height:calc(100dvh - 170px);border:1px solid #c58d8d;border-radius:12px;box-shadow:0 12px 40px #0008}
body .cursor-death-content{width:100%;padding:20px}body .cursor-death-screen h2{font-size:25px}body .cursor-death-screen p{font-size:14px}body .cursor-death-actions{margin-top:20px}body .cursor-death-actions button{font-size:14px}
.minigames-paused .cursor-death-screen{display:none!important}

.application-form-page :is(.cursor-death-screen,.game-controls,.mobile-attacks){display:none!important}

.lore-compass>button{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}
.lore-compass.is-dragging>button{cursor:grabbing;background:transparent}
.lore-compass .compass-menu{box-sizing:border-box;max-height:calc(100dvh - 100px);overflow:auto}
.burial-spot{width:48px;height:48px;opacity:0!important;color:transparent!important;background:transparent!important;border:0!important;outline:none!important;box-shadow:none!important;cursor:default}

/* Atmospheric chapters: compact browsing outside, quiet reading inside. */
.lore-story>.lore-hero{max-width:none;margin:clamp(32px,6vh,64px) 0 36px}
.lore-story>.lore-hero .eyebrow{margin:0 0 14px;color:var(--pink);font:600 13px/1.5 'Barlow Condensed',sans-serif;letter-spacing:.18em}
.lore-story>.lore-hero h1{margin:0;font-size:clamp(42px,6.2vw,78px);line-height:1.15}
.lore-story>.lore-hero .lore-hero-lead{margin:18px 0 22px;font-size:clamp(20px,2.2vw,26px);color:var(--muted)}
.lore-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px 28px}
.lore-meta .lore-year,.lore-meta .lore-updated{margin:0;font:500 15px/1.5 'Barlow Condensed',sans-serif;letter-spacing:.03em;color:var(--muted)}
.lore-meta .lore-year strong{font-size:17px;margin-left:5px}
.lore-meta .lore-updated{opacity:.7}
.lore-story .lore-chapter{--chapter-border:#a4789d40;--chapter-surface:#151323ed;--chapter-hover:#24192d;--chapter-accent:#edb4e3;--chapter-tint:#ab64bd12;--chapter-control:#ba78c211;margin:18px 0;border:1px solid var(--chapter-border);border-radius:18px;background:linear-gradient(115deg,var(--chapter-tint),transparent 65%),var(--chapter-surface);color:var(--ink);scroll-margin-top:110px;box-shadow:0 12px 36px #0002;box-sizing:border-box;transition:border-color .24s,box-shadow .24s}
.lore-story .lore-chapter:hover,.lore-story .lore-chapter[open]{border-color:var(--chapter-accent);box-shadow:0 16px 40px #0003}
.lore-story .lore-chapter>summary{display:grid;grid-template-columns:160px minmax(0,1fr) 44px;align-items:center;gap:28px;min-height:150px;box-sizing:border-box;padding:18px 26px 18px 18px;border:0;border-radius:17px;list-style:none;cursor:pointer;transition:background-color .24s}
.lore-chapter>summary::-webkit-details-marker{display:none}
.lore-chapter>summary::marker{content:""}
.lore-story .lore-chapter>summary:hover{background:var(--chapter-hover)}
.lore-story .lore-chapter>summary:focus-visible{outline:2px solid var(--chapter-accent);outline-offset:4px}
.lore-chapter-art{display:block;width:160px;height:112px;object-fit:cover;border-radius:10px;filter:saturate(.85);transition:filter .3s}
.lore-chapter>summary:hover .lore-chapter-art,.lore-chapter[open] .lore-chapter-art{filter:saturate(1.1)}
.lore-chapter-heading{display:grid;gap:10px;min-width:0}
.lore-story .lore-chapter-title{display:block;font:700 clamp(16px,1.7vw,21px)/1.6 'Minecraft',sans-serif;overflow-wrap:anywhere}
.lore-story .lore-chapter-teaser{display:block;max-width:52ch;font:500 18px/1.45 'Barlow Condensed',sans-serif;color:var(--muted)}
.lore-chapter-indicator{position:relative;width:44px;height:44px;border:1px solid var(--chapter-border);border-radius:50%;background:var(--chapter-control);color:var(--chapter-accent);transition:background-color .24s,border-color .24s}
.lore-chapter-indicator::before,.lore-chapter-indicator::after{content:"";position:absolute;top:20px;left:13px;width:16px;height:2px;background:currentColor;border-radius:1px;transition:transform .24s}
.lore-chapter-indicator::after{transform:rotate(90deg)}
.lore-chapter[open]>summary .lore-chapter-indicator{border-color:var(--chapter-accent)}
.lore-chapter[open]>summary .lore-chapter-indicator::after{transform:rotate(0)}
.lore-chapter.is-lore-closing>summary .lore-chapter-indicator::after{transform:rotate(90deg)}
.lore-story .lore-chapter[open]>summary{border-radius:17px 17px 0 0}
.lore-story .lore-chapter>.lore-chapter-body{padding:10px clamp(24px,5vw,62px) 38px;border-top:1px solid var(--chapter-border)}
.lore-chapter-body>p{margin:22px 0;color:var(--muted)}
.lore-chapter-body>p:first-child{color:var(--ink);font-size:22px}
.lore-chapter-body>h3{margin:38px 0 16px;font-size:17px;line-height:1.7}
.lore-chapter-body>:last-child{margin-bottom:0}
.lore-chapter-body .lore-screenshot{margin:30px 0 0}
.lore-chapter-body .lore-screenshot img{height:clamp(180px,30vw,360px)}
.lore-chapter-body li{margin:8px 0;padding-left:6px}
.lore-chapter-body li::marker{color:var(--chapter-accent)}
.is-divine .lore-story .lore-chapter{--chapter-border:#ba9e6855;--chapter-surface:#fff8e9f5;--chapter-hover:#f5ebd8;--chapter-accent:#a58246;--chapter-tint:#b58a3010;--chapter-control:#ad85340c;box-shadow:0 8px 28px #77613c12}
.is-divine.is-create .lore-story .lore-chapter{--chapter-border:#8a957966;--chapter-surface:#edf0dff5;--chapter-hover:#e1e5ce;--chapter-accent:#7d663b;--chapter-tint:#8a957915}
.is-pillager-plus .lore-story .lore-chapter{--chapter-border:#9c8c7355;--chapter-surface:#242526f5;--chapter-hover:#373533;--chapter-accent:#c3a77e;--chapter-tint:#b19a7710;--chapter-control:#b19a7710}
.is-corrupting .lore-story .lore-chapter{--chapter-border:#a4789d66;--chapter-surface:#130b1bf5;--chapter-hover:#2a1537}
@media(max-width:600px){.lore-story>.lore-hero{margin:28px 0}.lore-story>.lore-hero .lore-hero-lead{margin:14px 0 18px}.lore-meta{gap:8px}.lore-meta .lore-updated{width:100%}.lore-story .lore-chapter{margin:14px 0;border-radius:14px}.lore-story .lore-chapter>summary{grid-template-columns:68px minmax(0,1fr) 30px;min-height:132px;padding:16px 12px;gap:12px;border-radius:13px}.lore-chapter-art{width:68px;height:90px;border-radius:7px}.lore-chapter-heading{gap:8px}.lore-story .lore-chapter-title{font-size:13px;line-height:1.7}.lore-story .lore-chapter-teaser{font-size:16px;line-height:1.35}.lore-chapter-indicator{width:30px;height:30px}.lore-chapter-indicator::before,.lore-chapter-indicator::after{top:13px;left:8px;width:12px}.lore-story .lore-chapter>.lore-chapter-body{padding:4px 20px 26px}.lore-chapter-body>p:first-child{font-size:20px}.lore-chapter-body>h3{font-size:15px}.lore-chapter-body ul{padding-left:20px}}
@media(prefers-reduced-motion:reduce){.lore-chapter,.lore-chapter>summary,.lore-chapter-art,.lore-chapter-indicator,.lore-chapter-indicator::after{transition:none!important}}
