/* Minecraft page — server connect + earth map */

.minecraft-page .nav__links {
  gap: clamp(0.65rem, 1.8vw, 1.25rem);
}

#mc-ranks,
#mc-schematics {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.hero__meta--prominent {
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.hero__earth-logo {
  display: block;
  width: min(360px, 88vw);
  height: auto;
  object-fit: contain;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.server-status__dot {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #64748b;
  transition: background 0.3s, box-shadow 0.3s;
}

.server-status[data-state="checking"] .server-status__dot {
  background: #94a3b8;
  animation: status-pulse-neutral 1.5s ease-in-out infinite;
}

.server-status[data-state="online"] {
  color: var(--minecraft);
  border-color: rgba(92, 219, 74, 0.45);
  background: rgba(92, 219, 74, 0.1);
}

.server-status[data-state="online"] .server-status__dot {
  background: var(--minecraft);
  box-shadow:
    0 0 10px var(--minecraft),
    0 0 22px rgba(92, 219, 74, 0.65);
  animation: status-pulse-online 2s ease-in-out infinite;
}

.server-status[data-state="offline"] {
  color: var(--roblox);
  border-color: rgba(255, 77, 109, 0.45);
  background: rgba(255, 77, 109, 0.1);
}

.server-status[data-state="offline"] .server-status__dot {
  background: var(--roblox);
  box-shadow:
    0 0 10px var(--roblox),
    0 0 20px rgba(255, 77, 109, 0.55);
}

@keyframes status-pulse-online {
  0%, 100% {
    box-shadow:
      0 0 10px var(--minecraft),
      0 0 22px rgba(92, 219, 74, 0.65);
  }
  50% {
    box-shadow:
      0 0 16px var(--minecraft),
      0 0 32px rgba(92, 219, 74, 0.9);
  }
}

@keyframes status-pulse-neutral {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.server-connect {
  position: relative;
  width: min(100%, 640px);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 1.35rem 1.75rem 1.5rem;
  text-align: center;
  border-radius: 16px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid rgba(92, 219, 74, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(92, 219, 74, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--bg-panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px -24px rgba(92, 219, 74, 0.35);
  overflow: visible;
}

.server-connect__arrow {
  position: absolute;
  right: -1.1rem;
  bottom: -0.35rem;
  z-index: 4;
  width: clamp(120px, 32vw, 220px);
  height: auto;
  pointer-events: none;
  transform: rotate(220deg);
  transform-origin: center center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.server-connect__label {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--minecraft);
}

.server-connect__ip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(92, 219, 74, 0.45);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.server-connect__ip:hover,
.server-connect__ip:focus-visible {
  transform: translateY(-2px);
  border-color: var(--minecraft);
  box-shadow: 0 0 32px rgba(92, 219, 74, 0.25);
  outline: none;
}

.server-connect__ip.is-copied {
  border-color: #86efac;
  box-shadow: 0 0 28px rgba(134, 239, 172, 0.35);
}

.server-connect__ip-text {
  font-size: clamp(0.92rem, 2.2vw + 0.45rem, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  word-break: normal;
  max-width: 100%;
}

.server-connect__copy-hint {
  font-family: var(--font-body);
  font-size: var(--text-ui-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.server-connect__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0;
  text-align: left;
}

.server-connect__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.server-connect__row-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--text-ui-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.server-connect__row code {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.8vw + 0.35rem, 1.05rem);
  color: var(--text);
  white-space: nowrap;
  word-break: normal;
}

.server-connect__row--bedrock {
  position: relative;
}

.server-connect__copy-small {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-ui-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--minecraft);
  background: rgba(92, 219, 74, 0.1);
  border: 1px solid rgba(92, 219, 74, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.server-connect__copy-small:hover {
  background: rgba(92, 219, 74, 0.18);
  border-color: rgba(92, 219, 74, 0.45);
}

.server-connect__feedback {
  position: absolute;
  left: 50%;
  bottom: -0.5rem;
  transform: translate(-50%, 100%);
  padding: 0.5rem 1rem;
  font-size: var(--text-ui-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--minecraft);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.server-connect__feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(100% + 0.35rem));
}

.server-connect__actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding-top: 0.5rem;
}

/* Animated Earth map button */
.earth-map-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
  padding: 1rem 1.85rem 1rem 1.15rem;
  min-width: min(100%, 380px);
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.55);
  background:
    radial-gradient(circle at 0% 50%, rgba(56, 189, 248, 0.2), transparent 55%),
    linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(34, 197, 94, 0.14)),
    rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 12px 32px -12px rgba(56, 189, 248, 0.35);
}

.earth-map-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: earth-shine 4s ease-in-out infinite;
}

