/* SkyPact crystal glass v2. One continuous backdrop, clear lenses, lit rims. */
:root {
  --glass-surface: linear-gradient(145deg, rgba(240, 249, 255, .13), rgba(205, 233, 248, .035) 37%, rgba(9, 22, 35, .21) 73%, rgba(219, 242, 255, .055));
  --glass-edge: rgba(226, 245, 255, .34);
  --glass-shadow: inset 0 1px 1px rgba(255, 255, 255, .38), inset 0 -1px 1px rgba(223, 242, 255, .12), inset 1px 0 1px rgba(255, 255, 255, .13), 0 12px 32px rgba(0, 5, 15, .19);
}
body, body.bedrock-page {
  background-color: #061321;
  background-image: radial-gradient(ellipse at 88% 12%, rgba(48, 154, 211, .15), transparent 48%), radial-gradient(ellipse at 7% 58%, rgba(229, 162, 73, .065), transparent 42%);
  background-attachment: fixed;
}
/* Fade every hero layer to transparency, never to a different solid blue. */
.hero, .shop-hero, .bedrock-hero,
.quickbar-section, .server-status-section, .features, .hub-section,
.join-section, .votes-section, .shop-section, .rank-shop-section,
.bedrock-guide, .console-guide { background: transparent; }
.hero .hero-bg, .shop-hero .hero-bg {
  background-color: transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 80%);
}
.hero .hero-shade, .shop-hero .hero-shade {
  background: linear-gradient(90deg, rgba(3, 13, 24, .94), rgba(4, 15, 27, .75) 31%, rgba(4, 15, 27, .18) 68%, rgba(4, 15, 27, .04));
  -webkit-mask-image: linear-gradient(#000 40%, transparent 100%);
  mask-image: linear-gradient(#000 40%, transparent 100%);
}
.hero-stars, .bedrock-hero::before {
  -webkit-mask-image: linear-gradient(#000 38%, transparent 100%);
  mask-image: linear-gradient(#000 38%, transparent 100%);
}
.bedrock-hero .bedrock-orb-two { bottom: 70px; }
.quickbar-section { margin-top: -30px; padding-top: 0; }
.site-header, .site-header.scrolled {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.header-inner {
  position: relative;
  border-radius: 40px;
  background: linear-gradient(112deg, rgba(255, 255, 255, .14), rgba(223, 242, 255, .045) 45%, rgba(255, 255, 255, .1)), rgba(4, 14, 26, .18);
  border: 1px solid rgba(236, 248, 255, .42);
  box-shadow: var(--glass-shadow), inset -2px 0 7px rgba(255, 255, 255, .08), inset 2px 0 7px rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(7px) saturate(145%);
  backdrop-filter: blur(7px) saturate(145%);
}
/* Refraction is restricted to one desktop surface, not dozens of cards. */
@supports (backdrop-filter: url("/glass-lens.svg#lens")) {
  @media (min-width: 901px) {
    .header-inner { backdrop-filter: url("/glass-lens.svg#lens") saturate(140%); }
  }
}
.header-inner::after,
:is(.quickbar, .feature-card, .join-step, .join-card, .ip-copy-card,
    .rank-card, .starter-card, .support-strip, .vote-card, .bedrock-hero-card,
    .bedrock-step, .console-card, .console-final, .console-help,
    .rank-product, .keypack-card, .future-keys, .minecraft-name-box,
    .status-card)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(125deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .07) 22%, rgba(255, 255, 255, .04) 49%, rgba(220, 242, 255, .48) 78%, rgba(255, 255, 255, .09));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.header-inner::after { padding: 2px; }
.header-inner .nav a, .header-pill { text-shadow: 0 1px 5px rgba(0, 0, 0, .75); }
.header-inner .header-play { text-shadow: none; }
:is(.feature-card, .quickbar, .join-step, .join-card, .ip-copy-card, .rank-card,
    .starter-card, .support-strip, .vote-card, .bedrock-hero-card,
    .bedrock-step, .console-card, .console-final, .console-help,
    .rank-product, .keypack-card, .future-keys, .minecraft-name-box, .status-card) {
  position: relative;
  background: var(--glass-surface);
  border-color: var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(7px) saturate(135%);
  backdrop-filter: blur(7px) saturate(135%);
}
.quickbar { border-radius: 28px; }
.rank-product-vip, .starter-card, .keypack-medium { border-color: rgba(255, 202, 124, .42); }
.rank-product-ultra { border-color: rgba(255, 142, 158, .4); }
.keypack-large { border-color: rgba(191, 165, 255, .42); }
.battlepass-product {
  background: radial-gradient(ellipse at 8% 0, rgba(188, 103, 244, .11), transparent 55%), var(--glass-surface);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
:is(.btn-outline, .header-pill, .bedrock-tags span, .site-language, .copy-btn, .menu-btn) {
  border-radius: 999px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .19), rgba(226, 241, 251, .045) 48%, rgba(255, 255, 255, .09));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .47), inset 0 -1px 1px rgba(255, 255, 255, .1), 0 5px 16px rgba(0, 8, 20, .17);
  border-color: rgba(236, 248, 255, .37);
  -webkit-backdrop-filter: blur(5px) saturate(135%);
  backdrop-filter: blur(5px) saturate(135%);
}
.site-language a { border-radius: 999px; }
.btn-primary {
  border-radius: 999px;
  border-color: rgba(255, 234, 180, .65);
  background: linear-gradient(175deg, rgba(255, 255, 255, .27), transparent 48%), linear-gradient(130deg, #ffc02b, #ff920d);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .7), inset 0 -1px 2px rgba(143, 57, 0, .17), 0 8px 25px rgba(255, 145, 0, .24);
}
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #a9e6ff; outline-offset: 4px; }
@media (max-width: 900px) {
  .header-inner { border-radius: 29px; }
  .site-header.menu-open .nav {
    background: linear-gradient(135deg, rgba(51, 67, 80, .97), rgba(9, 24, 39, .97));
    border-color: rgba(235, 247, 255, .34);
    box-shadow: var(--glass-shadow);
  }
}
@media (max-width: 600px) {
  .header-inner { border-radius: 28px; }
  .quickbar { border-radius: 24px; }
  .quickbar-section { margin-top: -16px; padding-top: 0; }
  .hero .hero-bg {
    background-image: url('/assets/hero-home.webp?v=15');
    background-size: cover;
    background-position: 76% center;
  }
  .hero .hero-shade {
    background: linear-gradient(180deg, rgba(3, 13, 24, .95), rgba(4, 15, 27, .82) 48%, rgba(4, 15, 27, .15) 80%, transparent);
  }
  :is(.feature-card, .join-step, .join-card, .rank-product, .keypack-card, .bedrock-step, .console-card) {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-surface: linear-gradient(145deg, #233343, #101f2e); }
  .header-inner { background: #1a2b3b; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-surface: linear-gradient(145deg, #233343, #101f2e); }
  .header-inner, .site-language, .btn-outline, .header-pill { background: #1a2b3b; }
  body * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
