/* MiddleCraft — дизайн „Нощен Overworld“.
   Нощно небе (основа), кост (текст), драконово червено (марка, действия), злато (цени, акценти), emerald (онлайн).
   Заглавия: Dela Gothic One; пикселни детайли: Press Start 2P; текст: Rubik.
   Движение: transform/opacity, обща крива --ease; reduced-motion изключва всичко. */
:root {
  --n-950: #0b0d1c;
  --n-900: #121530;
  --n-800: #1a1e40;
  --n-700: #272b55;
  --n-600: #3a3f73;
  --bone: #f3eee4;
  --bone-2: #c9c7dc;
  --bone-3: #8f8db0;
  --dragon: #e0262d;
  --dragon-hi: #ff4a50;
  --dragon-lo: #7a1218;
  --gold: #ffc23d;
  --emerald: #3ee28a;
  --display: "Dela Gothic One", Rubik, system-ui, sans-serif;
  --pixel: "Press Start 2P", monospace;
  --body: Rubik, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

html { scroll-behavior: smooth; }
html body {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(91, 61, 170, .18), transparent 60%), var(--n-950);
  color: var(--bone);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
html body h1, html body h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.005em; line-height: 1.08; }
html body h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
html body h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
::selection { background: rgba(224, 38, 45, .6); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.font-pixel { font-family: var(--pixel); }

/* Старите стъклени карти от предишните дизайни: плътни, нощни. */
html body .glass { background: linear-gradient(180deg, rgba(39, 43, 85, .55), rgba(18, 21, 48, .7)); backdrop-filter: none; } /* без размазване: евтино при скрол */
html body .shadow-glow { box-shadow: 0 0 0 1px rgba(224, 38, 45, .5), 0 10px 30px -10px rgba(224, 38, 45, .5); }
html body .bg-dot-1, html body .bg-dot-2 { display: none; }
html body .absolute.rounded-full.blur-3xl:not(.mc-keep), html body .absolute.rounded-full[class*="blur-["]:not(.mc-keep) { display: none; }

.mc-wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* ---------- Преходи между страниците (Chrome, Edge, Safari 18+) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: mc-vt-out .32s var(--ease-io) both; }
::view-transition-new(root) { animation: mc-vt-in .5s var(--ease) both; }
@keyframes mc-vt-out { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes mc-vt-in { from { opacity: 0; transform: translateY(14px); } }
.mc-nav { view-transition-name: mc-nav; }

/* ---------- Екран при зареждане: логото се строи блок по блок ---------- */
#mcLoader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--n-950);
  clip-path: circle(150% at 50% 46%); transition: clip-path .9s var(--ease-io); cursor: pointer; }
#mcLoader.out { clip-path: circle(0% at 50% 46%); }
#mcLoader .stage { display: grid; justify-items: center; gap: 26px; }
#mcLoader canvas { width: min(46vw, 230px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 18px 30px rgba(224, 38, 45, .35)); }
#mcLoader .word { font: 400 clamp(.6rem, 2vw, .78rem)/1 var(--pixel); color: var(--bone); letter-spacing: .06em; display: flex; min-height: 1.2em; }
#mcLoader .word span { display: inline-block; opacity: 0; transform: translateY(10px) scale(.6); transition: transform .45s var(--ease), opacity .3s; }
#mcLoader .word span.on { opacity: 1; transform: none; }
#mcLoader .bar { width: 180px; height: 6px; background: var(--n-800); box-shadow: 0 0 0 2px var(--n-700); overflow: hidden; }
#mcLoader .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--dragon), var(--gold)); transition: width .2s linear; }
#mcLoader .skip { position: absolute; bottom: 26px; font: 400 .55rem/1 var(--pixel); color: var(--bone-3); opacity: .7; }

/* ---------- Skeleton: блок, по който минава светлина, докато нещо се зарежда ---------- */
.mc-skel { position: relative; overflow: hidden; background: var(--n-800); border-radius: 10px; color: transparent !important; }
.mc-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); animation: mc-shimmer 1.3s var(--ease-io) infinite; }
@keyframes mc-shimmer { to { transform: translateX(100%); } }
.mc-skel-line { display: block; height: 12px; margin: 10px 0; }
.mc-skel-card { border-radius: 18px; padding: 22px; background: var(--n-900); border: 1px solid rgba(255, 255, 255, .06); }
.mc-skel-card .img { height: 170px; border-radius: 12px; margin-bottom: 18px; }
.mc-skel-chip { display: inline-block; width: 120px; height: 48px; border-radius: 14px; }
.mc-img-wait { position: relative; }
.mc-img-wait > img { opacity: 0; transition: opacity .6s var(--ease); }
.mc-img-wait.ok > img { opacity: 1; }

/* ---------- Бутони ---------- */
.mc-btn {
  --b1: var(--dragon-hi); --b2: var(--dragon); --sh: var(--dragon-lo); --fg: #fff;
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.4rem; border: 0; border-radius: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 1rem/1 var(--body); color: var(--fg); background: linear-gradient(180deg, var(--b1), var(--b2));
  box-shadow: 0 5px 0 var(--sh), 0 16px 30px -12px var(--b2), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .3s;
}
.mc-btn::before { content: ""; position: absolute; z-index: -1; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transition: transform .8s var(--ease); }
.mc-btn:hover::before { transform: translateX(120%) skewX(-20deg); }
.mc-btn:hover { filter: brightness(1.06); box-shadow: 0 5px 0 var(--sh), 0 22px 40px -12px var(--b2), inset 0 1px 0 rgba(255, 255, 255, .3); }
.mc-btn:active { transform: translateY(4px) !important; box-shadow: 0 1px 0 var(--sh), 0 8px 18px -10px var(--b2); transition-duration: .08s; }
.mc-btn--ghost { --b1: rgba(255, 255, 255, .1); --b2: rgba(255, 255, 255, .05); --sh: rgba(0, 0, 0, .45); --fg: var(--bone); box-shadow: 0 5px 0 rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.mc-btn--ghost:hover { box-shadow: 0 5px 0 rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .3); }
.mc-btn--sm { min-height: 40px; padding: 0 1rem; font-size: .9rem; border-radius: 11px; }
.mc-btn svg { width: 18px; height: 18px; flex: none; }
.mc-ip { font: 400 .72rem/1 var(--pixel); opacity: .95; }

