/* ===== Minecraft 1 Up — intro + hero section ===== */
:root {
  --up-green: #a3ff12;
  --up-green-2: #4ade80;
  --up-cyan: #22d3ee;
  --up-purple: #c026d3;
}

/* ---------- Opening animation (spiral tower + lightning + logo) ---------- */
.up-intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  visibility: visible;
  background: #05030f;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 1s cubic-bezier(0.75, 0, 0.25, 1);
}
.up-intro.is-leaving { transform: translateY(-104%); }
.up-intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.up-intro__canvas.shake { animation: upShake 0.6s ease-out; }
.up-intro__fade { position: absolute; inset: 0; background: #05030f; pointer-events: none; }
.up-intro__fade.go { opacity: 0; transition: opacity 0.7s ease-out; }
.up-intro__flash { position: absolute; inset: 0; background: #eaf6ff; opacity: 0; pointer-events: none; }
.up-intro__flash.go { animation: upFlash 0.75s ease-out; }
@keyframes upFlash { 0% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes upShake {
  0%, 100% { transform: translate(0); }
  12% { transform: translate(-16px, 10px) rotate(-0.8deg); }
  28% { transform: translate(14px, -11px) rotate(0.7deg); }
  46% { transform: translate(-9px, 7px) rotate(-0.3deg); }
  66% { transform: translate(6px, -4px); }
  84% { transform: translate(-3px, 2px); }
}

.up-intro__stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(8px, 2.4vh, 26px);
  padding: 4vh 4vw;
  text-align: center;
  pointer-events: none;
}
.up-intro__stage.shake { animation: upShake 0.6s ease-out; }

.up-intro__top { display: grid; justify-items: center; gap: clamp(4px, 1vh, 12px); }
.up-intro__brand {
  width: min(62vw, 340px); height: auto; opacity: 0;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.95));
}
.up-intro__brand.show { animation: upBrandIn 0.9s steps(1, end) both; }
@keyframes upBrandIn {
  0% { opacity: 0; transform: scaleX(1.5) skewX(22deg); }
  14% { opacity: 1; transform: translateX(-16px) skewX(-14deg); filter: drop-shadow(9px 0 0 #f0f) drop-shadow(-9px 0 0 #0ff); }
  28% { opacity: 0.25; transform: translateX(13px); }
  44% { opacity: 1; transform: translateX(-6px) skewX(7deg); filter: drop-shadow(-7px 0 0 #f0f) drop-shadow(7px 0 0 #0ff); }
  66%, 100% { opacity: 1; transform: none; filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.95)); }
}
.up-intro__tag {
  margin: 0; min-height: 1.6em; opacity: 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(9px, 1.9vw, 19px);
  letter-spacing: 0.1em; line-height: 1.6;
  color: #eaffd0;
  text-shadow: 0 2px 0 #000, 0 0 14px rgba(163, 255, 18, 0.95), 0 0 34px rgba(163, 255, 18, 0.5);
}
.up-intro__tag.show { opacity: 1; }
.up-intro__caret { display: inline-block; width: 0.62em; height: 1em; margin-left: 5px; vertical-align: -2px; background: #a3ff12; animation: upBlink 0.5s steps(1) infinite; }
@keyframes upBlink { 50% { opacity: 0; } }

/* The logo */
.up-intro__logo {
  position: relative;
  width: min(92vw, 112vh, 1060px);
  aspect-ratio: 1448 / 709;
  opacity: 0;
  flex: none;
}
.up-intro__img, .up-intro__ghost { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.up-intro__ghost { opacity: 0; mix-blend-mode: screen; }
.up-intro__logo.slam { opacity: 1; animation: upLogoSlam 0.62s cubic-bezier(0.16, 1.5, 0.3, 1) both, upLogoFloat 3.4s ease-in-out 0.7s infinite; }
@keyframes upLogoSlam {
  0% { transform: scale(3.1) rotate(-3deg); filter: brightness(3.2) blur(7px); opacity: 0; }
  32% { opacity: 1; filter: brightness(2.1) blur(0); }
  100% { transform: none; filter: none; opacity: 1; }
}
@keyframes upLogoFloat { 50% { transform: translateY(-1.1vh); } }
.up-intro__logo.slam .up-intro__img { animation: upLogoGlow 1.5s ease-in-out 0.65s infinite; }
@keyframes upLogoGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 34px rgba(163, 255, 18, 0.4)); }
  50% { filter: drop-shadow(0 0 26px rgba(217, 70, 239, 0.95)) drop-shadow(0 0 60px rgba(163, 255, 18, 0.75)); }
}
.up-intro__logo.slam .up-intro__ghost--a { animation: upGhostA 0.75s ease-out both; filter: hue-rotate(150deg) saturate(2); }
.up-intro__logo.slam .up-intro__ghost--b { animation: upGhostB 0.75s ease-out both; filter: hue-rotate(280deg) saturate(2); }
@keyframes upGhostA { 0% { opacity: 0.95; transform: translate(-7%, -3%) scale(1.14); } 100% { opacity: 0; transform: none; } }
@keyframes upGhostB { 0% { opacity: 0.95; transform: translate(7%, 3%) scale(1.14); } 100% { opacity: 0; transform: none; } }
/* Shine that only touches the logo's own shape */
.up-intro__shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--logo) center / 100% 100% no-repeat;
  mask: var(--logo) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.9) 50%, transparent 58%) 170% 0 / 260% 100% no-repeat;
}
.up-intro__logo.slam .up-intro__shine { animation: upLogoShine 2.1s ease-in-out 0.45s infinite; }
@keyframes upLogoShine { 0% { background-position: 170% 0; } 55%, 100% { background-position: -70% 0; } }

