/* Minecraft character renders worked into the free and game server pages.
   Every skin appears in exactly one image. The renders melt into the page:
   brand-coloured glow behind them, bases dissolving into the background,
   contact shadows where they touch a card, and (where supported) a soft
   entrance and exit tied to scrolling. */

/* ---------- hero dioramas ---------- */
.mc-hero { position: relative; isolation: isolate; width: 100%; display: flex; justify-content: center; margin: 6px 0 clamp(36px, 6vw, 90px); }
.mc-hero::before {                                /* light the scene from behind in the site's accents */
  content: ''; position: absolute; z-index: -1; left: 50%; top: 4%; width: min(1000px, 110%); height: 86%; translate: -50% 0;
  background:
    radial-gradient(42% 46% at 50% 52%, rgba(139, 92, 246, 0.32), transparent 70%),
    radial-gradient(60% 40% at 30% 70%, rgba(34, 211, 238, 0.14), transparent 70%),
    radial-gradient(60% 40% at 72% 66%, rgba(59, 130, 246, 0.16), transparent 70%);
  filter: blur(26px);
}
.mc-hero::after {                                 /* a pool of light the island floats over */
  content: ''; position: absolute; z-index: -1; left: 50%; bottom: 2%; width: min(760px, 86%); height: 70px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.42), rgba(59, 130, 246, 0.12) 55%, transparent);
  filter: blur(14px);
}
.mc-hero img {
  width: min(880px, 100%); height: auto;
  filter: drop-shadow(0 30px 40px rgba(6, 6, 6, 0.85));
  -webkit-mask-image: linear-gradient(#000 58%, rgba(0, 0, 0, 0.55) 80%, transparent 99%), linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(#000 58%, rgba(0, 0, 0, 0.55) 80%, transparent 99%), linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  animation: mc-bob 7s ease-in-out infinite;
}
@keyframes mc-bob { 50% { transform: translateY(-9px); } }

/* ---------- shared look for the single characters ---------- */
.mc-fig, .mc-sign, .mc-bouncer, .mc-peek { position: relative; isolation: isolate; }
.mc-fig::before, .mc-sign::before, .mc-bouncer::before {
  content: ''; position: absolute; z-index: -1; inset: 6% -18% 4%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.36), rgba(59, 130, 246, 0.14) 55%, transparent);
  filter: blur(16px);
}
/* they stand on nothing: a soft contact shadow under the feet grounds them */
.mc-fig::after, .mc-bouncer::after {
  content: ''; position: absolute; z-index: -1; left: 12%; right: 12%; bottom: -10px; height: 24px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), rgba(139, 92, 246, 0.16) 60%, transparent);
  filter: blur(3px);
}

/* sign held up on top of the "what you get" cells, the page writes the price onto it */
.mc-cells { position: relative; }
.mc-sign { position: absolute; right: 3%; bottom: calc(100% - 3px); width: clamp(128px, 11vw, 156px); margin: 0; z-index: 1; pointer-events: none; }
.mc-sign img { width: 100%; height: auto; display: block; }
.mc-sign::after {                                 /* where she stands on the card */
  content: ''; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: 10px; height: 26px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.5), transparent);
  filter: blur(6px);
}
/* the sign text is painted into the render, one image per language;
   hidden images with loading=lazy are never fetched */
.mc-sign img:not([data-sign-lang="en"]) { display: none; }
html[lang="de"] .mc-sign img[data-sign-lang="en"], html[lang="fr"] .mc-sign img[data-sign-lang="en"], html[lang="es"] .mc-sign img[data-sign-lang="en"] { display: none; }
html[lang="de"] .mc-sign img[data-sign-lang="de"], html[lang="fr"] .mc-sign img[data-sign-lang="fr"], html[lang="es"] .mc-sign img[data-sign-lang="es"] { display: block; }
.cells > .mc-sign, .cells > .mc-sign:hover { background: none; border: 0; padding: 0; box-shadow: none; min-height: 0; overflow: visible; }
@media (max-width: 1000px) {
  .mc-sign { position: relative; right: auto; bottom: auto; margin: 0 auto 8px; grid-column: 1 / -1; width: 140px; }
}