/* ---------- Горна лента: прозрачна над началото, плътна при скрол, скрива се при скрол надолу ---------- */
.mc-nav { position: sticky; top: 0; z-index: 100; transition: background .4s, border-color .4s, transform .5s var(--ease);
  background: rgba(11, 13, 28, .94); border-bottom: 1px solid rgba(255, 255, 255, .06); } /* плътен фон вместо backdrop-filter: размазването зад лентата се смяташе на всеки кадър */
.mc-on-hero .mc-nav { position: fixed; left: 0; right: 0; }
.mc-on-hero .mc-nav:not(.solid) { background: transparent; border-color: transparent; }
.mc-nav.away { transform: translateY(-100%); }
.mc-nav__row { display: flex; align-items: center; gap: 18px; height: 70px; }
.mc-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--bone); text-decoration: none; font: 400 1.15rem/1 var(--display); }
.mc-brand img { width: 40px; height: 40px; image-rendering: pixelated; transition: transform .6s var(--ease); }
.mc-brand:hover img { transform: rotate(-10deg) scale(1.12); }
.mc-links { position: relative; display: flex; gap: 2px; margin-left: 14px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.mc-links a { position: relative; z-index: 1; padding: 9px 14px; border-radius: 10px; color: var(--bone-2); text-decoration: none; font-weight: 500; font-size: .93rem; transition: color .3s; }
.mc-links a:hover, .mc-links a[aria-current="page"] { color: #fff; }
.mc-links__pill { position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 10px;
  background: linear-gradient(180deg, rgba(224, 38, 45, .9), rgba(181, 29, 36, .9)); box-shadow: 0 6px 18px -6px rgba(224, 38, 45, .7);
  opacity: 0; transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; pointer-events: none; }
.mc-nav__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mc-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--bone);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); cursor: pointer; text-decoration: none; transition: background .3s, transform .3s var(--ease); }
.mc-icon-btn:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.mc-icon-btn svg { width: 22px; height: 22px; }
.mc-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--dragon); color: #fff;
  font: 700 11px/20px var(--body); text-align: center; box-shadow: 0 0 0 3px var(--n-950); }
.mc-badge.bump { animation: mc-bump .6s var(--ease); }
@keyframes mc-bump { 30% { transform: scale(1.5) rotate(-8deg); } }
.mc-lang { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.mc-lang a { padding: 7px 10px; border-radius: 8px; color: var(--bone-3); font: 700 .78rem/1 var(--body); text-decoration: none; transition: background .3s, color .3s; }
.mc-lang a[aria-current="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
.mc-avatar { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--dragon-hi), var(--dragon-lo)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 400 .95rem/1 var(--display); }
.mc-menu-btn { display: none; }

.mc-drop { position: relative; }
.mc-drop__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04); color: var(--bone); cursor: pointer; }
.mc-drop__btn span.name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: .92rem; }
.mc-drop__btn svg { transition: transform .4s var(--ease); }
.mc-drop.open .mc-drop__btn svg { transform: rotate(180deg); }
.mc-drop__panel { position: absolute; right: 0; top: calc(100% + 10px); width: 290px; padding: 8px; border-radius: 18px; background: rgba(18, 21, 48, .96); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); transform-origin: top right; transform: scale(.94) translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s; }
.mc-drop.open .mc-drop__panel { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .3s; }
.mc-drop__head { padding: 12px; display: flex; gap: 12px; align-items: center; }
.mc-drop__head small { display: block; color: var(--bone-3); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; }
.mc-drop__bal { margin: 0 4px 6px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 194, 61, .08); border: 1px solid rgba(255, 194, 61, .18); display: flex; justify-content: space-between; font-size: .85rem; color: var(--bone-2); }
.mc-drop__bal b { color: var(--gold); font-size: .98rem; }
.mc-drop__panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--bone-2); text-decoration: none; font-size: .92rem; transition: background .25s, color .25s, padding .3s var(--ease); }
.mc-drop__panel a:hover { background: rgba(255, 255, 255, .07); color: #fff; padding-left: 16px; }
.mc-drop__panel a.out { color: #ff8d8d; }

.mc-sheet { position: fixed; inset: 0; z-index: 99; background: rgba(11, 13, 28, .97); backdrop-filter: blur(10px); padding: 96px 24px 30px; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 35px); visibility: hidden; transition: clip-path .7s var(--ease-io), visibility 0s .7s; }
.mc-sheet.open { clip-path: circle(150% at calc(100% - 44px) 35px); visibility: visible; transition: clip-path .7s var(--ease-io); }
.mc-sheet a.big { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--bone); text-decoration: none;
  font: 400 1.5rem/1.2 var(--display); transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease), opacity .5s; }
.mc-sheet.open a.big { transform: none; opacity: 1; }
.mc-sheet .mc-lang { margin-top: 24px; }
.mc-sheet .mc-lang a { padding: 10px 16px; }

@media (max-width: 960px) {
  .mc-links, .mc-nav__right .mc-lang, .mc-nav__right .mc-signin-full, .mc-drop__btn span.name { display: none; }
  .mc-menu-btn { display: inline-flex; z-index: 101; }
}