/* Price */
.up-intro__price { display: flex; align-items: center; justify-content: center; gap: 14px; opacity: 0; flex-wrap: wrap; }
.up-intro__price b {
  font-family: "Russo One", system-ui, sans-serif; font-weight: 400;
  font-size: clamp(34px, 7.4vh, 72px); line-height: 1; color: #fff;
  text-shadow: 0 4px 0 #1f4d00, 0 0 26px rgba(163, 255, 18, 0.95);
}
.up-intro__price span {
  font-family: "Press Start 2P", monospace; font-size: clamp(10px, 1.7vw, 15px); letter-spacing: 0.1em;
  color: #07120a; background: #a3ff12; padding: 0.7em 0.9em;
  box-shadow: 0 0 22px rgba(163, 255, 18, 0.8);
}
.up-intro__price.show { opacity: 1; animation: upPop 0.5s cubic-bezier(0.2, 1.8, 0.4, 1) both; }
@keyframes upPop { 0% { opacity: 0; transform: scale(0.2) rotate(-6deg); } 100% { opacity: 1; transform: none; } }

.up-skip {
  position: absolute; right: 18px; bottom: 18px; z-index: 5;
  font: 400 12px/1 "Press Start 2P", monospace; letter-spacing: 0.08em;
  color: #e2e8f0; background: rgba(5, 3, 20, 0.6); border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 12px 14px; border-radius: 8px; cursor: pointer;
}
.up-skip:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Hero section (first on page) ---------- */
@keyframes upBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.up-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(86px, 12vw, 130px) 0 clamp(44px, 6vw, 80px);
  background:
    radial-gradient(ellipse 70% 60% at 78% 40%, rgba(56, 189, 248, .28), transparent 65%),
    radial-gradient(ellipse 60% 55% at 12% 90%, rgba(163, 255, 18, .14), transparent 65%),
    linear-gradient(180deg, #0a1030, #07070b);
}
.up-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .9; }
.up-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 70px); align-items: center; }