.earth-map-btn:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(125, 211, 252, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 48px rgba(56, 189, 248, 0.45),
    0 0 96px rgba(34, 197, 94, 0.2);
}

.earth-map-btn__visual {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.earth-map-btn__orbit {
  position: absolute;
  inset: -6px;
  border: 1.5px solid rgba(125, 211, 252, 0.55);
  border-radius: 50%;
  animation: earth-orbit 3s linear infinite;
}

.earth-map-btn__orbit::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 14px #38bdf8, 0 0 24px rgba(56, 189, 248, 0.6);
}

.earth-map-btn__globe {
  display: block;
  width: 72px;
  height: 72px;
}

.earth-map-btn__texture {
  transform-box: fill-box;
  transform-origin: center;
  animation: earth-texture-spin 24s linear infinite;
}

@keyframes earth-texture-spin {
  from { transform: translateX(0); }
  to { transform: translateX(-92px); }
}

.earth-map-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
}

.earth-map-btn__text strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  line-height: 1.15;
  color: #f0f9ff;
  text-shadow:
    0 0 24px rgba(56, 189, 248, 0.55),
    0 2px 0 rgba(0, 0, 0, 0.35);
}

.earth-map-btn__text small {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}

@keyframes earth-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes earth-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes earth-shine {
  0%, 100% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
}

.hero--minecraft .hero__live {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  flex-wrap: wrap;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .server-connect {
    margin-left: 0;
    margin-right: 0;
    padding: 1.15rem 1rem 1.25rem;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    min-height: min(92vw, 520px);
  }

  .server-connect__actions {
    flex: 1;
    padding-top: 0.75rem;
  }

  .server-connect__arrow {
    width: clamp(96px, 28vw, 168px);
    right: -0.85rem;
    bottom: -0.25rem;
  }

  .server-connect__details {
    grid-template-columns: 1fr;
  }

  .server-connect__ip {
    padding: 1rem 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .server-connect__ip-text {
    font-size: clamp(0.82rem, 3.8vw, 1.35rem);
  }

  .earth-map-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.95rem 1.1rem;
    gap: 1rem;
    border-radius: 10px;
  }

  .server-status {
    width: 100%;
    justify-content: center;
  }

  .hero__earth-logo {
    width: min(320px, 92vw);
    margin: 0 auto;
  }

  .hero--minecraft {
    padding-top: 2rem;
  }

  .hero--minecraft .hero__live {
    flex-wrap: nowrap;
    gap: clamp(0.35rem, 2vw, 1rem);
  }

  .bedrock-guide,
  .mc-store {
    padding-left: 0;
    padding-right: 0;
  }

  .bedrock-guide {
    margin-bottom: 0;
  }

  .mc-store__divider {
    padding-top: 2.25rem;
  }

  .mc-store__header {
    padding-top: 1.75rem;
  }

  .bedrock-accordion__trigger {
    padding: 1.2rem 1.15rem;
  }

  .bedrock-accordion__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .bedrock-accordion__content {
    padding: 0 1.15rem 1.25rem;
  }

  .mc-store__grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .mc-store__brand {
    gap: 0.45em;
    padding-bottom: 0.55rem;
    padding-inline: 0.35rem;
  }

  .mc-store__title {
    font-size: clamp(0.88rem, calc((100vw - 2rem) / 10.8), 2.85rem);
    letter-spacing: clamp(0.035em, 0.28vw, 0.08em);
  }

  .mc-store__shop-icon svg {
    width: 0.82em;
    height: 0.82em;
  }

  .store-card__footer {
    flex-wrap: wrap;
  }

  .store-card__buy {
    flex: 1 1 100%;
    min-height: 48px;
    padding: 0.85rem 1rem;
  }
}