/* ---------- Начало: нощното небе, хълмовете и левитиращият блок ---------- */
.mc-hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 110px 0 170px;
  background: linear-gradient(180deg, #070918 0%, #12133a 45%, #2b1a4f 78%, #4a2350 100%); }
.mc-sky, .mc-hills canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mc-hills { position: absolute; inset: 0; pointer-events: none; }
.mc-hills canvas { image-rendering: pixelated; will-change: transform; }
.mc-moon { position: absolute; top: 13%; right: 9%; width: 64px; height: 64px; background: #f6f1d7; box-shadow: 0 0 70px 22px rgba(246, 241, 215, .16); will-change: transform; }
.mc-moon::after { content: ""; position: absolute; left: 16px; top: 14px; width: 12px; height: 12px; background: #e2dbb8; box-shadow: 22px 18px 0 2px #e2dbb8, 6px 28px 0 -2px #e2dbb8; }
.mc-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; width: 100%; }
.mc-status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 99px; margin-bottom: 26px;
  background: rgba(18, 21, 48, .7); border: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; color: var(--bone-2); }
.mc-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(62, 226, 138, .7); animation: mc-live 2s infinite; }
.mc-status .dot.off { background: #ff6b6b; animation: none; }
.mc-status b { color: #fff; font-weight: 700; }
.mc-status .mc-skel { display: inline-block; width: 70px; height: 14px; vertical-align: middle; border-radius: 6px; }
@keyframes mc-live { 70% { box-shadow: 0 0 0 9px rgba(62, 226, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 226, 138, 0); } }
html body .mc-hero h1 { font-size: clamp(2.5rem, 6.2vw, 5.2rem); line-height: 1; margin: 0 0 26px; }
.mc-hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.mc-hero h1 .ln > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.mc-ready .mc-hero h1 .ln > span { transform: none; }
.mc-hero h1 .ln:nth-child(2) > span { transition-delay: .1s; }
.mc-hero h1 .ln:nth-child(3) > span { transition-delay: .2s; }
.mc-hero h1 .accent { background: linear-gradient(90deg, var(--gold), #ff8a3d 50%, var(--dragon-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mc-hero__lead { max-width: 50ch; color: var(--bone-2); font-size: 1.15rem; line-height: 1.65; margin: 0 0 34px; }
.mc-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.mc-fade { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(.4s + var(--d, 0) * .12s); }
.mc-ready .mc-fade { opacity: 1; transform: none; }
.mc-scroll { position: absolute; z-index: 3; left: 50%; bottom: 26px; margin-left: -13px; width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .35); }
.mc-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: mc-wheel 1.8s var(--ease) infinite; }
@keyframes mc-wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* 3D блок трева (текстурите се рисуват в mc.js) с дракона над него */
.mc-block-scene { position: relative; height: 440px; perspective: 1000px; display: grid; place-items: center; }
.mc-float { position: relative; transform-style: preserve-3d; animation: mc-float 6s ease-in-out infinite; }
@keyframes mc-float { 50% { transform: translateY(-18px); } }
.mc-cube { --s: 190px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(38deg); will-change: transform; }
.mc-cube i { position: absolute; inset: 0; background-size: cover; image-rendering: pixelated; }
.mc-cube .f-top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.mc-cube .f-bot { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.mc-cube .f-front { transform: translateZ(calc(var(--s) / 2)); }
.mc-cube .f-back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.mc-cube .f-right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.mc-cube .f-left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.mc-dragon { position: absolute; left: 50%; top: -165px; width: 132px; margin-left: -66px; image-rendering: pixelated; filter: drop-shadow(0 20px 24px rgba(224, 38, 45, .55));
  animation: mc-bob 4.2s ease-in-out infinite; z-index: 2; will-change: transform; }
@keyframes mc-bob { 50% { transform: translateY(-12px) rotate(-3deg); } }
.mc-shadow { position: absolute; left: 50%; bottom: 26px; width: 230px; height: 44px; margin-left: -115px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .6), transparent 70%); animation: mc-shadow 6s ease-in-out infinite; }
@keyframes mc-shadow { 50% { transform: scale(.82); opacity: .6; } }
.mc-orb { position: absolute; width: 9px; height: 9px; background: #b7ff5a; box-shadow: 0 0 12px 3px rgba(183, 255, 90, .6); opacity: 0; animation: mc-orb 4s ease-in-out infinite; }
@keyframes mc-orb { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-130px) scale(1); } }

/* ---------- Секции ---------- */
.mc-sec { position: relative; padding: 110px 0; }
.mc-sec h2 { margin: 0 0 16px; }
.mc-sec__intro { color: var(--bone-2); max-width: 58ch; line-height: 1.65; margin: 0 0 46px; font-size: 1.05rem; }

[data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* Карти с 3D наклон и прожектор под мишката */
.mc-tilt { position: relative; transform-style: preserve-3d; transition: transform .7s var(--ease), border-color .4s, box-shadow .7s var(--ease); }
.mc-tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .09), transparent 45%); }
.mc-tilt:hover::before { opacity: 1; }
[data-reveal].mc-tilt { transition: opacity .9s var(--ease), transform .7s var(--ease), border-color .4s, box-shadow .7s var(--ease); }

.mc-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mc-feat { padding: 28px 24px; border-radius: 22px; background: linear-gradient(180deg, rgba(39, 43, 85, .6), rgba(18, 21, 48, .6)); border: 1px solid rgba(255, 255, 255, .08); }
.mc-feat:hover { border-color: rgba(255, 194, 61, .35); box-shadow: 0 30px 60px -30px rgba(255, 194, 61, .35); }
.mc-feat svg { width: 48px; height: 48px; margin-bottom: 22px; transform: translateZ(30px); shape-rendering: crispEdges; }
.mc-feat b { display: block; font: 400 2rem/1 var(--display); color: #fff; margin-bottom: 10px; transform: translateZ(24px); }
.mc-feat span { color: var(--bone-2); line-height: 1.5; font-size: .95rem; }

/* Стъпки: линията се рисува при скрол */
.mc-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; list-style: none; margin: 0; padding: 0; }
.mc-steps__line { position: absolute; left: 32px; right: 0; top: 30px; height: 4px; background: rgba(255, 255, 255, .07); border-radius: 2px; overflow: hidden; }
.mc-steps__line i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--dragon), var(--gold)); }
.mc-step { position: relative; padding-top: 88px; color: var(--bone-2); line-height: 1.65; }
.mc-step__n { position: absolute; top: 0; left: 0; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--n-800);
  border: 2px solid var(--n-600); font: 400 1.1rem/1 var(--pixel); color: var(--bone-3); transition: background .6s var(--ease), color .6s, border-color .6s, transform .6s var(--ease), box-shadow .6s; }
