/* ===== Minecraft Mini Games page ===== */

/* ---------- opening animation (blocks build the title, then blow apart) ---------- */
html.mgi-lock { overflow: hidden; }
.mgi { position: fixed; inset: 0; z-index: 9999; background: #07070b; animation: mgiGone 0s linear 9s forwards; }
.mgi.is-live { background: transparent; }
@keyframes mgiGone { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.mgi__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mgi__tag, .mgi__sub {
  position: absolute; left: 0; right: 0; margin: 0; text-align: center; pointer-events: none;
  font: 12px/1.4 "Press Start 2P", monospace; letter-spacing: 0.18em; color: #e5e7eb;
  opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.mgi__tag { top: 14%; color: #a3a3b8; }
.mgi__sub { bottom: 16%; font-size: clamp(12px, 1.8vw, 18px); text-shadow: 0 3px 0 #000; }
.mgi__sub b { font-weight: 400; color: #a3ff12; text-shadow: 0 3px 0 #1f4d00, 0 0 18px rgba(163, 255, 18, 0.8); }
.mgi.show-tag .mgi__tag, .mgi.show-sub .mgi__sub { opacity: 1; transform: none; }
.mgi.is-out .mgi__tag, .mgi.is-out .mgi__sub { opacity: 0; transform: translateY(-10px); }
.mgi__skip {
  position: absolute; right: 18px; bottom: 18px; padding: 10px 14px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 4px;
  background: rgba(0, 0, 0, 0.45); color: #fff; cursor: pointer; font: 10px/1 "Press Start 2P", monospace; letter-spacing: 0.08em;
}
.mgi__skip:hover, .mgi__skip:focus-visible { border-color: #fff; outline: none; }
.mgi.is-out .mgi__skip { opacity: 0; pointer-events: none; }

/* ---------- hero ---------- */
.mg-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 9vw, 110px) 0 clamp(50px, 7vw, 80px); text-align: center; }
.mg-hero__blocks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mg-hero__blocks i {
  position: absolute; width: var(--s, 34px); aspect-ratio: 1; border-radius: 3px;
  background: var(--c);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18), inset -6px -6px 0 rgba(0, 0, 0, 0.28), inset 6px 6px 0 rgba(255, 255, 255, 0.18), 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0.55; animation: mgFloat var(--d, 9s) ease-in-out var(--dl, 0s) infinite;
}
@keyframes mgFloat { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-22px) rotate(calc(var(--r, 0deg) + 12deg)); } }
.mg-hero__kicker { display: inline-block; font: 10px/1 "Press Start 2P", monospace; letter-spacing: 0.14em; padding: 9px 12px; border-radius: 4px; background: rgba(0, 0, 0, 0.5); color: #a3ff12; border: 1px solid rgba(163, 255, 18, 0.4); }
.mg-hero__title { margin: 22px 0 0; line-height: 1; }
.mg-hero__mc { display: block; font: clamp(14px, 2.2vw, 22px)/1 "Press Start 2P", monospace; letter-spacing: 0.3em; color: #d1d5db; text-shadow: 0 3px 0 #000; }
.mg-hero__big { display: block; margin-top: 18px; font: clamp(34px, 7.4vw, 92px)/1.05 "Press Start 2P", monospace; letter-spacing: 0.02em; }
.mg-hero__big span { display: inline-block; color: var(--c); text-shadow: 0 0.08em 0 color-mix(in srgb, var(--c) 45%, #000), 0 0.16em 0 rgba(0, 0, 0, 0.6), 0 0 0.5em color-mix(in srgb, var(--c) 45%, transparent); animation: mgHop 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * 0.09s); }
.mg-hero__big .sp { width: 0.5em; }
@keyframes mgHop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-0.12em); } }
.mg-hero__lead { max-width: 640px; margin: 26px auto 0; font-size: clamp(16px, 1.6vw, 18px); color: rgba(255, 255, 255, 0.82); }
.mg-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- featured game: 1 Up ---------- */
@property --mg-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.mg-game {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 54px); align-items: center;
  padding: clamp(18px, 3vw, 34px); border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 90% at 0% 0%, rgba(34, 211, 238, 0.16), transparent 60%), radial-gradient(70% 80% at 100% 100%, rgba(192, 38, 211, 0.18), transparent 60%), #0a1330;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 70px rgba(0, 0, 0, 0.55);
}
.mg-game__climb { /* the climbing level bands behind everything */
  position: absolute; inset: 0; z-index: -1; opacity: 0.12;
  background: repeating-linear-gradient(180deg, #4f8f2e 0 34px, #9ca3af 34px 40px, #1e3a8a 40px 74px, #9ca3af 74px 80px, #b91c1c 80px 114px, #9ca3af 114px 120px, #ec4899 120px 130px, #f59e0b 130px 140px, #22c55e 140px 150px, #9ca3af 150px 156px, #4c1d95 156px 190px, #9ca3af 190px 196px);
  background-size: 100% 196px; animation: mgClimb 5s linear infinite;
}
@keyframes mgClimb { to { background-position: 0 196px; } }
.mg-game__poster { position: relative; border-radius: 16px; padding: 5px; background: conic-gradient(from var(--mg-ang), #a3ff12, #22d3ee, #c026d3, #f97316, #fde047, #a3ff12); animation: mgSpin 4s linear infinite; box-shadow: 0 0 40px rgba(34, 211, 238, 0.35), 0 24px 50px rgba(0, 0, 0, 0.5); transition: transform 0.3s ease; }
@keyframes mgSpin { to { --mg-ang: 360deg; } }
.mg-game__poster img { display: block; width: 100%; height: auto; border-radius: 12px; }
.mg-game__ribbon { position: absolute; z-index: 2; top: 14px; right: -8px; font: 14px/1 "Press Start 2P", monospace; color: #1a1300; background: #fde047; padding: 11px 13px; box-shadow: 0 0 0 3px #fff, 0 8px 20px rgba(0, 0, 0, 0.45); transform: rotate(6deg); }
.mg-game__new { display: inline-block; font: 10px/1 "Press Start 2P", monospace; letter-spacing: 0.1em; color: #1a1300; background: #fde047; padding: 9px 11px; transform: rotate(-3deg); box-shadow: 0 0 0 2px #fff; animation: mgNew 1.6s ease-in-out infinite; }
@keyframes mgNew { 50% { transform: rotate(2deg) scale(1.06); } }
.mg-game__logo { display: block; width: min(100%, 440px); height: auto; margin: 18px 0 0; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); }
.mg-game__lead { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.mg-game__feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.mg-game__feat li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.1); font-weight: 700; font-size: 14px; }
.mg-game__feat li::before { content: ""; width: 10px; height: 10px; flex: none; background: #a3ff12; box-shadow: 0 0 10px #a3ff12; }
.mg-xp { margin-top: 20px; }
.mg-xp__label { display: flex; justify-content: space-between; font: 10px/1 "Press Start 2P", monospace; color: #c7f9a0; letter-spacing: 0.06em; }
.mg-xp__bar { position: relative; margin-top: 8px; height: 14px; background: #0b1a05; box-shadow: inset 0 0 0 2px #000, 0 0 0 1px rgba(163, 255, 18, 0.4); }
.mg-xp__bar i { position: absolute; left: 2px; top: 2px; bottom: 2px; width: 4%; background: linear-gradient(180deg, #d9ff7a, #7ed321 60%, #4d9a0f); transition: width 1.4s cubic-bezier(0.3, 0.7, 0.3, 1); }
.mg-xp.is-full .mg-xp__bar i { width: calc(100% - 4px); }
.mg-xp__pop { position: absolute; right: 0; top: -34px; font: 14px/1 "Press Start 2P", monospace; color: #a3ff12; text-shadow: 0 3px 0 #1f4d00, 0 0 16px rgba(163, 255, 18, 0.9); animation: mgPop 1s ease-out forwards; pointer-events: none; }
@keyframes mgPop { 0% { opacity: 0; transform: translateY(14px) scale(0.6); } 25% { opacity: 1; transform: translateY(-4px) scale(1.2); } 100% { opacity: 0; transform: translateY(-40px); } }
.mg-game__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 24px; }
.mg-btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 6px; text-decoration: none;
  font: 13px/1 "Press Start 2P", monospace; letter-spacing: 0.04em; color: #07120a;
  background: linear-gradient(180deg, #c8ff4d, #7ee81a); box-shadow: 0 6px 0 #3f8a00, 0 0 28px rgba(163, 255, 18, 0.5);
  transition: transform 0.12s ease, filter 0.15s ease;
}
.mg-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.mg-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #3f8a00; }
.mg-btn__price { padding: 7px 9px; border-radius: 4px; background: #07120a; color: #a3ff12; }
.mg-game__note { font-size: 13px; color: rgba(255, 255, 255, 0.65); }

/* ---------- horror game: I'm a Streamer, Get Me Out of Here! ---------- */
.mg-game + .mg-game { margin-top: 28px; }
.mg-game--horror { background: radial-gradient(80% 90% at 0% 0%, rgba(239, 68, 68, 0.24), transparent 60%), radial-gradient(70% 80% at 100% 100%, rgba(127, 29, 29, 0.5), transparent 60%), #120406; box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35), 0 30px 70px rgba(0, 0, 0, 0.55); }
.mg-game--horror .mg-game__climb { opacity: 0.16; background: repeating-linear-gradient(180deg, #450a0a 0 70px, #57534e 70px 78px, #1c1917 78px 148px, #57534e 148px 156px); background-size: 100% 156px; animation: mgDescend 9s linear infinite; }
@keyframes mgDescend { to { background-position: 0 -156px; } }
.mg-game--horror .mg-game__poster { background: conic-gradient(from var(--mg-ang), #ef4444, #450a0a, #f97316, #450a0a, #ef4444); box-shadow: 0 0 44px rgba(239, 68, 68, 0.45), 0 24px 50px rgba(0, 0, 0, 0.5); }
.mg-game--horror .mg-game__ribbon { color: #fff; background: #dc2626; }
.mg-game--horror .mg-game__new { color: #fff; background: #dc2626; }
.mg-slogo { position: relative; width: min(100%, 580px); margin: 18px 0 0; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); }
.mg-slogo img { display: block; width: 100%; height: auto; }
/* sits exactly over the red button in the logo: lit, then dark, like a recording light */
.mg-slogo__light { position: absolute; left: 15.04%; top: 27.21%; width: 5.35%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.mg-slogo__light::before, .mg-slogo__light::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.mg-slogo__light::before { background: radial-gradient(circle at 42% 36%, #5a0d0d, #2a0404 72%); opacity: 0; animation: mgLiveOff 1.3s linear infinite; }
.mg-slogo__light::after { box-shadow: 0 0 14px 4px rgba(255, 40, 40, 0.9), 0 0 36px 12px rgba(255, 0, 0, 0.45); animation: mgLiveGlow 1.3s linear infinite; }
@keyframes mgLiveOff { 0%, 50% { opacity: 0; } 56%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mgLiveGlow { 0%, 50% { opacity: 1; } 56%, 94% { opacity: 0; } 100% { opacity: 1; } }
.mg-game--horror .mg-game__feat li::before { background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.mg-rooms { margin-top: 20px; }
.mg-rooms__label { display: flex; justify-content: space-between; font: 10px/1 "Press Start 2P", monospace; color: #fca5a5; letter-spacing: 0.06em; }
.mg-rooms__grid { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 3px; margin-top: 8px; }
.mg-rooms__grid i { height: 14px; background: #1c0a0a; box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.3); transition: background 0.25s ease; }
.mg-rooms__grid i.is-lit { background: #991b1b; }
.mg-rooms__grid i.is-now { background: #fecaca; box-shadow: 0 0 12px #ef4444; }
.mg-game--horror .mg-btn { color: #fff; background: linear-gradient(180deg, #ef4444, #b91c1c); box-shadow: 0 6px 0 #5f0f0f, 0 0 28px rgba(239, 68, 68, 0.5); }
.mg-game--horror .mg-btn:active { box-shadow: 0 2px 0 #5f0f0f; }
.mg-game--horror .mg-btn__price { background: #1c0505; color: #fecaca; }
/* ---------- Drop or Die: falling through trippy rainbow towers ---------- */
.mg-game--drop { background: radial-gradient(80% 90% at 0% 0%, rgba(59, 130, 246, 0.24), transparent 60%), radial-gradient(70% 80% at 100% 100%, rgba(217, 70, 239, 0.3), transparent 60%), #0c0620; box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.4), 0 30px 70px rgba(0, 0, 0, 0.55); }
.mg-game--drop .mg-game__climb { opacity: 0.16; background: repeating-linear-gradient(180deg, #ef4444 0 22px, #f97316 22px 44px, #facc15 44px 66px, #22c55e 66px 88px, #3b82f6 88px 110px, #a855f7 110px 132px, #ec4899 132px 154px); background-size: 100% 154px; animation: mgFall 1.8s linear infinite; }
@keyframes mgFall { to { background-position: 0 -154px; } }
.mg-game--drop .mg-game__poster { box-shadow: 0 0 46px rgba(217, 70, 239, 0.5), 0 24px 50px rgba(0, 0, 0, 0.5); }
.mg-game--drop .mg-game__ribbon, .mg-game--drop .mg-game__new { color: #fff; background: linear-gradient(90deg, #3b82f6, #a855f7, #ef4444); }
.mg-game--drop .mg-game__feat li::before { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.mg-game--drop .mg-game__feat li:nth-child(even)::before { background: #f43f5e; box-shadow: 0 0 10px #f43f5e; }
.mg-game--drop .mg-btn { color: #fff; background: linear-gradient(180deg, #38bdf8, #2563eb); box-shadow: 0 6px 0 #1e1b6b, 0 0 28px rgba(168, 85, 247, 0.55); }
.mg-game--drop .mg-btn:active { box-shadow: 0 2px 0 #1e1b6b; }
.mg-game--drop .mg-btn__price { background: #0c0620; color: #fde047; }

/* animated logo: floats like it's falling, crown glows, shines and sparkles */
.mg-dlogo { width: min(100%, 520px); margin: 22px 0 0; }
.mg-dlogo__float { position: relative; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(168, 85, 247, 0.35)); animation: mgDrift 3.4s ease-in-out infinite; }
.mg-dlogo__float > img { display: block; width: 100%; height: auto; }
@keyframes mgDrift { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(9px) rotate(1.2deg); } }
.mg-dlogo__crown { position: absolute; left: 39.09%; top: 3.12%; width: 22.45%; pointer-events: none; animation: mgCrown 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.mg-dlogo__crown img { display: block; width: 100%; height: auto; }
.mg-dlogo__crown::after { /* shine sweep, clipped to the crown shape */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.95) 46%, rgba(255, 250, 200, 0.9) 50%, transparent 66%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; mix-blend-mode: screen;
  -webkit-mask: url("assets/dropordie-crown.webp") center / 100% 100% no-repeat; mask: url("assets/dropordie-crown.webp") center / 100% 100% no-repeat;
  animation: mgShine 2.4s ease-in-out infinite;
}
@keyframes mgCrown {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1) drop-shadow(0 0 6px rgba(253, 224, 71, 0.55)); }
  50% { transform: translateY(-3%) scale(1.04); filter: brightness(1.22) drop-shadow(0 0 18px rgba(253, 224, 71, 0.95)) drop-shadow(0 0 34px rgba(251, 146, 60, 0.6)); }
}
@keyframes mgShine { 0%, 35% { background-position: 160% 0; } 75%, 100% { background-position: -60% 0; } }
.mg-dlogo__spark { position: absolute; left: var(--x); top: var(--y); width: calc(5.2% * var(--sz, 1)); aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); pointer-events: none;
  background: radial-gradient(circle, #fff 0 18%, #fde047 40%, transparent 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px #fde047); animation: mgTwinkle 2.6s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes mgTwinkle { 0%, 55%, 100% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; } 70% { transform: translate(-50%, -50%) scale(1) rotate(45deg); opacity: 1; } 85% { transform: translate(-50%, -50%) scale(0.4) rotate(90deg); opacity: 0.6; } }

/* depth meter */
.mg-fall { margin-top: 20px; }
.mg-fall__label { display: flex; justify-content: space-between; font: 10px/1 "Press Start 2P", monospace; color: #c4b5fd; letter-spacing: 0.06em; }
.mg-fall__label span:last-child { color: #fda4af; animation: mgNew 1.2s ease-in-out infinite; }
.mg-fall__bar { position: relative; margin-top: 8px; height: 14px; overflow: visible; background: repeating-linear-gradient(90deg, #ef4444 0 14px, #f97316 14px 28px, #facc15 28px 42px, #22c55e 42px 56px, #3b82f6 56px 70px, #a855f7 70px 84px, #ec4899 84px 98px); background-size: 98px 100%; box-shadow: inset 0 0 0 2px #000, 0 0 0 1px rgba(168, 85, 247, 0.5); animation: mgStripe 0.9s linear infinite; }
.mg-fall__bar::before { content: ""; position: absolute; inset: 2px; background: rgba(12, 6, 32, 0.45); }
@keyframes mgStripe { to { background-position: 98px 0; } }
.mg-fall__bar i { position: absolute; top: -5px; width: 14px; height: 24px; left: 100%; background: linear-gradient(180deg, #e5e7eb, #6b7280); clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(0 0 4px #f43f5e); }
.mg-fall.is-run .mg-fall__bar i { animation: mgSpike 1.6s linear infinite; }
@keyframes mgSpike { from { left: 100%; } to { left: -14px; } }
.mg-fall__pop { position: absolute; right: 0; top: -34px; font: 14px/1 "Press Start 2P", monospace; color: #fde047; text-shadow: 0 3px 0 #4c1d95, 0 0 16px rgba(217, 70, 239, 0.9); animation: mgPop 1s ease-out forwards; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .mg-game--horror .mg-game__climb, .mg-game--horror .mg-game__poster { animation: none; }
}
@media (max-width: 520px) {
  .mg-rooms__grid { grid-template-columns: repeat(13, minmax(0, 1fr)); }
}

/* ---------- coming soon ---------- */
.mg-soon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.mg-soon__card { display: grid; justify-items: center; gap: 14px; padding: 30px 20px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, 0.03); border: 2px dashed rgba(255, 255, 255, 0.16); }
.mg-soon__block {
  width: 74px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 4px;
  font: 30px/1 "Press Start 2P", monospace; color: #fff; text-shadow: 3px 3px 0 #7a4b00;
  background: linear-gradient(135deg, #ffd23f, #f59e0b); box-shadow: inset 0 0 0 4px #b45309, inset -6px -6px 0 rgba(0, 0, 0, 0.2), inset 6px 6px 0 rgba(255, 255, 255, 0.3), 0 12px 26px rgba(0, 0, 0, 0.5);
  animation: mgBob 2.4s ease-in-out infinite;
}
.mg-soon__card:nth-child(2) .mg-soon__block { animation-delay: 0.4s; }
.mg-soon__card:nth-child(3) .mg-soon__block { animation-delay: 0.8s; }
@keyframes mgBob { 50% { transform: translateY(-10px); } }
.mg-soon__card h3 { margin: 0; font: 12px/1.4 "Press Start 2P", monospace; color: rgba(255, 255, 255, 0.85); }
.mg-soon__card p { margin: 0; font-size: 14px; color: var(--muted, #a1a1b5); }

@media (max-width: 900px) {
  .mg-game { grid-template-columns: minmax(0, 1fr); }
  .mg-game__poster { max-width: 360px; margin: 0 auto; }
  .mg-soon { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .mg-game__feat { grid-template-columns: minmax(0, 1fr); }
  .mg-btn { font-size: 11px; padding: 15px 16px; }
}
.mg-game .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Psyched Drop logo: colours flow through the logo and the eye blinks ---------- */
.mg-plogo { width: min(100%, 560px); }
.mg-plogo__trip { position: relative; animation: mgTrip 10s linear infinite; }
.mg-plogo__trip > img { display: block; width: 100%; height: auto; }
@keyframes mgTrip { from { filter: hue-rotate(0deg) saturate(1.1); } to { filter: hue-rotate(360deg) saturate(1.1); } }
/* a second copy, shifted round the colour wheel, shown through moving diagonal bands */
.mg-plogo__trip > .mg-plogo__wave {
  position: absolute; inset: 0; pointer-events: none; filter: hue-rotate(160deg) saturate(1.35);
  -webkit-mask: linear-gradient(115deg, transparent 0 20%, #000 34% 44%, transparent 58% 100%) 0 0 / 300% 100% repeat-x;
  mask: linear-gradient(115deg, transparent 0 20%, #000 34% 44%, transparent 58% 100%) 0 0 / 300% 100% repeat-x;
  animation: mgWave 4.5s linear infinite;
}
@keyframes mgWave { from { -webkit-mask-position: 150% 0; mask-position: 150% 0; } to { -webkit-mask-position: -150% 0; mask-position: -150% 0; } }
/* eyelid over the eye in the triangle */
.mg-plogo__eye { position: absolute; left: 44.78%; top: 17.9%; width: 12.02%; height: 8.08%; pointer-events: none; clip-path: ellipse(50% 47% at 50% 50%); }
.mg-plogo__eye i {
  position: absolute; inset: 0; transform: scaleY(0); transform-origin: 50% 0;
  background: linear-gradient(180deg, #4a0b5c 0%, #b0179f 55%, #e23ad6 82%, #2a0433 82% 100%);
  animation: mgBlink 5.2s ease-in-out infinite;
}
@keyframes mgBlink {
  0%, 86%, 100% { transform: scaleY(0); }
  89% { transform: scaleY(1.04); }
  92% { transform: scaleY(0); }
  94.5% { transform: scaleY(1.04); }
  97.5% { transform: scaleY(0); }
}
/* ---------- 1 Up logo: bobs, glows, shines; the arrows pump and fire ghost arrows upward ---------- */
.mg-ulogo { width: min(100%, 470px); margin: 22px 0 6px; }
.mg-ulogo__bob { position: relative; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55)); animation: upBob2 2.6s ease-in-out infinite; }
.mg-ulogo__main { display: block; width: 100%; height: auto; animation: upGlow2 2.6s ease-in-out infinite; }
@keyframes upBob2 {
  0%, 100% { transform: translateY(0) rotate(-0.8deg) scale(1); }
  12% { transform: translateY(-7px) rotate(0deg) scale(1.035); }
  24% { transform: translateY(0) rotate(0.4deg) scale(0.995); }
  50% { transform: translateY(-4px) rotate(0.8deg) scale(1); }
}
@keyframes upGlow2 {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.45)); }
  12% { filter: brightness(1.18) drop-shadow(0 0 18px rgba(34, 211, 238, 0.95)) drop-shadow(0 0 34px rgba(163, 230, 53, 0.55)); }
  40% { filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.55)); }
}
/* shine sweep clipped to the logo's own shape */
.mg-ulogo__shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 48%, rgba(236, 255, 180, 0.6) 52%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 170% 0;
  -webkit-mask: url("assets/1up-logo-v2.webp") center / 100% 100% no-repeat; mask: url("assets/1up-logo-v2.webp") center / 100% 100% no-repeat;
  animation: upShine2 2.6s ease-in-out infinite;
}
@keyframes upShine2 { 0%, 8% { background-position: 170% 0; } 45%, 100% { background-position: -70% 0; } }
.mg-ulogo__arrow { position: absolute; pointer-events: none; }
.mg-ulogo__arrow--l { left: 0; top: 16.094%; width: 19.586%; height: 81.33%; }
.mg-ulogo__arrow--r { left: 81.105%; top: 17.597%; width: 18.895%; height: 79.185%; }
.mg-ulogo__arrow img { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 100%; }
.mg-ulogo__arrow img:nth-child(1) { animation: upPump2 1.3s cubic-bezier(0.3, 0, 0.3, 1) infinite; }
.mg-ulogo__arrow img:nth-child(2), .mg-ulogo__arrow img:nth-child(3) { opacity: 0; animation: upGhost2 1.3s ease-out infinite; }
.mg-ulogo__arrow img:nth-child(3) { animation-delay: 0.65s; }
.mg-ulogo__arrow--r img:nth-child(1), .mg-ulogo__arrow--r img:nth-child(2) { animation-delay: 0.32s; }
.mg-ulogo__arrow--r img:nth-child(3) { animation-delay: 0.97s; }
@keyframes upPump2 {
  0%, 100% { transform: translateY(0) scale(1); filter: none; }
  30% { transform: translateY(-4%) scale(1.08); filter: brightness(1.35) drop-shadow(0 0 12px rgba(190, 242, 100, 0.95)); }
  55% { transform: translateY(0) scale(0.98); filter: none; }
}
@keyframes upGhost2 {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: 0.7; }
  100% { transform: translateY(-70%) scale(0.75); opacity: 0; filter: brightness(1.7) drop-shadow(0 0 14px rgba(190, 242, 100, 0.95)); }
}

/* ---------- hero: neon "INTERACTIVE" plate under MINI GAMES ---------- */
.mg-hero__chip {
  --chip: #e879f9;
  position: relative; display: inline-block; margin-top: clamp(18px, 2.4vw, 28px);
  filter: drop-shadow(0 0 10px rgba(232, 121, 249, 0.75)) drop-shadow(0 0 26px rgba(168, 85, 247, 0.5)) drop-shadow(0 6px 0 rgba(0, 0, 0, 0.6));
  animation: mgChipOn 1.6s steps(1) 0.9s both, mgChipGlow 2.6s ease-in-out 2.5s infinite;
}
/* pixel-notched plate: neon rim + dark purple inside */
.mg-hero__chip::before, .mg-hero__chipin {
  clip-path: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
}
.mg-hero__chip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f0abfc, var(--chip), #a855f7, var(--chip), #f0abfc); background-size: 200% 100%; animation: mgChipRim 3s linear infinite; }
.mg-hero__chipin {
  position: relative; display: block; margin: 4px; overflow: hidden;
  padding: clamp(10px, 1.4vw, 16px) clamp(18px, 3vw, 34px) clamp(9px, 1.3vw, 15px);
  font: clamp(14px, 2.6vw, 30px)/1 "Press Start 2P", monospace; letter-spacing: 0.12em; color: #fff;
  text-shadow: 0 3px 0 #3b0764, 0 0 12px rgba(240, 171, 252, 0.9);
  background: linear-gradient(180deg, #4c1d95, #2e1065 60%, #1e0b3d);
}
/* shine sweeping across the plate */
.mg-hero__chipin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 48%, rgba(255, 255, 255, 0.15) 54%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0; mix-blend-mode: screen;
  animation: mgChipShine 3.2s ease-in-out 2.5s infinite;
}
@keyframes mgChipOn { 0% { opacity: 0; } 10% { opacity: 1; } 18% { opacity: 0.15; } 26% { opacity: 1; } 34% { opacity: 0.4; } 42%, 100% { opacity: 1; } }
@keyframes mgChipGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(232, 121, 249, 0.75)) drop-shadow(0 0 26px rgba(168, 85, 247, 0.5)) drop-shadow(0 6px 0 rgba(0, 0, 0, 0.6)); }
  50% { filter: drop-shadow(0 0 16px rgba(240, 171, 252, 0.95)) drop-shadow(0 0 40px rgba(168, 85, 247, 0.75)) drop-shadow(0 6px 0 rgba(0, 0, 0, 0.6)); }
}
@keyframes mgChipRim { to { background-position: -200% 0; } }
@keyframes mgChipShine { 0%, 40% { background-position: 160% 0; } 80%, 100% { background-position: -60% 0; } }
.mg-hero__title > .mg-hero__chip { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  .mg-hero__chip, .mg-hero__chip::before, .mg-hero__chipin::after { animation: none; }
}

/* ---------- BlockOut: water obstacle course (red / white / blue) ---------- */
.mg-game--blockout { background: radial-gradient(80% 90% at 0% 0%, rgba(56, 189, 248, 0.26), transparent 60%), radial-gradient(70% 80% at 100% 100%, rgba(239, 68, 68, 0.26), transparent 60%), #061229; box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45), 0 30px 70px rgba(0, 0, 0, 0.55); }
.mg-game--blockout .mg-game__climb { opacity: 0.1; background: repeating-linear-gradient(135deg, #ef4444 0 22px, #f8fafc 22px 44px); background-size: 62.2px 62.2px; animation: boBars 1.6s linear infinite; }
@keyframes boBars { to { background-position: 62.2px 0; } }
.mg-game--blockout .mg-game__poster { box-shadow: 0 0 46px rgba(56, 189, 248, 0.5), 0 24px 50px rgba(0, 0, 0, 0.5); }
.mg-game--blockout .mg-game__ribbon, .mg-game--blockout .mg-game__new { color: #fff; background: linear-gradient(90deg, #2563eb, #0ea5e9, #ef4444); }
.mg-game--blockout .mg-game__feat li::before { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.mg-game--blockout .mg-game__feat li:nth-child(even)::before { background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.mg-game--blockout .mg-btn { color: #fff; background: linear-gradient(180deg, #f87171, #dc2626); box-shadow: 0 6px 0 #7f1d1d, 0 0 28px rgba(56, 189, 248, 0.5); }
.mg-game--blockout .mg-btn:active { box-shadow: 0 2px 0 #7f1d1d; }
.mg-game--blockout .mg-btn__price { background: #061229; color: #fde047; }

/* animated logo: the water splashes slosh behind the lettering, drops fly off, a shine runs across */
.mg-blogo { width: min(100%, 560px); margin: 22px 0 0; }
.mg-blogo__float { position: relative; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); animation: mgDrift 3.4s ease-in-out infinite; }
.mg-blogo__base { position: relative; z-index: 2; display: block; width: 100%; height: auto; animation: boGlow 2.4s ease-in-out infinite; }
@keyframes boGlow { 0%, 100% { filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35)); } 50% { filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.85)); } }
.mg-blogo__splash { position: absolute; z-index: 1; height: auto; pointer-events: none; will-change: transform; }
.mg-blogo__splash--tl { left: 15.88%; top: 0; width: 24.57%; transform-origin: 88% 100%; animation: boSloshL 2.4s ease-in-out infinite; }
.mg-blogo__splash--tr { left: 61.9%; top: 0; width: 22.37%; transform-origin: 12% 100%; animation: boSloshR 2.4s ease-in-out infinite; animation-delay: -1.2s; }
.mg-blogo__splash--bl { left: 10.57%; top: 59.07%; width: 31%; transform-origin: 60% 58%; animation: boRipple 1.9s ease-in-out infinite; }
.mg-blogo__splash--br { left: 62%; top: 83.51%; width: 9.35%; transform-origin: 40% 13%; animation: boRipple 1.9s ease-in-out infinite; animation-delay: -0.8s; }
@keyframes boSloshL {
  0%, 100% { transform: rotate(0deg) scale(1, 1) skewX(0deg); filter: brightness(1); }
  30% { transform: rotate(-6deg) scale(1.05, 1.12) skewX(-5deg); filter: brightness(1.18); }
  65% { transform: rotate(3deg) scale(0.98, 0.93) skewX(3deg); filter: brightness(0.95); }
}
@keyframes boSloshR {
  0%, 100% { transform: rotate(0deg) scale(1, 1) skewX(0deg); filter: brightness(1); }
  30% { transform: rotate(6deg) scale(1.05, 1.12) skewX(5deg); filter: brightness(1.18); }
  65% { transform: rotate(-3deg) scale(0.98, 0.93) skewX(-3deg); filter: brightness(0.95); }
}
@keyframes boRipple { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, 1.09); } }
.mg-blogo__shine { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.85) 47%, rgba(186, 230, 253, 0.8) 51%, transparent 64%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; mix-blend-mode: screen;
  -webkit-mask: url("assets/blockout-logo-base.webp") center / 100% 100% no-repeat; mask: url("assets/blockout-logo-base.webp") center / 100% 100% no-repeat;
  animation: mgShine 3.2s ease-in-out infinite; }
.mg-blogo__drop { position: absolute; z-index: 3; left: var(--x); top: var(--y); width: calc(2.6% * var(--sz, 1)); aspect-ratio: 0.8; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 35% 35%, #fff 0 16%, #7dd3fc 38%, #0284c7 78%); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.9)); animation: boDrop 2.6s ease-out infinite; animation-delay: var(--dl, 0s); }
@keyframes boDrop {
  0% { opacity: 0; transform: translate(0, 8px) scale(0.4); }
  15% { opacity: 1; }
  45% { opacity: 1; transform: translate(calc(var(--dx, 0px) * 0.6), -28px) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 0px), 34px) scale(0.6); }
}

/* obstacle course meter: you hop the blocks to the finish - or SPLASH */
.mg-course { margin-top: 20px; }
.mg-course__label { display: flex; justify-content: space-between; font: 10px/1 "Press Start 2P", monospace; color: #93c5fd; letter-spacing: 0.06em; }
.mg-course__label span:last-child { color: #fca5a5; animation: mgNew 1.2s ease-in-out infinite; }
.mg-course__bar { position: relative; margin: 14px 10px 0 0; height: 16px; background: repeating-linear-gradient(90deg, #1d4ed8 0 12px, #2563eb 12px 24px); background-size: 24px 100%; box-shadow: inset 0 0 0 2px #000, 0 0 0 1px rgba(56, 189, 248, 0.5); animation: boWater 1.2s linear infinite; }
@keyframes boWater { to { background-position: 24px 0; } }
.mg-course__bar::before { content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 6px; background: repeating-linear-gradient(90deg, #ef4444 0 12px, #f8fafc 12px 24px, transparent 24px 40px); }
.mg-course__bar i { position: absolute; bottom: 9px; left: var(--p, 0%); width: 12px; height: 18px; margin-left: -6px; background: linear-gradient(180deg, #8a4b28 0 28%, #e2a877 28% 52%, #141417 52% 84%, #f2f2f2 84%); box-shadow: 0 0 0 1px #000; }
.mg-course.is-run .mg-course__bar i { animation: boHop 0.42s ease-in-out infinite; }
.mg-course.is-dunk .mg-course__bar i { animation: boDunk 0.6s ease-in forwards; }
@keyframes boHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes boDunk { to { transform: translateY(18px); opacity: 0; } }
.mg-course__bar b { position: absolute; right: -8px; bottom: 0; width: 3px; height: 30px; background: #f8fafc; }
.mg-course__bar b::after { content: ""; position: absolute; left: 3px; top: 0; width: 14px; height: 10px; background: conic-gradient(#ef4444 25%, #fff 0 50%, #ef4444 0 75%, #fff 0) 0 0 / 7px 5px; }
.mg-course__pop { position: absolute; top: -40px; translate: -50% 0; white-space: nowrap; font: 13px/1 "Press Start 2P", monospace; color: #fde047; text-shadow: 0 3px 0 #1e3a8a, 0 0 16px rgba(56, 189, 248, 0.9); animation: mgPop 1s ease-out forwards; pointer-events: none; }
.mg-course__pop--splash { color: #7dd3fc; }
@media (prefers-reduced-motion: reduce) {
  .mg-game--blockout .mg-game__climb, .mg-blogo__float, .mg-blogo__base, .mg-blogo__splash, .mg-blogo__shine, .mg-course__bar, .mg-course.is-run .mg-course__bar i { animation: none; }
  .mg-blogo__drop { display: none; }
}

/* ---------- FrostFall: Christmas advent calendar drop (ice blue / Christmas red / pine green) ----------
   No reduced-motion switch-off here on purpose: the owner's Windows has animations off, and this logo is meant to move. */
.mg-game--frost { background: radial-gradient(80% 90% at 0% 0%, rgba(125, 211, 252, 0.22), transparent 60%), radial-gradient(70% 80% at 100% 100%, rgba(220, 38, 38, 0.28), transparent 60%), radial-gradient(60% 60% at 100% 0%, rgba(22, 163, 74, 0.18), transparent 60%), #07152b; box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.5), 0 30px 70px rgba(0, 0, 0, 0.55); }
/* falling snow behind the card */
.mg-game--frost .mg-game__climb { opacity: 0.55;
  background-image: radial-gradient(circle, #fff 0 1.6px, transparent 2.2px), radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1.1px, transparent 1.6px), radial-gradient(circle, rgba(191, 219, 254, 0.7) 0 2.2px, transparent 2.8px);
  background-size: 90px 90px, 60px 60px, 140px 140px; background-position: 0 0, 30px 20px, 70px 50px;
  animation: ffSnowBg 9s linear infinite; }
@keyframes ffSnowBg { to { background-position: 30px 90px, 50px 140px, 40px 190px; } }
.mg-game--frost .mg-game__poster { box-shadow: 0 0 46px rgba(147, 197, 253, 0.45), 0 0 90px rgba(220, 38, 38, 0.25), 0 24px 50px rgba(0, 0, 0, 0.5); }
/* solid red badges with a moving candy-cane border, so the text stays easy to read */
.mg-game--frost .mg-game__ribbon, .mg-game--frost .mg-game__new { color: #fff; text-shadow: 0 2px 0 #7f1d1d; border: 4px solid transparent;
  background: linear-gradient(180deg, #ef4444, #b91c1c) padding-box, repeating-linear-gradient(135deg, #dc2626 0 6px, #f8fafc 6px 12px) 0 0 / 17px 17px border-box;
  animation: ffCane 1.2s linear infinite; }
.mg-game--frost .mg-game__new { animation: ffCane 1.2s linear infinite, mgNew 1.6s ease-in-out infinite; }
@keyframes ffCane { to { background-position: 0 0, 17px 0; } }
.mg-game--frost .mg-game__feat li::before { background: #dc2626; box-shadow: 0 0 10px #ef4444; }
.mg-game--frost .mg-game__feat li:nth-child(even)::before { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.mg-game--frost .mg-btn { color: #fff; background: linear-gradient(180deg, #ef4444, #b91c1c); box-shadow: 0 6px 0 #14532d, 0 0 28px rgba(147, 197, 253, 0.55); }
.mg-game--frost .mg-btn:active { box-shadow: 0 2px 0 #14532d; }
.mg-game--frost .mg-btn__price { background: #07152b; color: #bae6fd; }

/* the animated logo: it floats, gives a little jingle now and then, icy shine runs across it,
   the snowflake and the present glow, the stars twinkle, snow falls past it and fairy lights blink underneath */
.mg-flogo { position: relative; width: min(100%, 540px); margin: 22px 0 0; }
.mg-flogo__float { position: relative; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); animation: mgDrift 3.6s ease-in-out infinite; }
.mg-flogo__jingle { position: relative; transform-origin: 50% 90%; animation: ffJingle 5s ease-in-out infinite; }
@keyframes ffJingle {
  0%, 74%, 100% { transform: rotate(0deg) scale(1); }
  77% { transform: rotate(-3deg) scale(1.03); } 80% { transform: rotate(2.6deg) scale(1.04); }
  83% { transform: rotate(-1.8deg) scale(1.03); } 86% { transform: rotate(1deg) scale(1.01); } 89% { transform: rotate(0deg) scale(1); }
}
.mg-flogo__base { position: relative; z-index: 2; display: block; width: 100%; height: auto; animation: ffGlow 4s ease-in-out infinite; }
@keyframes ffGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.55)) drop-shadow(0 0 22px rgba(56, 189, 248, 0.3)); }
  50% { filter: drop-shadow(0 0 10px rgba(248, 113, 113, 0.6)) drop-shadow(0 0 26px rgba(250, 204, 21, 0.3)); }
}
.mg-flogo__halo { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; translate: -50% -50%; }
.mg-flogo__halo--flake { left: 50%; top: 18%; width: 40%; aspect-ratio: 1; background: radial-gradient(circle, rgba(186, 230, 253, 0.85), rgba(56, 189, 248, 0.35) 40%, transparent 68%); animation: ffHalo 2.8s ease-in-out infinite; }
.mg-flogo__halo--gift { left: 50%; top: 86%; width: 22%; aspect-ratio: 1; background: radial-gradient(circle, rgba(253, 224, 71, 0.85), rgba(239, 68, 68, 0.4) 45%, transparent 70%); animation: ffHalo 2.2s ease-in-out infinite; animation-delay: -1.1s; }
@keyframes ffHalo { 0%, 100% { opacity: 0.45; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.12); } }
.mg-flogo__shine { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.9) 46%, rgba(186, 230, 253, 0.85) 50%, rgba(254, 202, 202, 0.5) 54%, transparent 66%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; mix-blend-mode: screen;
  -webkit-mask: url("assets/frostfall-logo.webp") center / 100% 100% no-repeat; mask: url("assets/frostfall-logo.webp") center / 100% 100% no-repeat;
  animation: mgShine 3.6s ease-in-out infinite; }
/* four-point twinkling stars on the logo's own little stars */
.mg-flogo__star { position: absolute; z-index: 4; left: var(--x); top: var(--y); width: calc(5.4% * var(--sz, 1)); aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0 18%, #e0f2fe 30%, #7dd3fc 60%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px #bae6fd); animation: ffTwinkle 2.4s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes ffTwinkle { 0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); } 45% { opacity: 1; transform: scale(1.15) rotate(45deg); } 60% { opacity: 0.9; transform: scale(0.9) rotate(60deg); } }
/* snow drifting down over the logo */
.mg-flogo__snow { position: absolute; z-index: 5; inset: -6% -2% -4%; pointer-events: none; overflow: hidden; }
.mg-flogo__snow i { position: absolute; top: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(186, 230, 253, 0.9); opacity: 0.9;
  animation: ffFlake var(--d) linear infinite; animation-delay: var(--dl, 0s); }
@keyframes ffFlake {
  0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 0.95; }
  50% { transform: translate(14px, 200px); } 90% { opacity: 0.9; }
  100% { transform: translate(-8px, 420px); opacity: 0; }
}
/* a string of fairy lights blinking under the logo */
.mg-flogo__lights { position: relative; display: flex; justify-content: space-between; margin: 8px 6% 0; padding-top: 6px; }
.mg-flogo__lights::before { content: ""; position: absolute; left: -2%; right: -2%; top: 0; height: 14px; border-bottom: 2px solid #14532d; border-radius: 0 0 50% 50%; }
.mg-flogo__lights i { position: relative; width: 9px; height: 13px; border-radius: 50% 50% 45% 45%; background: var(--c); box-shadow: 0 0 10px var(--c), 0 0 18px var(--c); animation: ffBulb 1.6s steps(1) infinite; }
.mg-flogo__lights i::before { content: ""; position: absolute; left: 2px; top: -4px; width: 5px; height: 4px; background: #334155; }
.mg-flogo__lights i:nth-child(4n + 1) { --c: #ef4444; }
.mg-flogo__lights i:nth-child(4n + 2) { --c: #22c55e; animation-delay: -0.4s; }
.mg-flogo__lights i:nth-child(4n + 3) { --c: #facc15; animation-delay: -0.8s; }
.mg-flogo__lights i:nth-child(4n + 4) { --c: #38bdf8; animation-delay: -1.2s; }
.mg-flogo__lights i:nth-child(odd) { margin-top: 5px; }
@keyframes ffBulb { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; box-shadow: none; } }

/* advent calendar meter: the doors open one by one */
.mg-advent { margin-top: 20px; }
.mg-advent__label { display: flex; justify-content: space-between; font: 10px/1 "Press Start 2P", monospace; color: #bae6fd; letter-spacing: 0.06em; }
.mg-advent__label span:last-child { color: #fca5a5; }
.mg-advent__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.mg-advent__grid i { position: relative; height: 22px; font: 7px/22px "Press Start 2P", monospace; font-style: normal; text-align: center; color: #fde68a;
  background: linear-gradient(180deg, #b91c1c, #7f1d1d); box-shadow: inset 0 0 0 1px rgba(254, 202, 202, 0.35), 0 2px 0 #450a0a; transition: background 0.3s ease, color 0.3s ease; }
.mg-advent__grid i:nth-child(even) { background: linear-gradient(180deg, #15803d, #14532d); box-shadow: inset 0 0 0 1px rgba(187, 247, 208, 0.35), 0 2px 0 #052e16; }
.mg-advent__grid i.is-open { color: #facc15; background: #0c1a33; box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.5); font-size: 11px; }
.mg-advent__grid i.is-now { background: #fef3c7; color: #b91c1c; box-shadow: 0 0 14px #facc15; animation: ffDoor 0.5s ease-out; }
@keyframes ffDoor { 0% { transform: perspective(200px) rotateY(0); } 60% { transform: perspective(200px) rotateY(-70deg); } 100% { transform: perspective(200px) rotateY(0); } }
.mg-advent__pop { position: absolute; left: 50%; top: -34px; translate: -50% 0; white-space: nowrap; font: 13px/1 "Press Start 2P", monospace; color: #fde047; text-shadow: 0 3px 0 #7f1d1d, 0 0 16px rgba(250, 204, 21, 0.9); animation: mgPop 1.6s ease-out forwards; pointer-events: none; }
/* ---------- Don't Look Down!: sky-high parkour (sky blue / rainbow / magenta) ----------
   No reduced-motion switch-off on purpose, same as FrostFall: the owner's Windows has animations off. */
.mg-game--dld { background: radial-gradient(80% 90% at 0% 0%, rgba(56, 189, 248, 0.3), transparent 60%), radial-gradient(70% 80% at 100% 100%, rgba(217, 70, 239, 0.28), transparent 60%), radial-gradient(60% 60% at 100% 0%, rgba(250, 204, 21, 0.14), transparent 60%), #071a3d; box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.55), 0 30px 70px rgba(0, 0, 0, 0.55); }
/* blocky clouds drifting past behind the card */
.mg-game--dld .mg-game__climb { opacity: 0.16;
  background-image: radial-gradient(ellipse 46px 18px, #fff 0 30%, transparent 100%), radial-gradient(ellipse 30px 12px, #e0f2fe 0 30%, transparent 100%), radial-gradient(ellipse 60px 22px, #fff 0 30%, transparent 100%);
  background-size: 260px 170px, 190px 120px, 380px 240px; background-position: 0 20px, 80px 70px, 140px 10px;
  animation: dldClouds 22s linear infinite; }
@keyframes dldClouds { to { background-position: 260px 20px, 270px 70px, 520px 10px; } }
.mg-game--dld .mg-game__poster { box-shadow: 0 0 46px rgba(56, 189, 248, 0.45), 0 0 90px rgba(217, 70, 239, 0.3), 0 24px 50px rgba(0, 0, 0, 0.5); }
/* rainbow badges with the colours sliding through */
.mg-game--dld .mg-game__ribbon, .mg-game--dld .mg-game__new { color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
  background: linear-gradient(90deg, #ff2bd6, #ff7a1a, #ffd21f, #2ee86a, #16d9f2, #7a46ff, #ff2bd6) 0 0 / 200% 100%; animation: dldFlow 3s linear infinite; }
.mg-game--dld .mg-game__new { animation: dldFlow 3s linear infinite, mgNew 1.6s ease-in-out infinite; }
@keyframes dldFlow { to { background-position: -200% 0; } }
.mg-game--dld .mg-game__feat li::before { background: #e879f9; box-shadow: 0 0 10px #d946ef; }
.mg-game--dld .mg-game__feat li:nth-child(even)::before { background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
.mg-game--dld .mg-btn { color: #fff; background: linear-gradient(180deg, #e879f9, #a21caf); box-shadow: 0 6px 0 #1e3a8a, 0 0 28px rgba(56, 189, 248, 0.5); }
.mg-game--dld .mg-btn:active { box-shadow: 0 2px 0 #1e3a8a; }
.mg-game--dld .mg-btn__price { background: #071a3d; color: #a5f3fc; }

/* the animated logo: it floats and sways like it is about to slip, the DOWN! letters have
   rainbow colours flowing through them, a shine runs across and blocks fall away underneath */
.dld-logo { position: relative; isolation: isolate; width: min(100%, 560px); margin: 22px 0 0; }
.dld-logo__float { position: relative; z-index: 1; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); animation: mgDrift 3.6s ease-in-out infinite; }
.dld-logo__teeter { position: relative; transform-origin: 50% 100%; animation: dldTeeter 5s ease-in-out infinite; }
@keyframes dldTeeter {
  0%, 56%, 100% { transform: rotate(0deg) translateY(0); }
  60% { transform: rotate(-3.2deg) translateY(3%); } 64% { transform: rotate(2.6deg) translateY(1%); }
  68% { transform: rotate(-1.6deg) translateY(0); } 72% { transform: rotate(0.8deg); } 76% { transform: rotate(0deg); }
}
.dld-logo__base { position: relative; z-index: 1; display: block; width: 100%; height: auto; animation: dldGlow 3s ease-in-out infinite; }
@keyframes dldGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(232, 121, 249, 0.6)) drop-shadow(0 0 22px rgba(168, 85, 247, 0.3)); }
  50% { filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.65)) drop-shadow(0 0 26px rgba(56, 189, 248, 0.35)); }
}
/* rainbow flowing through DOWN! (masked to just those letters) */
.dld-logo__rainbow, .dld-logo__tex { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("assets/dld-down-mask.png") center / 100% 100% no-repeat; mask: url("assets/dld-down-mask.png") center / 100% 100% no-repeat; }
.dld-logo__rainbow { z-index: 2; overflow: hidden; }
.dld-logo__rainbow i { position: absolute; top: 0; bottom: 0; left: 0; width: 200%;
  background: linear-gradient(90deg, #ff5a8a 0%, #ff2bd6 7.5%, #ff7a1a 18%, #3ef03a 26%, #18d4f0 33%, #7a3cff 38%, #ffc21a 44%, #ff5a8a 50%,
    #ff2bd6 57.5%, #ff7a1a 68%, #3ef03a 76%, #18d4f0 83%, #7a3cff 88%, #ffc21a 94%, #ff5a8a 100%);
  animation: dldRainbow 4.5s linear infinite; }
@keyframes dldRainbow { from { transform: translateX(-50%); } to { transform: translateX(0); } }
/* the letters' own pixel texture and 3D shading laid back over the rainbow */
.dld-logo__tex { z-index: 3; background: url("assets/dld-logo.webp") center / 100% 100% no-repeat; filter: grayscale(1) contrast(1.35); mix-blend-mode: overlay; opacity: 0.85; }
.dld-logo__shine { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.85) 46%, rgba(165, 243, 252, 0.8) 50%, rgba(240, 171, 252, 0.5) 54%, transparent 66%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; mix-blend-mode: screen;
  -webkit-mask: url("assets/dld-logo.webp") center / 100% 100% no-repeat; mask: url("assets/dld-logo.webp") center / 100% 100% no-repeat;
  animation: mgShine 3.8s ease-in-out infinite; }
/* little blocks dropping away under the logo */
.dld-logo__fall { position: absolute; z-index: 0; left: 10%; right: 10%; top: 74%; height: 110px; pointer-events: none; }
.dld-logo__fall i { position: absolute; left: var(--x); top: 0; width: var(--s, 10px); height: var(--s, 10px); opacity: 0; background: var(--c);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.28), inset 2px 2px 0 rgba(255, 255, 255, 0.35), 0 0 10px var(--c);
  animation: dldFall var(--d, 2.4s) cubic-bezier(0.5, 0, 1, 1) infinite; animation-delay: var(--dl, 0s); }
@keyframes dldFall { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(110px) rotate(200deg); opacity: 0; } }

/* height meter: climbing the sky parkour, sometimes you slip */
.mg-sky { margin-top: 20px; }
.mg-sky__label { display: flex; justify-content: space-between; font: 10px/1 "Press Start 2P", monospace; color: #bae6fd; letter-spacing: 0.06em; }
.mg-sky__label span:last-child { color: #f0abfc; }
.mg-sky__bar { position: relative; height: 16px; margin-top: 10px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 18px, transparent 18px 26px), #0b1b3a; box-shadow: inset 0 0 0 2px rgba(147, 197, 253, 0.35); }
.mg-sky__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: linear-gradient(90deg, #ff2bd6, #ff7a1a, #ffd21f, #2ee86a, #16d9f2, #7a46ff, #ff2bd6) 0 0 / 320px 100%; box-shadow: 0 0 14px rgba(232, 121, 249, 0.6); transition: width 0.12s linear; animation: dldFlow 3s linear infinite; }
.mg-sky.is-slip .mg-sky__bar { animation: dldShake 0.45s ease-out; }
@keyframes dldShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.mg-sky__pop { position: absolute; top: -40px; translate: -50% 0; white-space: nowrap; font: 13px/1 "Press Start 2P", monospace; color: #fde047; text-shadow: 0 3px 0 #86198f, 0 0 16px rgba(232, 121, 249, 0.9); animation: mgPop 1.1s ease-out forwards; pointer-events: none; }
.mg-sky__pop--slip { color: #f0abfc; text-shadow: 0 3px 0 #1e3a8a, 0 0 16px rgba(56, 189, 248, 0.9); }

/* game links (#game-blockout etc.) land below the fixed header */
.mg-game { scroll-margin-top: 96px; }