/* Bedrock join guide — collapsible accordion */
.bedrock-guide {
  max-width: 920px;
  margin: 0 auto 0;
  padding: 0 1.5rem;
}

.bedrock-accordion {
  border-radius: 0;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: var(--bg-panel);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.bedrock-accordion[open] {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 16px 44px -18px rgba(96, 165, 250, 0.4);
}

.bedrock-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.6rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-left: 4px solid var(--bedrock);
  transition: background 0.2s;
}

.bedrock-accordion__trigger::-webkit-details-marker {
  display: none;
}

.bedrock-accordion__trigger::marker {
  content: "";
}

.bedrock-accordion__trigger:hover {
  background: rgba(96, 165, 250, 0.09);
}

.bedrock-accordion__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  flex: 1;
  min-width: 0;
}

.bedrock-accordion__title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.25;
}

.bedrock-accordion__combo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.bedrock-accordion__icon {
  flex-shrink: 0;
  width: clamp(28px, 6vw, 36px);
  height: clamp(28px, 6vw, 36px);
  object-fit: contain;
  border-radius: 4px;
}

.bedrock-accordion__plus {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  line-height: 1;
  color: #93c5fd;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.45);
}

.bedrock-accordion__phone {
  flex-shrink: 0;
  width: clamp(22px, 5vw, 28px);
  height: clamp(22px, 5vw, 28px);
  color: #bfdbfe;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.35));
}

.bedrock-accordion__chevron {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  color: #93c5fd;
  transition: transform 0.3s ease, color 0.2s;
}

.bedrock-accordion[open] .bedrock-accordion__chevron {
  transform: rotate(180deg);
  color: #bfdbfe;
}

.bedrock-accordion__content {
  padding: 0 1.6rem 1.5rem;
  border-top: 1px solid rgba(96, 165, 250, 0.18);
}

.bedrock-accordion__intro {
  margin: 1.15rem 0 1.25rem;
  font-size: clamp(1.05rem, 3vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.65;
}

@keyframes bedrock-expand {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bedrock-guide__tag {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font-size: var(--text-ui-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bedrock);
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  white-space: nowrap;
}

.bedrock-guide__panel {
  padding: 1.5rem 1.35rem;
  margin-bottom: 1rem;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.bedrock-guide__panel--highlight {
  border-color: rgba(96, 165, 250, 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.1), transparent 50%),
    var(--bg-elevated);
}

.bedrock-guide__panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.bedrock-guide__lead {
  font-size: clamp(1.05rem, 3vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.bedrock-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bedrock-steps__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.bedrock-steps__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--bedrock), #38bdf8);
  border-radius: 50%;
}

.bedrock-steps__body h4 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.bedrock-steps__body p {
  font-size: clamp(1.05rem, 3vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.bedrock-steps__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.bedrock-steps__link {
  display: inline-block;
  padding: 0.75rem 1.15rem;
  font-size: var(--text-ui-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(135deg, #93c5fd, var(--bedrock));
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bedrock-steps__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(96, 165, 250, 0.35);
}

.bedrock-guide__note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  font-size: clamp(1rem, 2.8vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.6;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.08);
}

.info__block a {
  color: var(--minecraft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Server store — ranks & schematics */
.mc-store {
  max-width: var(--max-width);
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}

.mc-store__divider {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.25rem 0 0;
}

.mc-store__divider-line {
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(92, 219, 74, 0.15) 12%,
    rgba(92, 219, 74, 0.55) 50%,
    rgba(92, 219, 74, 0.15) 88%,
    transparent
  );
  box-shadow: 0 1px 0 rgba(134, 239, 172, 0.08);
}

.mc-store__header {
  text-align: center;
  margin-bottom: 2.75rem;
  padding-top: 2.5rem;
}

.mc-store__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: 100%;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  pointer-events: none;
  user-select: none;
}

.mc-store__brand-line {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 28rem);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(92, 219, 74, 0.15) 15%,
    rgba(92, 219, 74, 0.55) 50%,
    rgba(92, 219, 74, 0.15) 85%,
    transparent
  );
}

.mc-store__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin: 0;
  max-width: 100%;
  line-height: 1;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, calc((100vw - 3.5rem) / 10.5), 2.85rem);
  font-weight: 700;
  letter-spacing: clamp(0.045em, 0.35vw + 0.02em, 0.1em);
  text-transform: uppercase;
  white-space: nowrap;
  color: #dcfce7;
  text-shadow:
    0 0 22px rgba(92, 219, 74, 0.5),
    0 2px 0 rgba(0, 0, 0, 0.3);
}

.mc-store__shop-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: #86efac;
  line-height: 0;
  transform: translateY(0.02em);
}

