/* INKARIUS — раздел Майнкрафта (VexVol). Своё оформление: «пустота» — тёмно-фиолетовый, блоки, частицы.
   Не зависит от стилей CS2-части: свои токены, своя сетка. */
@font-face { font-family: "InkBrand"; src: url("fonts/inter-display-black-italic.woff") format("woff"); font-weight: 900; font-style: italic; font-display: swap; }
:root {
  --bg: #0b0716; --bg-2: #120b22; --panel: #160e2a; --panel-2: #1d1336; --line: #2a1f45; --line-2: #3a2c5e;
  --text: #f4f0ff; --text-2: #c5bbe0; --muted: #8f84ad;
  --accent: #a855f7; --accent-hi: #c084fc; --a-rgb: 168, 85, 247;
  --grass: #5fc152; --gold: #facc15;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 16px/1.55 Onest, Inter, system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--text); margin: 0; line-height: 1.1; }
p { margin: 0; }
::selection { background: rgba(var(--a-rgb), .45); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.mwrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 99; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; }
.skip:focus { left: 8px; }

/* кнопки — «блочные»: прямые углы и тень снизу, как у кнопок в игре */
.mbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--accent); color: #fff; font: 800 15px Onest, sans-serif; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .06); transition: background .15s, transform .1s, box-shadow .2s; }
.mbtn:hover { background: var(--accent-hi); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .28), 0 8px 30px rgba(var(--a-rgb), .45); }
.mbtn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .28); }
.mbtn-lg { min-height: 56px; padding: 0 30px; font-size: 18px; }
.mbtn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.mbtn-ghost { background: var(--panel-2); color: var(--text); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 0 0 1px var(--line-2); }
.mbtn-ghost:hover { background: #271b47; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 0 0 1px var(--accent); }

/* шапка */
.mtop { position: sticky; top: 0; z-index: 20; background: rgba(11, 7, 22, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.mtop-in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.mback { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); }
.mback span { font: italic 900 18px "InkBrand", Onest, sans-serif; }
.mback:hover { color: var(--text); }
.msep { color: var(--line-2); font-size: 22px; }
.mbrand { color: var(--text); font: 900 20px Onest, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.mnav { display: flex; gap: 20px; margin-left: 18px; }
.mnav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.mnav a:hover { color: #fff; }
.mtop .mbtn { margin-left: auto; }

/* первый экран */
.mhero { position: relative; overflow: hidden; isolation: isolate; padding: 80px 0 90px;
  background: radial-gradient(ellipse at 75% 40%, rgba(var(--a-rgb), .22), transparent 55%), radial-gradient(ellipse at 10% 100%, rgba(95, 193, 82, .08), transparent 50%); }
.mhero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.mstars { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(2px 2px at 12% 20%, #d8b4fe, transparent), radial-gradient(2px 2px at 30% 70%, #a78bfa, transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, #fff, transparent), radial-gradient(2px 2px at 80% 80%, #c084fc, transparent), radial-gradient(1.5px 1.5px at 92% 30%, #fff, transparent);
  animation: mTwinkle 6s ease-in-out infinite alternate; }
@keyframes mTwinkle { from { opacity: .4; } to { opacity: 1; } }
.mhero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.mstatus { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 4px; background: rgba(22, 14, 42, .85); border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 14px; }
.mstatus .dot { width: 9px; height: 9px; background: var(--muted); }
.mstatus.on .dot { background: var(--grass); box-shadow: 0 0 0 0 rgba(95, 193, 82, .6); animation: mPing 1.8s infinite; }
.mstatus.off .dot { background: #ef4444; }
@keyframes mPing { 70% { box-shadow: 0 0 0 9px rgba(95, 193, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 193, 82, 0); } }
.mtitle { margin-top: 18px; font: 900 clamp(56px, 9vw, 112px)/.95 Onest, sans-serif; letter-spacing: -.02em; text-transform: uppercase; color: #fff;
  text-shadow: 0 6px 0 #3b1d6e, 0 12px 40px rgba(var(--a-rgb), .45); }
.mtag { margin-top: 14px; color: var(--accent-hi); font-weight: 700; font-size: 18px; }
.mlead { margin-top: 14px; max-width: 540px; font-size: 18px; color: var(--text-2); }
.mcta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.mfacts { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mfacts li { display: flex; flex-direction: column; min-width: 120px; padding: 12px 16px; border-radius: 4px; background: rgba(22, 14, 42, .85); border: 1px solid var(--line-2); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); }
.mfacts b { color: #fff; font-size: 24px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.mfacts li:first-child b { color: var(--grass); }
.mfacts span { font-size: 13px; color: var(--muted); }

.mart { position: relative; }
.miso { width: 100%; max-width: 440px; margin: 0 auto; display: block; overflow: visible; }
.mb { transform-box: fill-box; transform-origin: center; }
.mb-main { animation: mFloat 6s ease-in-out infinite; }
.mb-a { animation: mFloat 5s ease-in-out -1s infinite; }
.mb-b { animation: mFloat 7s ease-in-out -3s infinite; }
.mb-c { animation: mFloat 4.5s ease-in-out -2s infinite; }
.mb-portal { animation: mFloat 8s ease-in-out -4s infinite; }
.mportal { animation: mPortal 3s ease-in-out infinite alternate; }
.mpx rect { animation: mRise 5s linear infinite; }
.mpx rect:nth-child(2) { animation-delay: -1s; } .mpx rect:nth-child(3) { animation-delay: -2.2s; } .mpx rect:nth-child(4) { animation-delay: -3.1s; } .mpx rect:nth-child(5) { animation-delay: -4s; }
@keyframes mFloat { 50% { transform: translateY(-12px); } }
@keyframes mPortal { from { opacity: .75; } to { opacity: 1; filter: brightness(1.25); } }
@keyframes mRise { from { transform: translateY(20px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-40px); opacity: 0; } }

/* секции */
.msec { padding: 72px 0; border-top: 1px solid var(--line); }
.msec h2 { font: 900 clamp(28px, 3.6vw, 42px)/1.1 Onest, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.mfeat { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mfeat article { padding: 22px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); transition: border-color .2s, transform .25s; }
.mfeat article:hover { border-color: rgba(var(--a-rgb), .55); transform: translateY(-3px); }
.mico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 4px; background: rgba(var(--a-rgb), .14); border: 1px solid rgba(var(--a-rgb), .35); color: var(--accent-hi); }
.mico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mfeat h3 { margin-top: 14px; font-size: 19px; font-weight: 800; }
.mfeat p { margin-top: 8px; font-size: 15px; }

.msteps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: s; }
.msteps li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
.mn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 4px; background: var(--grass); color: #0d2a0a; font-weight: 900; font-size: 18px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); }
.msteps p { color: var(--text); font-weight: 600; padding-top: 8px; }
.mnote { margin-top: 18px; font-size: 16px; }
.mnote b { color: #fff; font-family: ui-monospace, Menlo, monospace; }

.mplayers { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.mp { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px; }
.mp i { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 900; font-size: 13px; color: #fff;
  background: hsl(var(--h, 268), 55%, 42%); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); }
.mp-more { padding-left: 14px; color: var(--muted); }
.mmuted { color: var(--muted); }

.mfinal { text-align: center; background: radial-gradient(ellipse at 50% 120%, rgba(var(--a-rgb), .25), transparent 60%); }
.mfinal-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mfinal p { font-size: 18px; margin-bottom: 10px; }
.mfoot { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 13px; color: var(--muted); }
.mfoot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.mfoot a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.mfoot a:hover { color: #fff; }

@media (max-width: 960px) {
  .mfeat { grid-template-columns: repeat(2, 1fr); }
  .mnav { display: none; }
}
@media (max-width: 760px) {
  .mhero { padding: 40px 0 56px; }
  .mhero-in { grid-template-columns: 1fr; gap: 10px; }
  .mart { order: -1; max-width: 260px; margin: 0 auto; }
  .msec { padding: 52px 0; }
}
@media (max-width: 520px) {
  .mwrap { padding: 0 16px; }
  .mfeat { grid-template-columns: 1fr; }
  .mcta .mbtn { flex: 1 1 100%; }
  .mback span, .msep { display: none; }
  .mfacts li { flex: 1 1 90px; min-width: 0; }
  .mfacts b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mb, .mportal, .mpx rect, .mstars, .mstatus.on .dot { animation: none !important; }
  .mfeat article, .mbtn { transition: none; }
}
