/* Imperial UI — the home page and the shared header in the design system of the
   game's own MultImperia windows (MultaNew: docs/design/MULTIMPERIA_UI_STYLE.md,
   native/mmwebui/web/portal.css): Segoe UI; white headings at weight 600;
   violet eyebrows in capitals; gold for the brand, values and the main button;
   ghost buttons that light up violet; violet-selected tabs; tabular figures.
   Loaded after every other stylesheet. */
.mp-site{
 --im-font:"Segoe UI",system-ui,-apple-system,Roboto,Tahoma,Arial,sans-serif;
 --im-title:#f6efe2;--im-text:#e7ecf2;--im-muted:#a7b6c7;--im-label:#9fb0c3;
 --im-gold:#e6c184;--im-gold-light:#f5dcaf;
 --im-accent:#9b5cff;--im-accent-light:#c9adff;--im-accent-glow:#9b5cff73;
 --im-accent-10:#9b5cff1a;--im-accent-18:#9b5cff2e;--im-accent-35:#9b5cff59;
 --im-line2:#a8bed02e;--im-panel:#0d131dd9;
 --im-primary:linear-gradient(180deg,#f3d7a2,#d9ad64);
}

/* ---------------------------------------------------------------- header */
.mp-site .mp-nav__links :is(a,button){font:500 13px/1.2 var(--im-font);letter-spacing:0;text-transform:none;color:#c9d4e0}
.mp-site .mp-nav__links :is(a,button):hover{color:#fff}
.mp-site .mp-nav__account{
 display:inline-flex;align-items:center;height:34px;padding:0 16px;border:1px solid var(--im-line2);border-radius:7px;
 font:600 13px/1 var(--im-font);letter-spacing:0;text-transform:none;color:var(--im-text);background:#0d131d8c;transition:border-color .15s,color .15s;
}
.mp-site .mp-nav__account:hover{border-color:var(--im-accent-35);color:#fff}

/* ---------------------------------------------------------------- home: copy */
.mp-site .mp-world__identity{font:600 10.5px/1.7 var(--im-font);letter-spacing:2px;color:var(--im-label)}
/* Eyebrow over every title. */
.mp-site .mp-world .mp-label{font:600 10.5px/1.4 var(--im-font);letter-spacing:2px;text-transform:uppercase;color:var(--im-accent-light)}
.mp-site .mp-world .mp-world-copy :is(h1,h2),.mp-site .mp-world .mp-world__inside h2{
 font-family:var(--im-font);font-weight:600;font-size:clamp(34px,3.3vw,56px);line-height:1.1;letter-spacing:-.01em;
 color:var(--im-title);text-shadow:0 2px 22px #0d131d99;
}
.mp-site .mp-world .mp-world-copy :is(h1,h2) em{font-style:normal;font-family:inherit;color:var(--im-gold)}
.mp-site .mp-world :is(.mp-world-copy,.mp-world__inside) p{font:400 14px/1.7 var(--im-font);color:#d2dbe5;text-shadow:0 1px 12px #0d131dcc}
/* Facts as the portal's small value cards: label in capitals, value in gold. */
.mp-site .mp-world .mp-world-facts{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 4px}
.mp-site .mp-world .mp-world-facts div{padding:8px 13px 9px;border:1px solid var(--im-line2);border-radius:8px;background:var(--im-panel)}
.mp-site .mp-world .mp-world-facts dt{font:600 10px/1.3 var(--im-font);letter-spacing:1px;text-transform:uppercase;color:var(--im-label)}
.mp-site .mp-world .mp-world-facts dd{margin:3px 0 0;font:600 15px/1.2 var(--im-font);font-variant-numeric:tabular-nums;color:var(--im-gold-light)}

/* ---------------------------------------------------------------- home: buttons */
/* Main action: the portal's gold primary button, sized to its label. */
.mp-site .mp-world :is(.mp-enter,.mp-world__play,.mp-world__inside-actions button){
 display:inline-flex;align-items:center;justify-content:center;gap:7px;height:40px;padding:0 22px;border:0;border-radius:7px;
 font:600 14px/1 var(--im-font);letter-spacing:0;text-transform:none;white-space:nowrap;color:#1a1306;
 background:var(--im-primary);box-shadow:inset 0 1px 0 #fff6,0 2px 10px #e6c18426;backdrop-filter:none;
 transition:filter .15s,box-shadow .15s;
}
.mp-site .mp-world :is(.mp-enter,.mp-world__play,.mp-world__inside-actions button):is(:hover,:focus-visible){
 color:#1a1306;background:var(--im-primary);border:0;filter:brightness(1.07);transform:none;box-shadow:inset 0 1px 0 #fff6,0 4px 18px #e6c18440;
}
.mp-site .mp-world .mp-world__play{height:36px;padding:0 18px;font-size:13px}
/* Secondary: transparent with a thin frame; the frame lights up violet. */
.mp-site .mp-world :is(.mp-world__inside-actions a,.mp-return,.mp-book-links :is(a,button)){
 display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 15px;border:1px solid var(--im-line2);border-radius:7px;
 font:600 13px/1 var(--im-font);letter-spacing:0;text-transform:none;white-space:nowrap;color:#dfe7f0;background:#0d131d99;
 transition:border-color .15s,color .15s;
}
.mp-site .mp-world :is(.mp-world__inside-actions a,.mp-return,.mp-book-links :is(a,button)):is(:hover,:focus-visible,.is-selected){border-color:var(--im-accent-35);color:#fff}
.mp-site .mp-world .mp-book-links :is(a,button).is-selected{color:var(--im-gold-light);background:linear-gradient(180deg,var(--im-accent-18),var(--im-accent-10))}
.mp-site .mp-world .mp-book-links{gap:8px;max-width:420px}
.mp-site .mp-world .mp-book-selection{font:600 10.5px/1.4 var(--im-font);letter-spacing:2px;text-transform:uppercase;color:var(--im-accent-light)}
.mp-site .mp-world .mp-world__inside-actions{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:10px}
.mp-site .mp-world .mp-return{height:32px;padding:0 13px;font-size:12.5px;color:var(--im-muted)}
.mp-site .mp-world :is(.mp-enter,.mp-world__play,.mp-world__inside-actions :is(a,button),.mp-return,.mp-book-links :is(a,button),.mp-chapters button):focus-visible{outline:2px solid var(--im-accent-light);outline-offset:2px}

/* Detail card that opens over the scene: a portal card. */
.mp-site .mp-world .mp-world__inside{border:1px solid var(--im-line2);border-radius:12px;background:linear-gradient(180deg,#152031f0,#111a27f0);box-shadow:0 12px 32px #0008}

/* ---------------------------------------------------------------- home: chapters */
/* The chapter strip is the portal's tab bar: segments in one frame, the open
   one violet with gold text. */
.mp-site .mp-world .mp-chapters{gap:2px;padding:4px;border:1px solid var(--im-line2);border-radius:9px;background:var(--im-panel)}
.mp-site .mp-world .mp-chapters button{
 height:32px;padding:0 13px;border:0;border-radius:7px;background:transparent;box-shadow:none;
 font:500 13px/1 var(--im-font);letter-spacing:0;text-transform:none;color:#9cacc0;transition:color .15s,background .15s;
}
.mp-site .mp-world .mp-chapters button:hover{color:#edf2f8;background:#c1d6e40a}
.mp-site .mp-world .mp-chapters button[aria-current=true]{color:var(--im-gold-light);background:linear-gradient(180deg,var(--im-accent-18),var(--im-accent-10));box-shadow:inset 0 0 0 1px var(--im-accent-35)}
.mp-site .mp-world .mp-chapters button:after{display:none}
.mp-site .mp-world .mp-world__current{font:600 12px/1 var(--im-font);font-variant-numeric:tabular-nums;color:var(--im-label)}
.mp-site .mp-world .mp-world__current>span:first-child{color:var(--im-gold-light)}
/* Progress: the portal's violet bar with a glow. */
.mp-site .mp-world>.mp-world__line{background:#a8bed01c}
.mp-site .mp-world .mp-world__line>span{background:linear-gradient(90deg,var(--im-accent),var(--im-accent-light));box-shadow:0 0 8px var(--im-accent-glow)}

/* ================================================================ archive, /about, downloads */
/* Same type and controls on the knowledge archive, the server record and the
   downloads chest (their colours and panels stay in voyage.css). The serif and
   the sans of voyage.css both become the portal's Segoe UI. */
:root{--vy-serif:"Segoe UI",system-ui,-apple-system,Roboto,Tahoma,Arial,sans-serif;--vy-sans:"Segoe UI",system-ui,-apple-system,Roboto,Tahoma,Arial,sans-serif}
.mp-downloads{--im-font:"Segoe UI",system-ui,-apple-system,Roboto,Tahoma,Arial,sans-serif;--im-title:#f6efe2;--im-label:#9fb0c3;--im-gold-light:#f5dcaf;--im-accent:#9b5cff;--im-accent-light:#c9adff;--im-accent-glow:#9b5cff73;--im-accent-10:#9b5cff1a;--im-accent-18:#9b5cff2e;--im-accent-35:#9b5cff59;--im-line2:#a8bed02e;--im-primary:linear-gradient(180deg,#f3d7a2,#d9ad64);font-family:var(--im-font)}
.mp-site .wiki-page,.mp-site .about,.mp-site .section:has(.about){font-family:var(--im-font)}

/* Titles: weight 600, upright, no negative tracking. */
.mp-site .wiki-hero__title{font:600 clamp(36px,4vw,60px)/1.1 var(--im-font)!important;letter-spacing:-.01em!important;color:var(--im-title)!important}
.mp-site .wiki-hero__eyebrow{font:600 10.5px/1.6 var(--im-font)!important;letter-spacing:2px!important;color:var(--im-accent-light)!important}
.mp-site .wiki-page :is(.wiki-hub-card strong,.wiki-halloween-entry__copy strong){font-weight:600!important;font-size:19px!important}
.mp-site .wiki-page :is(.wiki-article__title,.wiki-hub-panel>strong,.wiki-hub-panel>h2,.wiki-hub-panel__title,.wiki-server-hero h2,.wiki-sidebar__brand strong,.mp-archive-news h2,.mp-news-card h3,.wiki-event-schedule__name){font-weight:600!important;letter-spacing:0!important}
.mp-site .wiki-page .wiki-hub-card__when{font:600 13px/1.4 var(--im-font)!important;color:var(--im-gold-light)!important}
.mp-site .mp-archive-bar a{font:600 15px/1.4 var(--im-font)}
.mp-site .mp-article-trail [data-article-current]{font:600 14px/1.5 var(--im-font)}
.mp-site .wiki-page .wiki-search__input{font:400 15px var(--im-font)!important}
.mp-site .wiki-page .wiki-search__input::placeholder{font-style:normal}
.mp-site .wiki-page :is(.wiki-article__number,.wiki-nav__index,.wiki-hub-card:before){font-weight:600!important;font-variant-numeric:tabular-nums!important}
.mp-site .section:has(.about) .heading__title{font:600 clamp(28px,3vw,40px)/1.15 var(--im-font)!important;letter-spacing:0;text-transform:none}
.mp-site .about .about__content-head{font:600 clamp(18px,2vw,22px)/1.35 var(--im-font)}
.mp-downloads .mp-downloads__intro h2{font:600 32px/1.15 var(--im-font);letter-spacing:-.01em;color:var(--im-title)}
.mp-downloads .mp-downloads__head h2{font:600 26px/1.2 var(--im-font);letter-spacing:0;color:var(--im-title)}
.mp-downloads .mp-download-step h3{font:600 17px/1.3 var(--im-font);color:var(--im-title)}
.mp-downloads :is(.mp-downloads__intro>.mp-eyebrow,.mp-downloads__head .mp-eyebrow){font:600 10.5px/1.5 var(--im-font);letter-spacing:2px;color:var(--im-accent-light)}

/* Brass plates -> the portal's chips: gold for sections and badges, violet for "new". */
.mp-site .wiki-page :is(.wiki-hub-card__label,.wiki-sidebar__title,.wiki-halloween-entry .wiki-halloween__eyebrow,.wiki-hub-panel>span:first-child,.wiki-hub-panel>.mp-eyebrow:first-child),
.mp-site .wiki-page .wiki-hub-panel :is(.wiki-cube-reward__flag_new,.wiki-patch-item__badge){
 display:inline-flex!important;align-items:center;height:22px!important;padding:0 10px!important;border:1px solid #e6c1844d!important;border-radius:11px!important;
 font:600 10.5px/1 var(--im-font)!important;letter-spacing:1px!important;text-transform:uppercase!important;color:var(--im-gold-light)!important;
 background:#e6c18424!important;box-shadow:none!important;text-shadow:none!important;
}
.mp-site .wiki-page :is(.wiki-bonus-tab_new,.wiki-stage-tab_new,.wiki-server-tab_new):after,.mp-site .wiki-page .wiki-nav__link--new:after{
 color:var(--im-accent-light)!important;background:var(--im-accent-18)!important;border:1px solid var(--im-accent-35)!important;border-radius:9px!important;
 font-family:var(--im-font)!important;font-weight:600!important;box-shadow:none!important;text-shadow:none!important;
}
.mp-site .mp-archive-bar kbd{font:600 11px/1 var(--im-font);color:var(--im-gold-light);padding:4px 8px;border:1px solid #e6c1844d;border-radius:6px;background:#e6c18424;box-shadow:none}

/* Tabs (servers, bonus starts, stages, cube days, /about sections, downloads
   worlds): segments with a thin frame; the open one violet with gold text. */
.mp-site .wiki-page :is(.wiki-bonus-tabs,.wiki-stage-tabs,.wiki-server-tabs,.wiki-cube-tabs,.wiki-cube-subtabs) :is(button,[role=tab]),
.mp-site .about .inav__item.btn,.mp-downloads .mp-downloads__tabs button{
 border:1px solid var(--im-line2)!important;border-radius:7px!important;background:#0d131d8c!important;box-shadow:none!important;text-shadow:none!important;
 font-family:var(--im-font)!important;font-weight:600!important;letter-spacing:.5px!important;color:#c3cfdb!important;transition:border-color .15s,color .15s,background .15s!important;
}
.mp-site .wiki-page :is(.wiki-bonus-tabs,.wiki-stage-tabs,.wiki-server-tabs,.wiki-cube-tabs,.wiki-cube-subtabs) :is(button,[role=tab]):hover,
.mp-site .about .inav__item.btn:hover,.mp-downloads .mp-downloads__tabs button:hover{border-color:var(--im-accent-35)!important;color:#fff!important}
.mp-site .wiki-page :is(.wiki-bonus-tabs,.wiki-stage-tabs,.wiki-server-tabs,.wiki-cube-tabs,.wiki-cube-subtabs) .is-active,
.mp-site .about .inav__item.btn[data-open-tab-active=true],.mp-downloads .mp-downloads__tabs button[aria-selected=true]{
 color:var(--im-gold-light)!important;border-color:var(--im-accent-35)!important;
 background:linear-gradient(180deg,var(--im-accent-18),var(--im-accent-10))!important;box-shadow:inset 0 0 0 1px var(--im-accent-35)!important;
}
.mp-site .wiki-page :is(.wiki-bonus-tabs,.wiki-stage-tabs,.wiki-server-tabs,.wiki-cube-tabs,.wiki-cube-subtabs) .is-active :is(span,strong,small){color:inherit!important;text-shadow:none!important}
.mp-downloads .mp-downloads__tabs{border-bottom:0;gap:6px;margin-bottom:10px}
.mp-downloads .mp-downloads__tabs button{border-radius:7px!important;margin-bottom:0}
.mp-downloads .mp-downloads__tabs button>span{font:600 13px/1 var(--im-font);font-style:normal;color:var(--im-accent-light)}
.mp-downloads .mp-downloads__tabs button[aria-selected=true]>span{color:var(--im-accent-light)}
.mp-downloads .mp-downloads__tabs button[aria-selected=true]:before{display:none}

/* Main buttons: gold primary. Secondary: ghost, violet on hover. */
.mp-site .wiki-page .wiki-halloween-entry__action,.mp-site .wiki-page .wiki-hub-panel .wiki-bonus-code__copy{
 display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 18px!important;border:0!important;border-radius:7px!important;
 font:600 13px/1 var(--im-font)!important;letter-spacing:0!important;text-transform:none!important;color:#1a1306!important;
 background:var(--im-primary)!important;box-shadow:inset 0 1px 0 #fff6,0 2px 10px #e6c18426!important;text-shadow:none!important;
}
.mp-site .wiki-page .wiki-halloween-entry:hover .wiki-halloween-entry__action,.mp-site .wiki-page .wiki-halloween-entry__action:hover{background:var(--im-primary)!important;color:#1a1306!important;filter:brightness(1.07)}
.mp-site .wiki-page :is(.wiki-sidebar__collapse,.wiki-sidebar__expand),.mp-downloads .mp-download-link,.mp-downloads .mp-downloads__intro .mp-text-link,.mp-site .wiki-page .wiki-search__clear{
 border-radius:7px!important;font-family:var(--im-font)!important;font-weight:600!important;letter-spacing:.5px!important;text-shadow:none!important;
}
.mp-site .wiki-page :is(.wiki-sidebar__collapse,.wiki-sidebar__expand),.mp-downloads .mp-download-link{
 border:1px solid var(--im-line2)!important;background:#0d131d8c!important;box-shadow:none!important;color:#dfe7f0!important;transition:border-color .15s,color .15s!important;
}
.mp-site .wiki-page :is(.wiki-sidebar__collapse,.wiki-sidebar__expand):hover,.mp-downloads .mp-download-link:hover{border-color:var(--im-accent-35)!important;color:#fff!important;background:#0d131d8c!important}
.mp-downloads .mp-download-link{height:34px;padding:0 15px;font-size:12px;letter-spacing:1px}
.mp-downloads .mp-downloads__intro .mp-text-link{display:inline-flex;align-items:center;height:32px;padding:0 13px;border:1px solid var(--im-line2);font-size:12px;color:#dfe7f0}
.mp-downloads .mp-downloads__intro .mp-text-link:hover{border-color:var(--im-accent-35);color:#fff}
.mp-downloads .mp-dialog-close{width:36px;height:36px;border:1px solid var(--im-line2);border-radius:7px;background:#0d131d8c;box-shadow:none;font:300 24px/1 var(--im-font);color:#dfe7f0}
.mp-downloads .mp-dialog-close:hover{border-color:var(--im-accent-35);color:#fff;background:#0d131d8c;box-shadow:none}
/* Step numbers: the portal's violet badge. */
.mp-downloads .mp-download-step__number{width:34px;height:34px;border-radius:50%;font:600 14px/1 var(--im-font);font-variant-numeric:tabular-nums;color:#fff;text-shadow:none;background:var(--im-accent);box-shadow:0 0 12px var(--im-accent-glow)}
.mp-downloads .mp-download-step__number:before{display:none}
.mp-site .wiki-page :is(a,button,input,summary,[tabindex]):focus-visible,.mp-downloads :is(a,button):focus-visible{outline-color:var(--im-accent-light)!important}

/* ---------------------------------------------------------------- phones */
@media(max-width:760px){
 .mp-downloads .mp-downloads__intro h2{font-size:26px}
 .mp-downloads .mp-downloads__head h2{font-size:22px}
 .mp-site .wiki-hero__title{font-size:34px!important}
 .mp-site .mp-world .mp-world-copy :is(h1,h2),.mp-site .mp-world .mp-world__inside h2{font-size:clamp(30px,8.4vw,44px)}
 .mp-site .mp-world :is(.mp-world-copy,.mp-world__inside) p{font-size:13px;line-height:1.6}
 .mp-site .mp-world .mp-world-facts{gap:6px;margin-top:14px}
 .mp-site .mp-world .mp-world-facts div{padding:6px 10px 7px}
 .mp-site .mp-world .mp-world-facts dd{font-size:13px}
 .mp-site .mp-world .mp-enter{height:38px;padding:0 18px;font-size:13px}
 .mp-site .mp-world .mp-world__play{height:32px;padding:0 13px;font-size:12.5px}
 .mp-site .mp-world .mp-chapters{gap:0;padding:3px;scrollbar-width:none}
 .mp-site .mp-world .mp-chapters::-webkit-scrollbar{display:none}
 .mp-site .mp-world .mp-chapters button{flex:0 0 auto;height:28px;padding:0 7px;font-size:11.5px}
}
@media(prefers-reduced-motion:reduce){
 .mp-site .mp-world :is(.mp-enter,.mp-world__play,.mp-world__inside-actions :is(a,button),.mp-return,.mp-book-links :is(a,button),.mp-chapters button),.mp-site .mp-nav__account{transition:none}
}

/* ---------------------------------------------------------------- footer
   Laid out like the live site's footer: the brand and the disclaimer, two
   columns of links (home, knowledge base, account | registration, files,
   donations), then the social icons and the legal links on the right. The
   social and legal links come from the admin blocks "scl" and "links". */
.mp-site .mp-footer{padding-inline:0}
/* Home: the footer follows the 3D journey and slides in over the library
   close-up after the last stretch (the route is measured on the scroll
   spacer, see journeyMax() in world-journey.mjs). It sits above the fixed
   world (z-index 2) and below the fixed header (z-index 100). */
.mp-site:has(.mp-world) .mp-footer{display:block;position:relative;z-index:3;background:#0b0910;border-top:1px solid var(--im-line2)}
.mp-site:has(.mp-world) .mp-footer::before{content:"";position:absolute;inset:auto 0 100%;height:110px;background:linear-gradient(180deg,#0b091000,#0b0910d9);pointer-events:none}
.mp-site .mp-footer__grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:36px 56px;align-items:start}
.mp-site .mp-footer__about .mp-brand{display:inline-flex}
.mp-site .mp-footer .mp-brand__logo{height:92px;width:auto}
.mp-site .mp-footer__desc{margin:14px 0 0;max-width:600px;font:400 13.5px/1.7 var(--im-font);color:var(--im-muted)}
.mp-site .mp-footer__nav{display:grid;grid-template-columns:repeat(2,max-content);grid-template-rows:repeat(3,auto);grid-auto-flow:column;gap:24px 80px;padding-top:12px}
.mp-site .mp-footer__nav :is(a,button),.mp-site .mp-footer__legal a{
 padding:0;border:0;background:none;text-align:left;cursor:pointer;
 font:400 15px/1.3 var(--im-font);letter-spacing:0;text-transform:none;color:#b7b2c6;transition:color .15s;
}
.mp-site .mp-footer__nav :is(a,button):hover,.mp-site .mp-footer__legal a:hover{color:#fff}
.mp-site .mp-footer__side{display:flex;flex-direction:column;align-items:flex-end;gap:24px;padding-top:6px}
.mp-site .mp-footer__social .scl{--scl-bg:none;--scl-bg-accent:none;--scl-color-1:#b7b2c6;--scl-color-1-hover:#fff;--scl-width:36px;--scl-height:36px;--scl-font-size:24px;--scl-list-gap:6px 14px;justify-content:flex-end}
.mp-site .mp-footer__legal{display:flex;flex-direction:column;align-items:flex-end;gap:12px;text-align:right}
.mp-site .mp-footer :is(a,button):focus-visible{outline:2px solid var(--im-accent-light);outline-offset:3px;border-radius:2px}
@media(max-width:1100px){
 .mp-site .mp-footer__grid{grid-template-columns:minmax(0,1fr) auto}
 .mp-site .mp-footer__about{grid-column:1/-1}
}
@media(max-width:640px){
 .mp-site .mp-footer__grid{grid-template-columns:minmax(0,1fr);gap:28px}
 .mp-site .mp-footer .mp-brand__logo{height:72px}
 .mp-site .mp-footer__desc{font-size:12.5px}
 .mp-site .mp-footer__nav{gap:18px 40px;padding-top:0}
 .mp-site .mp-footer__nav :is(a,button),.mp-site .mp-footer__legal a{font-size:14px}
 .mp-site .mp-footer__side,.mp-site .mp-footer__legal{align-items:flex-start;text-align:left}
 .mp-site .mp-footer__social .scl{justify-content:flex-start}
}

/* ---------------------------------------------------------------- home: live worlds and the event
   The first view carries what the old home header showed: players online per
   world (MmoWeb {server} tag, server_status.tpl), the opening announcement
   and the bonus start (HEADER_SERVER_OPENED / HEADER_BONUS_* in Lang). */
.mp-site .mp-world .mp-world-facts--live .mp-live-world dt{display:flex;align-items:center;gap:7px}
.mp-site .mp-world .mp-live-world__dot{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#43d17a;box-shadow:0 0 0 3px #43d17a26,0 0 10px #43d17a99;animation:mp-live-pulse 2.4s ease-in-out infinite}
.mp-site .mp-world .mp-live-world.is-off .mp-live-world__dot{background:#d0645a;box-shadow:0 0 0 3px #d0645a26;animation:none}
.mp-site .mp-world .mp-world-facts--live .mp-live-world dd{display:flex;align-items:baseline;gap:6px;white-space:nowrap}
.mp-site .mp-world .mp-world-facts--live .mp-live-world dd span{font:500 11px/1.2 var(--im-font);color:var(--im-label)}
.mp-site .mp-world .mp-world-facts--live .mp-live-world dd strong{font:600 16px/1.2 var(--im-font);font-variant-numeric:tabular-nums;color:#7fe0a3}
@keyframes mp-live-pulse{50%{box-shadow:0 0 0 5px #43d17a14,0 0 14px #43d17acc}}

.mp-site .mp-world .mp-world-event{margin:14px 0 2px;max-width:520px;pointer-events:auto}
.mp-site .mp-world .mp-world-event__opened{
 display:inline-block;max-width:100%;margin:0 0 8px;padding:6px 12px;border:1px solid var(--im-line2);border-radius:999px;background:var(--im-panel);
 font:600 10.5px/1.3 var(--im-font);letter-spacing:1.2px;text-transform:uppercase;color:#e9e1f5;text-shadow:none;
}
.mp-site .mp-world .mp-world-event__bonus{
 display:flex;align-items:center;gap:14px;padding:12px 14px 12px 12px;border:1px solid var(--im-accent-35);border-radius:10px;
 background:linear-gradient(135deg,#2c1850e6,#150e26e6);box-shadow:inset 0 1px 0 #ffffff12,0 12px 34px #0a061566;
 color:var(--im-text);text-decoration:none;transition:border-color .15s,box-shadow .15s;
}
.mp-site .mp-world .mp-world-event__bonus:hover{border-color:var(--im-accent-light);box-shadow:inset 0 1px 0 #ffffff1a,0 12px 34px #0a061566,0 0 24px var(--im-accent-glow)}
.mp-site .mp-world .mp-world-event__icon{
 flex:0 0 42px;height:42px;border-radius:50%;border:1px solid #e6c18480;
 background:radial-gradient(circle,#f5dcaf 0 5px,#d9ad64 5.5px 7px,#0000 7.5px),radial-gradient(circle at 50% 35%,#3d2760,#1a1029);
 box-shadow:0 0 18px #9b5cff40,inset 0 0 10px #00000080;
}
.mp-site .mp-world .mp-world-event__text{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.mp-site .mp-world .mp-world-event__label{font:700 10px/1.2 var(--im-font);letter-spacing:1.8px;color:var(--im-gold)}
.mp-site .mp-world .mp-world-event__text strong{font:600 15px/1.25 var(--im-font);color:var(--im-title)}
.mp-site .mp-world .mp-world-event__date{font:600 11px/1.3 var(--im-font);letter-spacing:1px;color:var(--im-label)}
.mp-site .mp-world .mp-world-event__cta{
 flex:0 0 auto;padding:9px 12px;border-radius:7px;background:var(--im-primary);color:#24170a;
 font:700 10.5px/1 var(--im-font);letter-spacing:.8px;text-transform:uppercase;white-space:nowrap;
}
.mp-site .mp-world .mp-world-event__bonus:focus-visible{outline:2px solid var(--im-accent-light);outline-offset:3px}
/* The first view and the Morgard chapter (live card + event) are taller:
   they start higher on desktop screens. */
@media(min-width:761px){
 .mp-site .mp-world[data-composition=continuous-voyager]:is([data-chapter="0"],[data-chapter="2"]) .mp-world__information{top:max(22%,196px)}
}
@media(min-width:761px) and (max-height:820px){
 .mp-site .mp-world[data-composition=continuous-voyager]:is([data-chapter="0"],[data-chapter="2"]) .mp-world__information{top:max(17%,190px)}
 .mp-site .mp-world:is([data-chapter="0"],[data-chapter="2"]) .mp-world-copy>p{display:none}
}
/* Very short screens: the corner tagline gives its room to the first view. */
@media(min-width:761px) and (max-height:740px){
 .mp-site .mp-world:is([data-chapter="0"],[data-chapter="2"]) .mp-world__identity{visibility:hidden}
 .mp-site .mp-world[data-composition=continuous-voyager]:is([data-chapter="0"],[data-chapter="2"]) .mp-world__information{top:140px}
}
@media(max-width:760px){
 .mp-site .mp-world .mp-world-event{margin-top:10px}
 .mp-site .mp-world .mp-world-event__opened{font-size:9.5px;letter-spacing:.8px;padding:5px 10px;margin-bottom:6px}
 .mp-site .mp-world .mp-world-event__bonus{flex-wrap:wrap;gap:8px 12px;padding:10px 12px}
 .mp-site .mp-world .mp-world-event__icon{flex-basis:34px;height:34px}
 .mp-site .mp-world .mp-world-event__text{flex:1 1 200px}
 .mp-site .mp-world .mp-world-event__text strong{font-size:13.5px}
 .mp-site .mp-world .mp-world-event__cta{margin-left:46px;padding:7px 10px}
 .mp-site .mp-world .mp-world-facts--live .mp-live-world dd strong{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
 .mp-site .mp-world .mp-live-world__dot{animation:none}
}

/* ---------------------------------------------------------------- home: dive panel title
   The title scales with the panel itself (container units), so the longest
   word ("возможностей.", "продолжается.", "combination.") always fits inside
   it; a word that still cannot fit wraps instead of sticking out. */
.mp-site .mp-world .mp-world__inside{container-type:inline-size}
.mp-site .mp-world .mp-world__inside h2{font-size:min(clamp(30px,3.3vw,56px),12.5cqi);overflow-wrap:break-word;hyphens:auto}
@media(max-width:760px){
 .mp-site .mp-world .mp-world__inside h2{font-size:min(clamp(28px,8.4vw,44px),12.5cqi)}
}

/* ---------------------------------------------------------------- home: corner tagline
   "MULTIPROFF · на базе клиента MAIN / с дополнениями HF +
   Essence" (the old home header's wording) stays on two lines on phones. */
@media(max-width:760px){
 .mp-site .mp-world__identity{font-size:9px;letter-spacing:.9px;line-height:1.7}
}
@media(min-width:761px) and (max-width:899px){
 .mp-site .mp-world__identity{top:124px}
}
/* Short phones (iPhone SE size): the first view and the Morgard chapter drop
   their intro sentence so the live worlds, the event and the button fit
   between the header and the chapter bar. */
@media(max-width:760px) and (max-height:740px){
 .mp-site .mp-world:is([data-chapter="0"],[data-chapter="2"]) .mp-world-copy>p{display:none}
}
/* The bonus button moves under its text whenever the card is narrow. */
.mp-site .mp-world .mp-world-event__bonus{flex-wrap:wrap}
.mp-site .mp-world .mp-world-event__text{flex:1 1 220px}
/* Tablets: the copy column was 33vw (about 250 px at 761 px), which stacked
   the cards into a tall column; give it room. */
@media(min-width:761px) and (max-width:1100px){
 .mp-site .mp-world[data-composition=continuous-voyager] .mp-world__information{width:min(470px,52vw)}
}
/* Phones: the copy sits right above the chapter bar (its old 150 px offset
   made room for the removed "Начать игру" button). */
@media(max-width:760px){
 .mp-site .mp-world[data-composition=continuous-voyager] .mp-world__information{bottom:104px}
}
/* Very low screens (800x600 desktops, 320x568 phones): a compact first view. */
@media(min-width:761px) and (max-height:640px){
 .mp-site .mp-world .mp-world-copy :is(h1,h2){font-size:30px}
 .mp-site .mp-world-copy>p{display:none}
 .mp-site .mp-world .mp-world-event__opened{display:none}
 .mp-site .mp-world .mp-world-facts{margin-top:12px}
 .mp-site .mp-world .mp-enter{margin-top:16px}
 .mp-site .mp-world .mp-world-facts--live>div:not([class]):not([data-live-slot]){display:none}
}
@media(max-width:760px) and (max-height:600px){
 .mp-site .mp-world:is([data-chapter="0"],[data-chapter="2"]) .mp-world__identity{visibility:hidden}
 .mp-site .mp-world .mp-world-copy :is(h1,h2){font-size:26px}
 .mp-site .mp-world .mp-world-event__opened{display:none}
 .mp-site .mp-world .mp-world-facts{margin-top:10px}
 .mp-site .mp-world .mp-world-facts div{padding:5px 8px 6px}
 .mp-site .mp-world .mp-enter{margin-top:12px}
 .mp-site .mp-world .mp-world-facts--live>div:not([class]):not([data-live-slot]){display:none}
}