.mc-store__shop-icon svg {
  width: 0.78em;
  height: 0.78em;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 6px rgba(239, 68, 68, 0.35))
    drop-shadow(0 0 8px rgba(92, 219, 74, 0.3));
}

.mc-store__subtitle {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--minecraft);
  opacity: 0.85;
}

.mc-store__desc {
  max-width: 540px;
  margin: 0 auto;
  font-size: clamp(1rem, 2.8vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.mc-store__category {
  margin-bottom: 2.5rem;
}

.mc-store__category-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.mc-store__category-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: var(--text-ui-sm);
  color: var(--minecraft);
  background: rgba(92, 219, 74, 0.12);
  border: 1px solid rgba(92, 219, 74, 0.25);
  border-radius: 8px;
}

.mc-store__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.mc-store__grid--wide .store-card__desc {
  min-height: 3.2em;
}

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: 0;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    var(--bg-elevated);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.store-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.6s;
  pointer-events: none;
}

.store-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 219, 74, 0.35);
  box-shadow:
    0 0 0 1px rgba(92, 219, 74, 0.1) inset,
    0 20px 40px -20px rgba(92, 219, 74, 0.3);
}

.store-card:hover::before {
  transform: translateX(120%);
}

.store-card--featured {
  border-color: rgba(251, 191, 36, 0.45);
  background:
    radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%),
    var(--bg-elevated);
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.12);
}

.store-card--featured:hover {
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.15) inset,
    0 20px 48px -16px rgba(251, 191, 36, 0.35);
}

.store-card--rank.store-card--builder:hover {
  border-color: rgba(92, 219, 74, 0.55);
  box-shadow:
    0 0 0 1px rgba(92, 219, 74, 0.15) inset,
    0 20px 44px -18px rgba(92, 219, 74, 0.38);
}

.store-card--rank.store-card--messenger:hover {
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.18) inset,
    0 20px 48px -16px rgba(251, 191, 36, 0.4);
}

.store-card--rank.store-card--gatherer:hover {
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.18) inset,
    0 20px 48px -16px rgba(167, 139, 250, 0.38);
}

.store-card__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.4rem 0.7rem;
  font-size: var(--text-ui-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 6px;
}

.store-card--rank .store-card__badge {
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  border-radius: 4px;
}

.store-card--rank.store-card--featured .rank-header {
  padding-right: 3.5rem;
}

/* Rank name banner */
.rank-header {
  position: relative;
  margin: -1.35rem -1.35rem 1.15rem;
  padding: 1.1rem 1rem;
  text-align: center;
  overflow: hidden;
  border-radius: 0;
}

.rank-header__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: rank-shine 5s ease-in-out infinite;
}

.rank-header__accent {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(180deg, black, transparent);
}

.rank-header--builder {
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(92, 219, 74, 0.5), transparent 70%),
    linear-gradient(180deg, rgba(74, 222, 128, 0.35), rgba(21, 128, 61, 0.2));
  border-bottom: 1px solid rgba(92, 219, 74, 0.55);
  box-shadow: 0 8px 24px -8px rgba(92, 219, 74, 0.5);
}