.mc-step.lit .mc-step__n { background: linear-gradient(135deg, var(--dragon-hi), var(--dragon-lo)); border-color: transparent; color: #fff; transform: rotate(-6deg) scale(1.06); box-shadow: 0 14px 30px -10px rgba(224, 38, 45, .7); }
.mc-step h3 { color: #fff; font-size: 1.2rem; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.mc-step code { background: rgba(0, 0, 0, .35) !important; border: 1px solid rgba(255, 255, 255, .1) !important; border-radius: 7px; padding: 2px 7px; color: var(--gold); font-size: .86em; white-space: nowrap; }
.mc-edition { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); margin-bottom: 50px; }
.mc-edition span { padding: 9px 16px; border-radius: 10px; font-weight: 500; font-size: .9rem; color: var(--bone-3); }
.mc-edition span.on { background: rgba(255, 255, 255, .12); color: #fff; }

.mc-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.mc-pay { display: grid; gap: 12px; }
.mc-pay__item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.mc-pay__item:hover { border-color: rgba(255, 255, 255, .18); }
.mc-pay__item .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 194, 61, .1); color: var(--gold); }
.mc-pay__item .ic svg { width: 24px; height: 24px; }
.mc-pay__item b { display: block; color: #fff; margin-bottom: 2px; }
.mc-pay__item span { color: var(--bone-3); font-size: .92rem; line-height: 1.45; }
.mc-note { margin-top: 18px; color: var(--bone-3); font-size: .9rem; line-height: 1.55; }

.mc-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.mc-app { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); min-height: 190px; }
.mc-app.open { background: linear-gradient(160deg, rgba(62, 226, 138, .1), rgba(255, 255, 255, .03) 55%); border-color: rgba(62, 226, 138, .35); }
.mc-app__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mc-app__top b { font: 400 1.2rem/1.1 var(--display); color: #fff; }
.mc-tag { padding: 5px 10px; border-radius: 8px; font-size: .78rem; font-weight: 700; }
.mc-tag.open { background: rgba(62, 226, 138, .16); color: var(--emerald); }
.mc-tag.closed { background: rgba(255, 255, 255, .06); color: var(--bone-3); }
.mc-app p { margin: 0; color: var(--bone-3); font-size: .93rem; line-height: 1.5; flex: 1; }
.mc-app .mc-btn { align-self: flex-start; }
.mc-app .muted { color: var(--bone-3); font-size: .9rem; }

.mc-faq { display: grid; gap: 10px; }
.mc-faq details { border-radius: 18px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); transition: background .4s, border-color .4s; }
.mc-faq details[open] { background: rgba(255, 255, 255, .06); border-color: rgba(255, 194, 61, .3); }
.mc-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 500; font-size: 1.05rem; color: #fff; }
.mc-faq summary::-webkit-details-marker { display: none; }
.mc-faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 10px; background:
  linear-gradient(var(--gold), var(--gold)) center / 12px 2px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 2px 12px no-repeat, rgba(255, 194, 61, .1);
  transition: transform .5s var(--ease); }
.mc-faq details[open] summary::after { transform: rotate(135deg); }
.mc-faq .a { overflow: hidden; }
.mc-faq .a p { margin: 0; padding: 0 22px 22px; color: var(--bone-2); line-height: 1.7; max-width: 72ch; }