/* closing call to action: the player points at the button. The fingertip sits
   at 0.426 x the image width from its top, the button is centred on it. */
.mc-point-cta { --mc-pw: clamp(118px, 15vw, 200px); display: flex; align-items: flex-start; justify-content: center; gap: clamp(4px, 1.2vw, 14px); }
.mc-point-cta .mc-fig { display: block; width: var(--mc-pw); }
.mc-point-cta img { width: 100%; height: auto; display: block; }
.mc-point-cta .btn { margin-top: calc(var(--mc-pw) * 0.426 - 26px); }

/* game server plans: a player leans on the most popular card */
.plans.mc-has-peek { margin-top: clamp(140px, 15vw, 180px); }
.mc-peek { position: absolute; left: 50%; bottom: calc(100% - 1px); width: min(74%, 236px); translate: -50% 0; pointer-events: none; margin: 0; z-index: 1; }
.mc-peek img { width: 100%; height: auto; display: block; }
.mc-peek::before {                                /* the card's own cyan-blue-violet light behind his head */
  content: ''; position: absolute; z-index: -1; inset: 0 -10% 10%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.34), rgba(34, 211, 238, 0.12) 55%, transparent);
  filter: blur(18px);
}
.mc-peek::after {                                 /* his fists rest on the edge */
  content: ''; position: absolute; left: 4%; right: 4%; top: 100%; height: 22px; margin-top: -2px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(0, 0, 0, 0.55), transparent 70%);
}
@media (max-width: 900px) {
  .plans.mc-has-peek { margin-top: 0; }
  .plan.mc-peeked { margin-top: 170px; }
}

/* what every server includes: the bouncer stops DDoS blocks above the list */
.pp-spec.mc-spec { display: flex; flex-direction: column; }
.mc-bouncer { order: -1; margin: 64px auto clamp(30px, 4vw, 48px); width: min(600px, 100%); }
.mc-bouncer img { width: 100%; height: auto; display: block; }
.mc-bouncer::after { left: 1%; right: 76%; bottom: -6px; }
.mc-bubble {
  position: absolute; bottom: calc(100% + 10px); left: 4%; width: max-content; max-width: 230px; text-wrap: balance;
  padding: 10px 14px; border-radius: 14px; border: 1px solid transparent;
  background:
    linear-gradient(var(--panel-2), var(--panel-2)) padding-box,
    linear-gradient(160deg, rgba(34, 211, 238, 0.55), rgba(59, 130, 246, 0.7) 40%, rgba(139, 92, 246, 0.35)) border-box;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.12);
  font-size: 14px; line-height: 1.35; color: var(--ink); text-align: left;
}
.mc-bubble::after {
  content: ''; position: absolute; left: 44px; top: 100%; width: 12px; height: 12px; margin-top: -6px;
  background: var(--panel-2); border-right: 1px solid rgba(139, 92, 246, 0.45); border-bottom: 1px solid rgba(139, 92, 246, 0.45); transform: rotate(45deg);
}
@media (max-width: 600px) { .mc-bubble { left: 2%; max-width: 190px; font-size: 13px; } }

/* ---------- scroll: characters ease in, the hero drifts away ---------- */
@supports (animation-timeline: view()) {
  .mc-fig, .mc-sign, .mc-bouncer, .mc-peek {
    animation: mc-in linear both; animation-timeline: view(); animation-range: entry 0% cover 28%;
  }
  .mc-hero { animation: mc-out linear both; animation-timeline: view(); animation-range: exit 5% exit 95%; }
}
@keyframes mc-in {
  from { opacity: 0; transform: translateY(34px) scale(0.94); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes mc-out {
  to { opacity: 0; transform: translateY(-46px) scale(0.96); filter: blur(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .mc-hero img { animation: none; }
  .mc-fig, .mc-sign, .mc-bouncer, .mc-peek, .mc-hero { animation: none; }
}

/* the glows may spill vertically, never sideways (phones would scroll) */
.mc-hero, .pp-spec.mc-spec, .mc-cells, .mc-point-cta { overflow-x: clip; overflow-clip-margin: 0; }