.rank-header--messenger {
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(251, 191, 36, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(251, 191, 36, 0.38), rgba(180, 83, 9, 0.2));
  border-bottom: 1px solid rgba(251, 191, 36, 0.6);
  box-shadow: 0 8px 24px -8px rgba(251, 191, 36, 0.55);
}

.rank-header--gatherer {
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(167, 139, 250, 0.52), transparent 70%),
    linear-gradient(180deg, rgba(167, 139, 250, 0.35), rgba(109, 40, 217, 0.2));
  border-bottom: 1px solid rgba(167, 139, 250, 0.6);
  box-shadow: 0 8px 24px -8px rgba(167, 139, 250, 0.5);
}

.rank-header__title {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  text-shadow:
    0 0 20px currentColor,
    0 2px 0 rgba(0, 0, 0, 0.4);
}

.rank-header__icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  opacity: 0.92;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.rank-header__icon svg {
  width: 100%;
  height: 100%;
}

.rank-header--builder .rank-header__title {
  color: #dcfce7;
}

.rank-header--messenger .rank-header__title {
  color: #fef9c3;
}

.rank-header--gatherer .rank-header__title {
  color: #f3e8ff;
}

@keyframes rank-shine {
  0%, 100% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
}

.store-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.store-card__visual--builder {
  background:
    radial-gradient(ellipse 80% 60% at 50% 85%, rgba(92, 219, 74, 0.28), transparent 70%),
    radial-gradient(circle at 50% 35%, rgba(92, 219, 74, 0.15), rgba(0, 0, 0, 0.72) 78%);
  border: 1px solid rgba(92, 219, 74, 0.55);
  box-shadow:
    inset 0 0 40px rgba(92, 219, 74, 0.1),
    inset 0 -24px 32px rgba(92, 219, 74, 0.08);
}

.store-card__visual--messenger {
  background:
    radial-gradient(ellipse 80% 60% at 50% 85%, rgba(251, 191, 36, 0.3), transparent 70%),
    radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.18), rgba(0, 0, 0, 0.72) 78%);
  border: 1px solid rgba(251, 191, 36, 0.6);
  box-shadow:
    inset 0 0 40px rgba(251, 191, 36, 0.12),
    inset 0 -24px 32px rgba(251, 191, 36, 0.1);
}

.store-card__visual--gatherer {
  background:
    radial-gradient(ellipse 80% 60% at 50% 85%, rgba(167, 139, 250, 0.3), transparent 70%),
    radial-gradient(circle at 50% 35%, rgba(167, 139, 250, 0.18), rgba(0, 0, 0, 0.72) 78%);
  border: 1px solid rgba(167, 139, 250, 0.6);
  box-shadow:
    inset 0 0 40px rgba(167, 139, 250, 0.12),
    inset 0 -24px 32px rgba(167, 139, 250, 0.1);
}

.store-card__visual--builder .store-card__glow {
  background: radial-gradient(circle at 50% 50%, rgba(92, 219, 74, 0.35), transparent 58%);
}

.store-card__visual--messenger .store-card__glow {
  background: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.38), transparent 58%);
}

.store-card__visual--gatherer .store-card__glow {
  background: radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.38), transparent 58%);
}

.store-card__visual--blueprint {
  border: 1px dashed rgba(96, 165, 250, 0.35);
  background:
    radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.35);
}

.store-card__visual--model {
  position: relative;
  border: 1px solid rgba(92, 219, 74, 0.35);
  background:
    radial-gradient(circle at 50% 70%, rgba(92, 219, 74, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(12, 16, 25, 0.95), rgba(0, 0, 0, 0.55));
  padding: 0;
  height: 200px;
}

.store-card__visual--model::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.45);
}

.schematic-model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  --poster-color: transparent;
  background: transparent;
  filter: contrast(0.94) saturate(0.9);
}

.store-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(92, 219, 74, 0.3), transparent 58%);
  animation: store-glow-pulse 3s ease-in-out infinite;
}

.rank-character-stage__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 8px 8px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 55%, black 20%, transparent 75%);
  animation: rank-grid-drift 12s linear infinite;
}