.up-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Press Start 2P", monospace; font-size: 11px; letter-spacing: .12em;
  color: #0b0b12; background: var(--up-green); padding: 9px 12px; border-radius: 6px;
  box-shadow: 0 0 24px rgba(163,255,18,.55);
  animation: upGlow 2.2s ease-in-out infinite;
}
@keyframes upGlow { 50% { box-shadow: 0 0 40px rgba(163,255,18,.95); } }
.up-hero__brand {
  margin: 18px 0 0;
  font-family: "Russo One", system-ui, sans-serif; letter-spacing: .28em;
  font-size: clamp(16px, 2.4vw, 24px);
  background: linear-gradient(90deg, var(--up-cyan), #a78bfa, var(--up-purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.up-hero__title { margin: 6px 0 0; line-height: .95; font-family: "Russo One", system-ui, sans-serif; }
.up-hero__mc {
  display: block; font-size: clamp(42px, 7.4vw, 96px); color: #e5e7eb;
  -webkit-text-stroke: 2px #06b6d4; paint-order: stroke fill;
  text-shadow: 0 5px 0 #6b7280, 0 8px 0 #374151, 0 0 34px rgba(34,211,238,.6);
}
.up-hero__1up {
  display: flex; align-items: center; gap: .18em;
  font-family: "Press Start 2P", monospace; font-size: clamp(54px, 10vw, 128px); color: var(--up-green);
  text-shadow: 0 .06em 0 #3f8a00, 0 .12em 0 #1f4d00, 0 0 .4em rgba(163,255,18,.7);
  margin-top: .18em;
}
.up-hero__1up i { font-style: normal; font-size: .62em; display: inline-block; animation: upBob 1.4s ease-in-out infinite; }
.up-hero__1up i:last-child { animation-delay: .25s; }
.up-hero__chip {
  display: inline-block; margin-top: 8px;
  font-family: "Press Start 2P", monospace; font-size: clamp(12px, 1.8vw, 18px);
  padding: .6em 1em; background: linear-gradient(180deg, #5b21b6, #3b0764);
  border: 2px solid #fff; outline: 2px solid var(--up-purple); box-shadow: 0 0 22px rgba(217,70,239,.6);
}
.up-hero__lead { margin: 22px 0 0; max-width: 54ch; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; color: #dbe4ff; }
.up-hero__lead b { color: #fff; }
.up-hero__feat { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.up-hero__feat li {
  font-size: 13px; font-weight: 600; color: #eaffd0; padding: 7px 12px; border-radius: 999px;
  background: rgba(163,255,18,.1); border: 1px solid rgba(163,255,18,.35);
}
.up-hero__buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.up-btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: "Russo One", system-ui, sans-serif; font-size: 19px; text-decoration: none; color: #07120a;
  padding: 16px 26px; border-radius: 14px;
  background: linear-gradient(180deg, #c8ff4d, #7ee81a);
  box-shadow: 0 6px 0 #3f8a00, 0 14px 40px rgba(163,255,18,.45);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative; overflow: hidden;
}
.up-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: upShine 3s ease-in-out infinite; }
@keyframes upShine { 0%, 55% { left: -60%; } 100% { left: 140%; } }
.up-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #3f8a00, 0 18px 50px rgba(163,255,18,.6); }
.up-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #3f8a00; }
.up-btn__price { background: #07120a; color: var(--up-green); padding: 6px 12px; border-radius: 9px; font-size: 22px; }
.up-hero__note { font-size: 13px; color: #9fb0d8; }

.up-hero__art { position: relative; display: grid; place-items: center; perspective: 1400px; padding: 16px; }
.up-hero__glow { position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, #22d3ee, #a3ff12, #c026d3, #f97316, #22d3ee); filter: blur(70px); opacity: .55; animation: upSpin 14s linear infinite; }
@keyframes upSpin { to { transform: rotate(360deg); } }

/* Poster: flat + crisp at rest (no 3D/float transform = no resampling blur). Tilts only on hover. */
.up-hero__poster {
  position: relative; width: min(100%, 420px); border-radius: 18px;
  transition: transform .15s ease-out; isolation: isolate;
}
.up-hero__poster::before { /* spinning rainbow border */
  content: ""; position: absolute; inset: -5px; border-radius: 22px; z-index: -1;
  background: conic-gradient(from var(--up-ang, 0deg), #a3ff12, #22d3ee, #c026d3, #f97316, #fde047, #a3ff12);
  animation: upAng 4s linear infinite; box-shadow: 0 0 40px rgba(163,255,18,.45), 0 30px 80px rgba(0,0,0,.6);
}
@property --up-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes upAng { to { --up-ang: 360deg; } }
.up-hero__poster img {
  display: block; width: 100%; height: auto; border-radius: 16px; position: relative;
  image-rendering: auto; filter: contrast(1.03) saturate(1.06);
}
.up-hero__poster::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; overflow: hidden;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.35) 50%, transparent 62%) -150% 0 / 250% 100% no-repeat;
  animation: upSweep 4.5s ease-in-out infinite; mix-blend-mode: overlay;
}
@keyframes upSweep { 0%, 40% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
.up-hero__ribbon {
  position: absolute; top: -18px; right: -18px; z-index: 3;
  font-family: "Russo One", system-ui, sans-serif; font-size: 30px; color: #07120a;
  background: linear-gradient(180deg, #fde047, #f59e0b); padding: 12px 16px; border-radius: 14px; transform: rotate(8deg);
  box-shadow: 0 10px 30px rgba(245,158,11,.5); border: 3px solid #fff; animation: upRibbon 1.8s ease-in-out infinite;
}
@keyframes upRibbon { 50% { transform: rotate(8deg) scale(1.1); } }

/* orbiting pixel orbs */
.up-orb { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; background: var(--c, #a3ff12); box-shadow: 0 0 14px var(--c, #a3ff12); animation: upOrbit var(--d, 9s) linear infinite; animation-delay: var(--dl, 0s); pointer-events: none; z-index: 2; }
@keyframes upOrbit { from { transform: rotate(0deg) translateX(var(--r, 250px)) rotate(0deg) scale(1); } 50% { transform: rotate(180deg) translateX(var(--r, 250px)) rotate(-180deg) scale(1.5); } to { transform: rotate(360deg) translateX(var(--r, 250px)) rotate(-360deg) scale(1); } }

/* click popups + cursor trail */
.up-pop { position: fixed; z-index: 2500; pointer-events: none; font: 16px "Press Start 2P", monospace; color: #a3ff12; text-shadow: 0 2px 0 #1f4d00, 0 0 14px rgba(163,255,18,.9); animation: upPopUp 1.1s ease-out forwards; white-space: nowrap; }
@keyframes upPopUp { from { opacity: 1; transform: translate(-50%, 0) scale(.6); } 20% { transform: translate(-50%, -16px) scale(1.2); } to { opacity: 0; transform: translate(-50%, -90px) scale(1); } }
.up-bit { position: fixed; z-index: 2400; pointer-events: none; width: 8px; height: 8px; animation: upBit .7s ease-out forwards; }
@keyframes upBit { to { opacity: 0; transform: translate(var(--x), var(--y)) scale(.2); } }

/* title effects */
.up-hero__1up { animation: upTitlePulse 2.4s ease-in-out infinite; }
@keyframes upTitlePulse { 50% { filter: drop-shadow(0 0 22px rgba(163,255,18,.85)); } }
.up-hero__mc { background-image: linear-gradient(100deg, #e5e7eb 40%, #fff 50%, #e5e7eb 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: upMcShine 5s ease-in-out infinite; }
@keyframes upMcShine { 0%, 45% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
.up-hero__copy > * { opacity: 0; transform: translateY(24px); animation: upRise .7s cubic-bezier(.2,.8,.2,1) forwards; }
.up-hero__copy > *:nth-child(1) { animation-delay: .05s; } .up-hero__copy > *:nth-child(2) { animation-delay: .15s; }
.up-hero__copy > *:nth-child(3) { animation-delay: .25s; } .up-hero__copy > *:nth-child(4) { animation-delay: .38s; }
.up-hero__copy > *:nth-child(5) { animation-delay: .5s; } .up-hero__copy > *:nth-child(6) { animation-delay: .62s; }
@keyframes upRise { to { opacity: 1; transform: none; } }
.up-hero__feat li { transition: transform .15s, background .15s; }
.up-hero__feat li:hover { transform: translateY(-3px) scale(1.05); background: rgba(163,255,18,.25); }
.up-hero__hint { margin-top: 10px; font: 10px "Press Start 2P", monospace; color: #8fa3d8; letter-spacing: .08em; text-align: center; }

/* Package card */
.spotlight--1up .spotlight__badge { background: var(--up-green); color: #07120a; }
.spotlight--1up .spotlight__art { object-position: 50% 30%; }
.spotlight--streamer { --accent: 239, 68, 68; }
.spotlight--streamer .spotlight__badge { background: #dc2626; color: #fff; }
.spotlight--streamer .spotlight__art { object-position: 50% 30%; }
.spotlight--minecraft.spotlight--streamer .spotlight__cta { border-color: rgba(239, 68, 68, 0.55); background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 10px 28px rgba(185, 28, 28, 0.4); }
@media (min-width: 921px) and (max-width: 999px) {
  .pack-group__tiers--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.spotlight--drop { --accent: 168, 85, 247; }
.spotlight--drop .spotlight__badge { background: linear-gradient(90deg, #3b82f6, #a855f7, #ef4444); color: #fff; }
.spotlight--drop .spotlight__art { object-position: 50% 30%; }
.spotlight--minecraft.spotlight--drop .spotlight__cta { border-color: rgba(56, 189, 248, 0.55); background: linear-gradient(135deg, #38bdf8, #2563eb 55%, #7c3aed); box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45); }
/* Minecraft row with 5 cards: 3 mini games on top, Standard + Deluxe centred underneath, all the same size */
@media (min-width: 921px) {
  .pack-group__tiers--five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pack-group__tiers--five > * { grid-column: span 2; }
  .pack-group__tiers--five > :nth-child(4) { grid-column: 2 / span 2; }
}
.spotlight--blockout { --accent: 56, 189, 248; }
.spotlight--blockout .spotlight__badge { background: linear-gradient(90deg, #22d3ee, #0284c7); color: #fff; }
.spotlight--blockout .spotlight__art { object-position: 50% 30%; }
.spotlight--minecraft.spotlight--blockout .spotlight__cta { border-color: rgba(34, 211, 238, 0.55); background: linear-gradient(135deg, #22d3ee, #0284c7); box-shadow: 0 10px 28px rgba(2, 132, 199, 0.45); }
.spotlight--frost { --accent: 239, 68, 68; }
.spotlight--frost .spotlight__badge { background: linear-gradient(90deg, #dc2626, #16a34a); color: #fff; }
.spotlight--frost .spotlight__art { object-position: 50% 30%; }
.spotlight--minecraft.spotlight--frost .spotlight__cta { border-color: rgba(239, 68, 68, 0.55); background: linear-gradient(135deg, #ef4444, #b91c1c 55%, #15803d); box-shadow: 0 10px 28px rgba(185, 28, 28, 0.4); }
/* Minecraft cards in plain rows on a plain dark panel (no big background picture) */
.pack-group--minecraft.tier.pack-group { background: rgba(10, 10, 16, 0.92); }
@media (min-width: 921px) {
  .pack-group__tiers--seven { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 860px) {
  .up-hero__inner { grid-template-columns: 1fr; }
  .up-hero__art { order: -1; }
  .up-hero__poster { width: min(78%, 340px); }
}

/* Don't Look Down! card */
.spotlight--dld { --accent: 217, 70, 239; }
.spotlight--dld .spotlight__badge { background: linear-gradient(90deg, #ff2bd6, #ff7a1a, #ffd21f, #2ee86a, #16d9f2, #7a46ff, #ff2bd6); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); }
.spotlight--dld .spotlight__art { object-position: 50% 30%; }
.spotlight--minecraft.spotlight--dld .spotlight__cta { border-color: rgba(232, 121, 249, 0.55); background: linear-gradient(135deg, #e879f9, #a21caf 55%, #2563eb); box-shadow: 0 10px 28px rgba(162, 28, 175, 0.45); }