.mc-band { position: relative; overflow: hidden; margin: 0 0 110px; padding: 54px; border-radius: 30px; background: linear-gradient(120deg, #5865f2, #3a3fc0 60%, #2a2a8f);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.mc-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.mc-band > :not(canvas) { position: relative; }
html body .mc-band h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.mc-band p { margin: 0; color: #e3e5ff; max-width: 52ch; line-height: 1.6; }
.mc-band .mc-btn { --b1: #fff; --b2: #eef0ff; --sh: #1d2275; --fg: #2b318f; }

/* ---------- Долна част ---------- */
.mc-foot { position: relative; border-top: 1px solid rgba(255, 255, 255, .07); background: linear-gradient(180deg, rgba(18, 21, 48, .5), var(--n-950)); padding: 56px 0 30px; color: var(--bone-3); font-size: .9rem; }
.mc-foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.mc-foot__social { display: flex; gap: 8px; }
.mc-foot__social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; color: var(--bone-2); background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07); transition: background .3s, color .3s, transform .45s var(--ease); }
.mc-foot__social a:hover { color: #fff; background: var(--dragon); transform: translateY(-4px) rotate(-6deg); }
.mc-foot__social svg { width: 19px; height: 19px; }
.mc-foot__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.mc-foot a.l { color: var(--bone-2); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .3s; }
.mc-foot a.l:hover { color: #fff; background-size: 100% 1px; }
.mc-foot__bottom { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.mc-toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 30px) scale(.96); opacity: 0; pointer-events: none; padding: 14px 20px; border-radius: 16px;
  background: rgba(26, 30, 64, .95); backdrop-filter: blur(12px); border: 1px solid rgba(62, 226, 138, .4); color: #fff; font-weight: 500; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8);
  transition: transform .5s var(--ease), opacity .35s; display: flex; gap: 12px; align-items: center; }
.mc-toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.mc-toast::before { content: ""; width: 12px; height: 12px; background: var(--emerald); box-shadow: 3px 3px 0 #1a8f53; }

@media (max-width: 1000px) {
  .mc-hero__grid, .mc-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  /* На тесен екран хълмовете са само в долната част, под бутоните. */
  .mc-hills { top: auto; height: 300px; }
  .mc-hero { padding-bottom: 230px; }
  .mc-block-scene { height: 330px; order: -1; }
  .mc-cube { --s: 140px; }
  .mc-dragon { width: 100px; margin-left: -50px; top: -124px; }
  .mc-feats { grid-template-columns: repeat(2, 1fr); }
  .mc-steps { grid-template-columns: 1fr; gap: 40px; }
  .mc-steps__line { display: none; }
}
@media (max-width: 560px) {
  .mc-hero { padding: 90px 0 150px; }
  .mc-block-scene { height: 250px; }
  .mc-cube { --s: 108px; }
  .mc-dragon { width: 80px; margin-left: -40px; top: -98px; }
  .mc-shadow { width: 150px; margin-left: -75px; bottom: 10px; }
  .mc-feats { grid-template-columns: 1fr; }
  .mc-hero__cta .mc-btn { flex: 1 1 100%; white-space: normal; }
  .mc-band { padding: 30px 24px; }
  .mc-sec { padding: 80px 0; }
  .mc-moon { width: 40px; height: 40px; top: 96px; left: 8%; right: auto; }
  .mc-moon::after { left: 10px; top: 9px; width: 8px; height: 8px; box-shadow: 14px 12px 0 1px #e2dbb8; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], .mc-fade { opacity: 1; transform: none; }
  .mc-hero h1 .ln > span { transform: none; }
  html { scroll-behavior: auto; }
}
.mc-btn .label { white-space: nowrap; }
/* Размазването зад елементи (Tailwind backdrop-blur-*) по старите страници: скъпо при скрол, без него. */
html body [class*="backdrop-blur"] { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* ================= Вътрешни страници ================= */
/* Заглавна лента: нощно небе + хълмове, под прозрачната горна лента */
.mc-phero { position: relative; overflow: hidden; padding: 150px 0 120px; text-align: center;
  background: linear-gradient(180deg, #070918 0%, #12133a 55%, #2b1a4f 100%); }
.mc-phero .mc-hills { top: auto; height: 150px; }
.mc-phero__in { position: relative; z-index: 2; }
html body .mc-phero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.02; margin: 0 auto 14px; max-width: 18ch; }
.mc-phero p { margin: 0 auto; max-width: 60ch; color: var(--bone-2); font-size: 1.08rem; line-height: 1.6; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; }
.ln > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.mc-ready .ln > span { transform: none; }
/* Съдържанието се „качва“ малко върху тревата на лентата */
.mc-phero + * { position: relative; z-index: 3; }

/* Цяла нощна сцена отзад (вход, регистрация, 404, ремонт) */
.mc-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, #070918 0%, #12133a 50%, #2b1a4f 80%, #4a2350 100%); }
.mc-scene .mc-hills { top: auto; height: 34vh; min-height: 200px; }
.mc-scene .mc-moon { top: 12%; right: 12%; left: auto; }
body.mc-scened > :is(main, footer, section, form, div:not(.mc-scene):not(.mc-sheet):not(#mcLoader):not(.mc-toast):not(.fixed):not([id$="Modal"])) { position: relative; z-index: 1; }
body.mc-scened .mc-nav { position: sticky; z-index: 100; }

/* ---------- Старите компоненти в новия стил (без промяна на логиката) ---------- */
/* Карти */
html body main .glass, html body .mc-card { border-radius: 22px; border: 1px solid rgba(255, 255, 255, .08) !important;
  background: linear-gradient(180deg, rgba(39, 43, 85, .6), rgba(18, 21, 48, .78)); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9); }
html body main .glass:hover { border-color: rgba(255, 255, 255, .14) !important; }
/* Основни бутони (син → драконово червено), с „натискане“ като в играта */
html body :is(a, button).bg-blue-600, html body :is(a, button).bg-blue-500, html body :is(a, button).bg-indigo-600,
html body :is(a, button)[class*="from-blue-5"], html body :is(a, button)[class*="from-blue-6"] {
  background: linear-gradient(180deg, var(--dragon-hi), var(--dragon)) !important; color: #fff;
  box-shadow: 0 4px 0 var(--dragon-lo), 0 14px 26px -14px var(--dragon) !important; border-radius: 12px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s !important; }
html body :is(a, button).bg-emerald-600, html body :is(a, button).bg-emerald-500 {
  background: linear-gradient(180deg, #4fe89a, #22b86a) !important; color: #06281a; box-shadow: 0 4px 0 #136b40, 0 14px 26px -14px #22b86a !important; border-radius: 12px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s !important; }
html body :is(a, button):is(.bg-blue-600, .bg-blue-500, .bg-indigo-600, .bg-emerald-600, .bg-emerald-500, [class*="from-blue-5"], [class*="from-blue-6"]):not(:disabled):hover { filter: brightness(1.08); transform: translateY(-1px); }
html body :is(a, button):is(.bg-blue-600, .bg-blue-500, .bg-indigo-600, [class*="from-blue-5"], [class*="from-blue-6"]):not(:disabled):active { transform: translateY(3px) !important; box-shadow: 0 1px 0 var(--dragon-lo) !important; }
html body :is(a, button):is(.bg-emerald-600, .bg-emerald-500):not(:disabled):active { transform: translateY(3px) !important; box-shadow: 0 1px 0 #136b40 !important; }
/* Полета */
html body main :is(input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input:not([type]), textarea, select) {
  background-color: rgba(11, 13, 28, .55) !important; border: 1px solid rgba(255, 255, 255, .1) !important; border-radius: 12px; color: var(--bone);
  transition: border-color .3s, box-shadow .3s, background-color .3s; }
html body main :is(input, textarea, select):focus { outline: none; border-color: rgba(255, 194, 61, .6) !important; box-shadow: 0 0 0 4px rgba(255, 194, 61, .14) !important; background-color: rgba(11, 13, 28, .8) !important; }
html body main ::placeholder { color: rgba(201, 199, 220, .45); }
/* Таблици */
html body main table thead th { font-weight: 700; color: var(--bone-3); font-size: .8rem; text-transform: none; letter-spacing: 0; }
html body main table tbody tr { transition: background .25s; }
html body main table tbody tr:hover { background: rgba(255, 255, 255, .035); }
/* Стъпките/категориите в магазина */
html body .category-btn, html body [data-server-slug] { transition: transform .45s var(--ease), border-color .3s, background .3s, box-shadow .45s var(--ease) !important; }
html body .category-btn:hover, html body [data-server-slug]:hover { transform: translateY(-3px); }
html body .category-btn.active { background: linear-gradient(180deg, rgba(224, 38, 45, .3), rgba(224, 38, 45, .12)) !important; border-color: rgba(224, 38, 45, .6) !important; box-shadow: 0 14px 30px -16px rgba(224, 38, 45, .8); }
html body .product-card { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s !important; }
html body .product-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(255, 194, 61, .45) !important; border-color: rgba(255, 194, 61, .3) !important; }
/* Подзаглавия по страниците */
html body main h2.text-lg, html body main h2.text-xl { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
/* Модалите на старите страници: плавно отваряне */
html body .modal-bg { background: rgba(5, 6, 15, .75) !important; }

/* Текст на правилата и CMS страниците */
.mc-prose { color: var(--bone-2); line-height: 1.75; font-size: 1.02rem; }
.mc-prose :is(h2, h3) { color: #fff; font-family: var(--display); font-weight: 400; margin: 2em 0 .6em; line-height: 1.2; }
.mc-prose a { color: var(--gold); }

/* ---------- 404 и „в ремонт“ ---------- */
.mc-lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 22px 34vh; }
.mc-lost__code { font: 400 clamp(3.4rem, 14vw, 8rem)/1 var(--pixel); color: #fff; text-shadow: 6px 6px 0 var(--dragon-lo); letter-spacing: -.02em; display: inline-flex; }
.mc-lost__code span { display: inline-block; animation: mc-drift 5s ease-in-out infinite; }
.mc-lost__code span:nth-child(2) { animation-delay: -1.6s; color: var(--gold); text-shadow: 6px 6px 0 #8a5a08; }
.mc-lost__code span:nth-child(3) { animation-delay: -3.2s; }
@keyframes mc-drift { 50% { transform: translateY(-14px) rotate(-5deg); } }
html body .mc-lost h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 30px 0 14px; }
.mc-lost p { color: var(--bone-2); max-width: 52ch; margin: 0 auto 32px; line-height: 1.65; font-size: 1.08rem; }
.mc-lost__blocks { position: relative; height: 120px; margin-top: 24px; }
.mc-lost__blocks i { position: absolute; width: 34px; height: 34px; image-rendering: pixelated; background-size: cover; animation: mc-tumble 7s ease-in-out infinite; }
@keyframes mc-tumble { 50% { transform: translateY(-22px) rotate(160deg); } 100% { transform: translateY(0) rotate(360deg); } }
.mc-build { display: grid; grid-template-columns: repeat(5, 26px); gap: 3px; justify-content: center; margin: 0 auto 30px; }
.mc-build i { width: 26px; height: 26px; background: #6aab3c; box-shadow: inset 0 -6px 0 #7a5232; opacity: 0; transform: translateY(-30px); animation: mc-place 4.2s var(--ease) infinite; }
@keyframes mc-place { 0%, 8% { opacity: 0; transform: translateY(-30px); } 18%, 78% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }

@media (max-width: 640px) {
  .mc-phero { padding: 120px 0 100px; }
  .mc-phero .mc-hills { height: 110px; }
}
@media (max-width: 640px) { .mc-scene .mc-moon { display: none; } }

/* ================= Начало v3: измерения при скрол ================= */
/* Фиксиран фон с три слоя (Overworld → Nether → End); сменят се с плавно преливане (само opacity — евтино). */
.mc-world { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.mc-world__l { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s var(--ease-io), visibility 0s 1.4s; }
.mc-world__l canvas, .mc-world__p { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.mc-world__l[data-w="overworld"] { background: linear-gradient(180deg, #070918 0%, #12133a 55%, #1f1a48 100%); }
.mc-world__l[data-w="nether"] { background: linear-gradient(180deg, #160303 0%, #2c0707 40%, #4a0e0a 78%, #7a2309 100%); }
.mc-world__l[data-w="end"] { background: linear-gradient(180deg, #030207 0%, #0b0618 50%, #170c2c 100%); }
.mc-world__l .lava { position: absolute; left: 0; right: 0; bottom: 0; height: 38vh; background: radial-gradient(120% 100% at 50% 100%, rgba(255, 120, 20, .45), transparent 70%); animation: mc-lava 5s ease-in-out infinite; }
@keyframes mc-lava { 50% { opacity: .55; } }
html:not([data-biome]) .mc-world__l[data-w="overworld"], html[data-biome="overworld"] .mc-world__l[data-w="overworld"],
html[data-biome="nether"] .mc-world__l[data-w="nether"], html[data-biome="end"] .mc-world__l[data-w="end"] { opacity: 1; visibility: visible; transition: opacity 1.4s var(--ease-io), visibility 0s; }
/* Лавата пулсира само когато си в Nether */
.mc-world__l .lava { animation-play-state: paused; }
html[data-biome="nether"] .mc-world__l .lava { animation-play-state: running; }
body:has(.mc-world) :is(main, .mc-foot) { position: relative; z-index: 1; }
body:has(.mc-world) .mc-foot { background: linear-gradient(180deg, rgba(5, 4, 12, .5), #05040c); }
/* Акцентът следва измерението: злато → лава → лилаво от End */
html[data-biome="nether"] { --gold: #ff8a2a; }
html[data-biome="end"] { --gold: #d39bff; }
.mc-step.lit .mc-step__n, .mc-faq summary::after, .mc-feat, .mc-pay__item .ic { transition: background .8s var(--ease-io), color .8s, border-color .8s, box-shadow .8s, transform .6s var(--ease); }

/* Центрирано начало */
.mc-hero__center { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
html body .mc-hero__center h1 { font-size: clamp(2.3rem, 6vw, 5rem); margin: 38px 0 18px; }
.mc-hero__center .mc-hero__lead { margin: 0 auto 30px; text-align: center; }
.mc-hero__center .mc-hero__cta { justify-content: center; }
.mc-hero__center .mc-block-scene { height: 300px; margin-top: 18px; }
.mc-hero__center .mc-cube { --s: 140px; }
.mc-hero__center .mc-dragon { width: 104px; margin-left: -52px; top: -124px; }
.mc-hero__center .mc-shadow { bottom: 6px; width: 180px; margin-left: -90px; }
.mc-hero__center .mc-status { margin: 14px 0 0; }
.mc-hero:has(.mc-hero__center) { padding: 120px 0 120px; align-items: flex-start; }

/* Големият бутон за IP: най-важното действие на страницата */
.mc-ipwrap { display: flex; flex-direction: column; align-items: center; width: 100%; }
.mc-ipbtn { position: relative; display: flex; align-items: stretch; min-height: 78px; padding: 0; border: 0; border-radius: 20px; cursor: pointer; overflow: visible;
  background: #0b0d20; color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .14), 0 8px 0 #04050d, 0 34px 70px -22px rgba(224, 38, 45, .65);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); -webkit-tap-highlight-color: transparent; }
.mc-ipbtn:hover { transform: translateY(-3px); box-shadow: 0 0 0 3px rgba(255, 194, 61, .55), 0 11px 0 #04050d, 0 40px 80px -22px rgba(224, 38, 45, .8); }
.mc-ipbtn:active { transform: translateY(6px); box-shadow: 0 0 0 3px rgba(255, 194, 61, .55), 0 2px 0 #04050d, 0 16px 30px -18px rgba(224, 38, 45, .7); transition-duration: .08s; }
.mc-ipbtn__ip { display: flex; align-items: center; padding: 0 28px; border-radius: 20px 0 0 20px; font: 400 clamp(.95rem, 2.4vw, 1.55rem)/1.2 var(--pixel); letter-spacing: .02em;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, .025) 22px 23px), #0b0d20; user-select: all; }
.mc-ipbtn__act { display: flex; align-items: center; gap: 10px; padding: 0 26px; border-radius: 0 20px 20px 0; font: 700 1.08rem/1 var(--body); white-space: nowrap;
  background: linear-gradient(180deg, var(--dragon-hi), var(--dragon)); transition: background .45s var(--ease), color .45s; }
.mc-ipbtn__act svg { width: 22px; height: 22px; }
.mc-ipbtn .i-ok { display: none; }
.mc-ipbtn.ok .mc-ipbtn__act { background: linear-gradient(180deg, #5af0a4, #22b86a); color: #04261a; }
.mc-ipbtn.ok .i-ok { display: block; animation: mc-pop .5s var(--ease); }
.mc-ipbtn.ok .i-copy { display: none; }
@keyframes mc-pop { 0% { transform: scale(.3) rotate(-30deg); } 70% { transform: scale(1.25); } }
/* Еднократен „пулс“, който насочва погледа към бутона след зареждане */
.mc-ipbtn::after { content: ""; position: absolute; inset: -3px; border-radius: 22px; pointer-events: none; box-shadow: 0 0 0 0 rgba(255, 194, 61, .55); }
.mc-ready .mc-ipbtn::after { animation: mc-ring 1.6s .9s var(--ease) 2; }
@keyframes mc-ring { to { box-shadow: 0 0 0 22px rgba(255, 194, 61, 0); } }
.mc-ipwrap__hint { margin: 14px 0 0; color: var(--bone-3); font-size: .9rem; }
/* Блокчета, които изскачат при копиране */
.mc-burst { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; pointer-events: none; z-index: 5; animation: mc-burst .8s var(--ease) forwards; }
@keyframes mc-burst { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(.4); opacity: 0; } }

/* Портал между измеренията */
.mc-portal { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; padding: 40px 0 10px; }
.mc-portal__gate { position: relative; width: 112px; height: 156px; box-shadow: 0 0 60px 10px rgba(150, 60, 255, .25); }
.mc-portal--nether .mc-portal__gate { border: 14px solid #150b22; outline: 3px solid #2a1a40; background: linear-gradient(135deg, #7d2bd9, #b44dff 30%, #6a1fc2 55%, #c06bff 80%, #7d2bd9); background-size: 300% 300%; animation: mc-swirl 4s linear infinite; }
.mc-portal--end .mc-portal__gate { width: 156px; height: 156px; border: 14px solid #3c5a46; outline: 3px solid #d9d79e; box-shadow: 0 0 60px 10px rgba(80, 255, 170, .15);
  background: radial-gradient(#ffffff 1px, transparent 1.5px) 0 0 / 14px 14px, radial-gradient(#7af0ff 1px, transparent 1.5px) 7px 7px / 18px 18px, #04030c; animation: mc-starfield 9s linear infinite; }
.mc-portal--end .mc-portal__gate::before { content: ""; position: absolute; inset: -14px; background:
  radial-gradient(circle, #3dff9e 0 3px, transparent 4px) 50% 0 / 30px 14px no-repeat, radial-gradient(circle, #3dff9e 0 3px, transparent 4px) 50% 100% / 30px 14px no-repeat,
  radial-gradient(circle, #3dff9e 0 3px, transparent 4px) 0 50% / 14px 30px no-repeat, radial-gradient(circle, #3dff9e 0 3px, transparent 4px) 100% 50% / 14px 30px no-repeat; }
@keyframes mc-swirl { to { background-position: 300% 300%; } }
@keyframes mc-starfield { to { background-position: 140px 140px, 147px 187px, 0 0; } }
.mc-portal__label { font: 400 .68rem/1.4 var(--pixel); color: var(--gold); letter-spacing: .04em; }

/* Индикатор: в кое измерение си (и бърз скок до него) */
.mc-dims { position: fixed; right: 22px; top: 50%; z-index: 60; display: flex; flex-direction: column; gap: 16px; transform: translateY(-50%); }
.mc-dims a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-decoration: none; color: var(--bone-2); flex-direction: row-reverse; }
.mc-dims i { width: 16px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); transition: transform .5s var(--ease), box-shadow .5s; image-rendering: pixelated; }
.mc-dims a[data-dim="overworld"] i { background: linear-gradient(#6aab3c 0 40%, #7a5232 40%); }
.mc-dims a[data-dim="nether"] i { background: repeating-linear-gradient(45deg, #6e2222 0 3px, #8a2f2f 3px 6px); }
.mc-dims a[data-dim="end"] i { background: repeating-linear-gradient(-45deg, #dcdca0 0 3px, #c4c48a 3px 6px); }
.mc-dims span { font: 400 .55rem/1 var(--pixel); opacity: 0; transform: translateX(8px); transition: opacity .35s, transform .45s var(--ease); white-space: nowrap; }
.mc-dims a:hover span, .mc-dims a:focus-visible span, .mc-dims a[aria-current="true"] span { opacity: 1; transform: none; }
.mc-dims a[aria-current="true"] i { transform: scale(1.5); box-shadow: 0 0 0 2px #fff, 0 0 18px 3px var(--gold); }

/* Плаващ бутон за IP: основното действие винаги е под ръка, след като началото излезе от екрана */
.mc-stickyip { position: fixed; left: 50%; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border: 0; border-radius: 16px; cursor: pointer;
  background: rgba(11, 13, 32, .96); color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 18px 40px -12px rgba(0, 0, 0, .8);
  transform: translate(-50%, 160%); transition: transform .6s var(--ease); }
.mc-stickyip.show { transform: translate(-50%, 0); }
.mc-stickyip .label { padding: 10px 14px; border-radius: 11px; background: linear-gradient(180deg, var(--dragon-hi), var(--dragon)); font: 700 .9rem/1 var(--body); transition: background .4s; }
.mc-stickyip.ok .label { background: linear-gradient(180deg, #5af0a4, #22b86a); color: #04261a; }
.mc-stickyip .mc-ip { font-size: .7rem; }

@media (max-width: 1360px) { .mc-dims { display: none; } }
@media (max-width: 640px) {
  .mc-hero:has(.mc-hero__center) { padding: 96px 0 110px; }
  .mc-ipbtn { flex-direction: column; width: 100%; min-height: 0; border-radius: 18px; }
  .mc-ipbtn__ip { justify-content: center; padding: 20px 14px; border-radius: 18px 18px 0 0; font-size: .95rem; }
  .mc-ipbtn__act { justify-content: center; padding: 16px; border-radius: 0 0 18px 18px; }
  html body .mc-hero__center h1 { margin-top: 28px; }
  .mc-hero__center .mc-block-scene { height: 230px; }
  .mc-hero__center .mc-cube { --s: 104px; }
  .mc-hero__center .mc-dragon { width: 78px; margin-left: -39px; top: -92px; }
  .mc-stickyip { left: 12px; right: 12px; transform: translateY(160%); justify-content: space-between; }
  .mc-stickyip.show { transform: none; }
  .mc-portal__gate { transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) { .mc-world__l { transition: none; } }
/* v3 поправки: блокът е декор вдясно (не бута съдържанието), карти по-плътни над фона на измеренията, индикатор без застъпване */
.mc-hero__center .mc-block-scene { position: absolute; right: -2%; top: 44%; margin: 0; height: 300px; width: 260px; }
.mc-hero:has(.mc-hero__center) .mc-moon { right: auto; left: 7%; }
@media (max-width: 1180px) { .mc-hero__center .mc-block-scene { display: none; } }
body:has(.mc-world) :is(.mc-feat, .mc-app, .mc-pay__item, .mc-faq details) { background: rgba(9, 9, 22, .78); }
body:has(.mc-world) .mc-step { background: rgba(9, 9, 22, .6); border-radius: 20px; padding: 88px 22px 24px; }
body:has(.mc-world) .mc-step__n { top: 14px; left: 22px; }
body:has(.mc-world) .mc-steps__line { top: 44px; left: 54px; }
.mc-dims { padding: 12px 8px; border-radius: 14px; background: rgba(5, 6, 15, .55); }
.mc-dims a[aria-current="true"] span { opacity: 0; transform: translateX(8px); }
.mc-dims a:hover span, .mc-dims a:focus-visible span { opacity: 1; transform: none; }
.mc-dims span { position: absolute; right: 44px; padding: 7px 9px; border-radius: 8px; background: rgba(5, 6, 15, .9); }
.mc-dims a { position: relative; }
.mc-world__l { will-change: opacity; }
html.mc-lite .mc-world__l .lava, html.mc-lite .mc-orb { animation: none; }
html.mc-lite .mc-world__p { display: none; }
/* Скок до секция (менюто, „Как да вляза“, индикатора): заглавието не се крие под горната лента */
[id] { scroll-margin-top: 90px; }