.rank-character-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.75rem 0.5rem;
}

.rank-character-stage__pedestal {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  width: 72px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.55) 72%);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

.store-card__visual--builder .rank-character-stage__pedestal {
  box-shadow: 0 0 20px rgba(92, 219, 74, 0.35);
}

.store-card__visual--messenger .rank-character-stage__pedestal {
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.4);
}

.store-card__visual--gatherer .rank-character-stage__pedestal {
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.4);
}

.rank-badge {
  position: relative;
  z-index: 1;
  display: block;
  width: min(132px, 62%);
  height: auto;
  margin-bottom: 0.35rem;
  object-fit: contain;
  animation: rank-badge-breathe 5s ease-in-out infinite;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
  will-change: transform;
}

.store-card__visual--builder .rank-badge {
  filter: drop-shadow(0 12px 28px rgba(92, 219, 74, 0.28));
}

.store-card__visual--messenger .rank-badge {
  animation-duration: 5.5s;
  animation-delay: 0.25s;
  filter: drop-shadow(0 12px 28px rgba(251, 191, 36, 0.3));
}

.store-card__visual--gatherer .rank-badge {
  animation-duration: 5.2s;
  animation-delay: 0.12s;
  filter: drop-shadow(0 12px 28px rgba(167, 139, 250, 0.32));
}

.store-card--rank:hover .rank-badge {
  animation-duration: 4s;
}

@keyframes rank-badge-breathe {
  0%, 100% {
    transform: scale(1) translateY(0);
  }

  50% {
    transform: scale(1.05) translateY(-10px);
  }
}

@keyframes rank-grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 8px 8px; }
}

.store-card__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
  animation: store-grid-drift 8s linear infinite;
}

@keyframes store-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.store-card__blueprint {
  width: 64px;
  height: 64px;
  opacity: 0.9;
  animation: store-icon-float 5s ease-in-out infinite;
}

.store-card h4 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.store-card--rank h4:not(.rank-header__title) {
  display: none;
}

.store-card__perks {
  list-style: none;
  flex: 1;
  margin-bottom: 1.25rem;
}

.store-card__perks li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.5;
}

.store-card__perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--minecraft);
  font-weight: 700;
}

.store-card__desc {
  flex: 1;
  margin-bottom: 1.25rem;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.store-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.store-card__price {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--minecraft);
}

.store-card__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-body);
  font-size: var(--text-ui-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg-deep);
  background: linear-gradient(135deg, #86efac, var(--minecraft));
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.store-card__buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(92, 219, 74, 0.35);
}

.store-card__buy.is-placeholder {
  opacity: 0.65;
  cursor: not-allowed;
}

.store-card__buy.is-placeholder:hover {
  transform: none;
  box-shadow: none;
}

.store-card__buy--discord {
  opacity: 1;
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #4752c4);
}

.store-card__buy--discord:hover {
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.mc-store__note {
  width: 100%;
  max-width: 100%;
  margin: 1.75rem auto 0;
  padding: 0.75rem 1.25rem;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: var(--text-muted);
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
  border-radius: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 769px) {
  .mc-store__note {
    padding: 0.7rem 2rem;
    line-height: 1.35;
  }
}

@media (max-width: 768px) {
  .mc-store__note {
    margin-top: 1.25rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 36rem;
  }
}

.minecraft-page .info__block {
  border-radius: 0;
}

.minecraft-page .cta-band__inner {
  border-radius: 0;
}

@keyframes store-glow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes store-grid-drift {
  from { background-position: 0 0; }
  to { background-position: 12px 12px; }
}

@media (max-width: 900px) {
  .mc-store__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .mc-store__grid {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .bedrock-steps__item {
    flex-direction: column;
    gap: 0.65rem;
  }

  .bedrock-steps__links {
    flex-direction: column;
  }

  .bedrock-steps__link {
    text-align: center;
  }

  .bedrock-accordion__trigger {
    padding: 1.2rem 1.25rem;
  }

  .bedrock-accordion__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .bedrock-accordion__content {
    padding: 0 1.25rem 1.25rem;
  }
}
