/* MU Drakon · illustrated realm. Presentation only; no game/data rules. */
:root {
  --realm-fortress: url("img/drakon/realm/fortress-1672.webp");
  --realm-heroes: url("img/drakon/realm/heroes-1672.webp");
  --realm-edge: #b76128;
}
.bg-layer {
  background-image: var(--realm-fortress);
  background-position: center top;
  filter: saturate(.92) brightness(.7);
  opacity: .55;
}
.bg-overlay { background: linear-gradient(180deg, #070c113d, #070c11d9 1050px, #070c11 1800px); }
.topbar { box-shadow: 0 8px 34px #060a0f80; }
.topbar::after { background: linear-gradient(90deg, transparent, #d4712f 25%, #efaa7c 50%, #d4712f 75%, transparent); }
.hero { border-color: var(--realm-edge); box-shadow: 0 24px 80px #04070b99, 0 0 45px #b9622912; }
.hero__scene img { object-position: 65% center; }
.hero::after { background: linear-gradient(90deg, #070c12f5, #070c12c7 32%, #070c1247 54%, transparent 80%), linear-gradient(0deg, #090f16b3, transparent 35%); }
.hero__content { width: 49%; }
.hero__eyebrow { color: #f8b181; }
.hero__title-primary, .hero__title-secondary { color: #ffb685; text-shadow: 0 3px 0 #683717, 0 0 34px #e99e6c30, 0 8px 28px #000b; }
.hero__tagline { color: #efeae4; }
.hero__corner { opacity: 1; border-color: #e8a579; }
.realm-strip { background: linear-gradient(100deg, #172739, #0d1721 45%, #152535); border-color: var(--realm-edge); }
.realm-strip strong { color: #f9b181; }
.realm-strip__group > span { box-shadow: inset 0 1px #f3ad7e15; }
.realm-effects-toggle {
  position: absolute; z-index: 4; right: 18px; bottom: 18px;
  min-height: 44px; padding: 8px 14px; border: 1px solid #a7592580;
  border-radius: 4px; background: #0a1118e6; color: #eba77a;
  font: 600 12px/1.3 var(--font-ui); cursor: pointer;
}
.realm-effects-toggle:hover { border-color: #f0ab7d; background: #142332; }
.realm-effects-toggle:focus-visible { outline: 2px solid #ffb685; outline-offset: 4px; }
.realm-effects-toggle[disabled] { cursor: default; color: #c7ced4; }
.realm-sparks { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.realm-sparks i { position: absolute; bottom: 8%; left: 63%; width: 3px; height: 3px; border-radius: 50%; background: #ffb685; box-shadow: 0 0 11px 3px #ee9f6b80; opacity: 0; }
.realm-sparks i:nth-child(2) { left: 77%; bottom: 18%; animation-delay: -2s !important; }
.realm-sparks i:nth-child(3) { left: 89%; bottom: 4%; animation-delay: -4s !important; }
.realm-sparks i:nth-child(4) { left: 52%; bottom: 20%; animation-delay: -6s !important; }
.realm-light { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(400px circle at var(--realm-x,75%) var(--realm-y,40%), #ffb68515, transparent 80%); transition: opacity .3s; }
.hero:hover .realm-light { opacity: 1; }
.hslider, .promo-box, .class-card, .download-card { box-shadow: 0 12px 30px #060b103d; }
.promo-box { min-height: 184px; border-color: #9a522280; }
.promo-box:last-child::before { background-image: linear-gradient(90deg,#0c151ee8,#0c151e54), var(--realm-fortress); }
.promo-box:nth-child(2)::before { background-position: 87% center; }
.promo-box__icon { box-shadow: inset 0 1px #f5ae7f33; }
.section-head h2::before { border-color: #eca87b; background: #b86228; box-shadow: 0 0 14px #d4712f80, 0 0 0 4px #d5712f12; }
.classes-view > .section-head, .events-view > .section-head, .chaos-view > .section-head {
  min-height: 154px; padding: 28px 32px; border: 1px solid #ad5c2666; border-radius: 7px;
  background: linear-gradient(90deg,#0d1620ed,#0d162099 48%,#0d16202b), var(--realm-fortress) center 43% / cover;
}
.classes-view > .section-head { background-position: center 58%; }
.chaos-view > .section-head { background-image: linear-gradient(90deg,#0d1620ed,#0d162099 48%,#0d16202b),url("img/drakon/gamer/drakon-arsenal.webp"); }
.classes-view > .section-head h2, .events-view > .section-head h2, .chaos-view > .section-head h2 { color: #ffb685; text-shadow: 0 2px 15px #04070a; }
.classes-view > .section-head .section-head__hint, .events-view > .section-head .section-head__hint, .chaos-view > .section-head .section-head__hint { color: #d4dee6; }
.class-card, .class-card:first-child { background: linear-gradient(0deg,#0a1119 12%,#0b131b85 68%,#0d162066),var(--realm-fortress) 65% center / cover; }
.class-card::before { background: radial-gradient(ellipse at 50% 44%,#92b6ce36,transparent 70%); }
.class-card:focus-within { border-color: #e4a277; }
.killer-view--podium { background-image: linear-gradient(90deg,#0a1119e8,#0a11196e),var(--realm-fortress); }
.ranking-view { background: linear-gradient(120deg,#0f1a26f2,#0b131bea),var(--realm-fortress) right top / cover; }
.benefit-card--vip { background: linear-gradient(130deg,#172739f0,#0d1721eb),var(--realm-fortress) right top / cover; }
.download-card { border-color: #bd652a; background-image: linear-gradient(90deg,#080e15f5,#080e15b8 45%,#080e152b),var(--realm-fortress); background-position: center; }
.download-card__body { max-width: 610px; }
.footer { background: linear-gradient(180deg,#0d1721e8,#091017f5),var(--realm-fortress) center 62% / cover; }
.mk-head, .ws-head { border-color: #b15e27; box-shadow: 0 12px 42px #04080c66; }
.cs-hero { background-image: linear-gradient(90deg,#090f16e8,#090f16a6 55%,#090f164d),var(--realm-fortress); }
.pf-hero { background-image: linear-gradient(90deg,#0d1721f5,#0d1721c9),var(--realm-heroes); }
.page-svfast .bg-layer { background-image: var(--realm-heroes); }
.page-minijuegos .arcade-heading { padding: 26px 30px; border: 1px solid #b7612866; border-radius: 8px; background: linear-gradient(90deg,#0a121af5,#0a121abc 65%,#0a121a4d),var(--realm-fortress) center 45% / cover; }
.page-minijuegos .arcade-heading h1 { color: #ffb685; }
.page-minijuegos .arcade-heading p { color: #d0d8de; }
@media (hover:hover) and (pointer:fine) {
  .promo-box:hover, .class-card:hover { border-color: #eda97b; box-shadow: 0 10px 35px #bb63292b, inset 0 1px #eda97b33; }
  .mk-card:hover, .ws-item:hover, .lm-card:hover { border-color: #d2702e; box-shadow: 0 5px 25px #c0662a20; }
}
@media (prefers-reduced-motion:no-preference) {
  html:not(.drakon-effects-off) .hero.realm-in-view .realm-sparks i { animation: realm-ember 8s linear infinite; }
  html:not(.drakon-effects-off) .hero.realm-in-view .hero__scene img { animation: realm-arrive 4s ease-out both; }
  html:not(.drakon-effects-off) .realm-enter { animation: realm-reveal .6s ease-out both; }
}
@keyframes realm-ember { 0% { opacity:0; transform:translate(0,0); } 20% {opacity:.8;} 85% {opacity:.4;} 100% {opacity:0;transform:translate(-35px,-210px);} }
@keyframes realm-arrive { from { transform:scale(1.045); } to { transform:scale(1); } }
@keyframes realm-reveal { from { filter:brightness(.7); } to { filter:brightness(1); } }
html.drakon-effects-off .realm-sparks, html.drakon-effects-off .realm-light,
html.drakon-effects-off .embers, html.drakon-effects-off .mouse-trail-layer { display:none; }
html.drakon-effects-off .hero__scene img, html.drakon-effects-off .realm-enter { animation:none !important; }
html.realm-paused .realm-sparks i { animation-play-state:paused !important; }
@media(max-width:700px) {
  :root { --realm-fortress:url("img/drakon/realm/fortress-800.webp"); --realm-heroes:url("img/drakon/realm/heroes-800.webp"); }
  .hero { min-height:650px; padding:30px 22px 70px; }
  .hero__scene { height:390px; }
  .hero__scene img { object-position:76% top; }
  .hero::after { background:linear-gradient(0deg,#090f16 0%,#090f16 38%,#090f16e6 49%,#090f161a 82%); }
  .hero__content { width:100%; }
  .realm-effects-toggle { right:18px; bottom:14px; min-height:40px; }
  .classes-view > .section-head, .events-view > .section-head, .chaos-view > .section-head { padding:24px 18px; min-height:140px; background-position:70% center; }
  .classes-view > .section-head h2, .events-view > .section-head h2, .chaos-view > .section-head h2 { font-size:27px; }
  .promo-box { min-height:132px; }
  .page-minijuegos .arcade-heading { padding:22px 18px; flex-wrap:wrap; }
  .realm-light, .realm-sparks { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  .realm-sparks, .realm-light { display:none; }
  .realm-enter, .hero__scene img { animation:none !important; }
}

.hero__title .drakon-wordmark{display:block;width:min(100%,350px);height:auto;filter:drop-shadow(0 4px 10px #05090d)}
@media(max-width:700px){.hero__title .drakon-wordmark{width:min(72vw,260px)}}

/* Drakon: glacial blue surfaces and fire-orange actions. */
:root{--bg-0:#060f1d;--bg-1:#0b1d32;--bg-2:#102d48;--panel-bg:#0c2136;--panel-bg-strong:#071626;--text:#edf6ff;--text-dim:#b7cce0;--text-faint:#8caac3;--gold:#ff8b3d;--gold-bright:#ffc08e;--tomato:#ff8538;--tomato-soft:#ffac6e;--tomato-bright:#ffd0a9;--line:rgba(59,161,231,.35);--line-soft:rgba(59,161,231,.16);--line-strong:rgba(59,161,231,.65);--realm-edge:#387daf;--good:#2ecc71;--danger:#ff4757}
.topbar{background:rgba(6,20,37,.96);border-color:#287bab}
.topbar::after{background:linear-gradient(90deg,transparent,#289ee8 22%,#86d9ff 48%,#ff893c 75%,transparent)}
.nav-link:hover,.nav-link.is-active{color:#86d9ff}
.btn--primary,.ws-item__btn,.ws-cfg__buy,.svf-submit{background:linear-gradient(135deg,#d95b12,#aa3a08);border-color:#ffb273;color:#fff7ef;box-shadow:0 5px 24px #fa77242e}
.btn--primary:hover{background:linear-gradient(135deg,#ed7324,#c94c0e)}
.btn--ghost,.btn--secondary{background:#0c2c49;border-color:#398ec6;color:#a9e1ff}
.realm-strip{background:linear-gradient(110deg,#102d48,#071a2d 55%,#2b1b18);border-color:#3183bc}
.realm-strip strong{color:#ff9a51}.realm-strip small,.realm-strip em{color:#a0cff1}
.section-head h2{color:#e6f4ff}.section-head h2::before{background:#ff8233;border-color:#ffb37f;box-shadow:0 0 16px #ff7d3555}
.benefit-card--free{background:linear-gradient(145deg,#103654,#081c31);border-color:#379ad3}
.benefit-card--free .benefit-card__title,.benefit-card--free .benefit-val{color:#8fdaff}
.benefit-card--vip{background:linear-gradient(145deg,#41251b,#0a2035 72%);border-color:#e57f3a}
.benefit-card--vip .benefit-card__title,.benefit-card--vip .benefit-val{color:#ffae70}
.benefit-icon--drop{color:#68caff}
.settings-dialog{background:#0a2036;border-color:#369cda}.settings-dialog h2,.settings-dialog legend{color:#8fdcff}
.section-settings button{background:#0f3454;border-color:#3e9fd8;color:#bce7ff}
.settings-dialog button[type=submit]{background:#a94410;border-color:#ff9c59}
.status-dot--offline{background:#ff4757;box-shadow:0 0 8px #ff475766}
.status-dot--online{background:#2ecc71}
.hud-strip__value--offline{color:#ff4757}.hud-strip__value--online{color:#2ecc71}
.pf-status.is-offline,.offline{color:#ff4757}.pf-status.is-online,.online{color:#2ecc71}
.topbar .nav-link{color:#ffb578}.topbar .nav-link:hover,.topbar .nav-link.is-active{color:#93dcff}
