/* =========================================================
   SUPER MARIO 64 - o Castelo da Peach
   Tudo escopado em .sm64 (cabeçalho/rodapé do portal intactos)
   ========================================================= */

.sm64 {
  --m-red: #e4202a;
  --m-green: #0aa04a;
  --m-blue: #1f50c8;
  --m-yellow: #ffc20e;
  --m-ink: #14142a;
  --m-navy: #0a1450;
  --m-gold: #d4a017;
  --m-disp: "Titan One", "Lilita One", system-ui, sans-serif;
  --m-script: "Dancing Script", cursive;
  --m-cut: 16px;
  background: #eef4ff;
  color: var(--m-ink);
  overflow-x: clip;
  font-size: 17px;
}
.sm64 [hidden] { display: none !important; }
.sm64 p { margin: 0 0 14px; }
.sm64 h2, .sm64 h3 { font-weight: 400; }
.m-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.m-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; position: relative; }
.m-sec { position: relative; padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }

/* ---------- Tipografia ---------- */
.sm64 .m-kicker {
  display: inline-block; margin: 0 0 14px; padding: 8px 16px 7px; font-family: var(--m-disp); font-size: 15px; letter-spacing: .5px;
  color: #fff; background: var(--m-blue);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.sm64 .m-h2 {
  font-family: var(--m-disp); font-size: clamp(36px, 5.6vw, 62px); line-height: 1.05; margin: 0 0 16px; color: #fff; letter-spacing: .5px;
  text-shadow:
    3px 0 var(--m-ink), -3px 0 var(--m-ink), 0 3px var(--m-ink), 0 -3px var(--m-ink),
    2px 2px var(--m-ink), -2px -2px var(--m-ink), 2px -2px var(--m-ink), -2px 2px var(--m-ink),
    5px 7px 0 var(--m-blue);
}
.sm64 .m-h3 { font-family: var(--m-disp); font-size: 26px; line-height: 1.1; margin: 0 0 10px; }
.sm64 .m-lead { font-size: 18px; font-weight: 700; max-width: 780px; }
.m-sechead { margin-bottom: 40px; }

/* ---------- Botões chanfrados (low-poly) ---------- */
.sm64 .m-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; border: 0;
  font-family: var(--m-disp); font-size: 19px; letter-spacing: .4px; line-height: 1; color: #fff;
  padding: 16px 26px 15px; background: var(--m-red);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.22), inset 0 6px 0 rgba(255,255,255,.18);
  text-shadow: 0 2px 0 rgba(0,0,0,.35); transition: transform .12s, filter .12s;
}
.sm64 .m-btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.sm64 .m-btn:active { transform: translateY(2px); }
.sm64 .m-btn--r { background: var(--m-red); }
.sm64 .m-btn--b { background: var(--m-blue); }
.sm64 .m-btn--g { background: var(--m-green); }
.sm64 .m-btn--y { background: var(--m-yellow); color: var(--m-ink); text-shadow: none; }
.sm64 .m-pill {
  cursor: pointer; font-family: var(--m-disp); font-size: 15px; line-height: 1; padding: 11px 16px 10px; color: var(--m-ink);
  background: #fff; border: 3px solid var(--m-ink); border-radius: 999px; box-shadow: 0 4px 0 var(--m-ink); transition: transform .12s;
}
.sm64 .m-pill:hover { transform: translateY(-2px); }
.sm64 .m-pill:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--m-ink); }

/* ---------- Moedas vermelhas ---------- */
.sm64 .m-rcoin {
  display: inline-block; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; vertical-align: middle;
  background: radial-gradient(circle at 35% 30%, #ffc0c0 0 10%, #ff4040 30%, #c80018 70%, #7a000c);
  border: 3px solid #5a0008; box-shadow: inset 0 0 0 3px rgba(255,190,190,.45), 0 3px 0 rgba(0,0,0,.25);
  animation: m-coinspin 1.4s linear infinite;
}
.sm64 .m-rcoin--icon { width: 26px; height: 26px; animation: none; cursor: default; }
@keyframes m-coinspin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.18); } }

/* =========================================================
   HERO
   ========================================================= */
.m-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(900px, calc(100vh - 70px)); display: flex; flex-direction: column;
  background: linear-gradient(#3f8fff, #9fd2ff 58%, #d8f0ff);
}
.m-hero__land { position: absolute; left: 0; bottom: 0; width: 100%; height: 44%; z-index: 0; }
.m-shards { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.m-shard { position: absolute; display: block; clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .8; animation: m-shard 11s ease-in-out infinite; }
.m-shard--1 { left: 4%; top: 18%; width: 90px; height: 78px; background: var(--m-red); }
.m-shard--2 { left: 42%; top: 10%; width: 56px; height: 48px; background: var(--m-yellow); animation-delay: -3s; }
.m-shard--3 { right: 6%; top: 46%; width: 70px; height: 60px; background: var(--m-green); animation-delay: -6s; }
.m-shard--4 { left: 30%; top: 62%; width: 44px; height: 38px; background: var(--m-blue); animation-delay: -2s; }
.m-shard--5 { right: 30%; top: 6%; width: 38px; height: 33px; background: #fff; animation-delay: -8s; }
.m-shard--6 { left: 12%; top: 70%; width: 60px; height: 52px; background: var(--m-yellow); animation-delay: -5s; opacity: .55; }
@keyframes m-shard { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(28deg); } }

.m-hud {
  position: relative; z-index: 3; width: 100%; max-width: 1200px; margin: 18px auto 0; padding: 0 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--m-disp); font-size: 26px; color: #fff;
  text-shadow: 2px 0 var(--m-ink), -2px 0 var(--m-ink), 0 2px var(--m-ink), 0 -2px var(--m-ink), 3px 3px 0 var(--m-ink);
}
.m-hud__item { display: inline-flex; align-items: center; gap: 8px; }
.m-hud__item img { width: 36px; height: 36px; object-fit: contain; animation: m-spin3d 3s linear infinite; }
.m-hud__item.is-full { animation: m-pulse .8s ease-in-out 3; }
@keyframes m-spin3d { to { transform: rotateY(360deg); } }
@keyframes m-pulse { 50% { transform: scale(1.2); } }

.m-hero__in {
  position: relative; z-index: 2; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 18px 16px 70px;
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 30px; align-items: center;
}
.m-logo { margin: 0 0 18px; line-height: 0; }
.m-logo img { width: min(500px, 100%); height: auto; filter: drop-shadow(0 8px 0 rgba(20,20,42,.25)); }
.m-chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.m-chip {
  font-family: var(--m-disp); font-size: 16px; color: #fff; padding: 8px 16px 7px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); text-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.m-chip--r { background: var(--m-red); } .m-chip--b { background: var(--m-blue); } .m-chip--g { background: var(--m-green); }
.m-hook {
  font-size: 19px; font-weight: 800; max-width: 520px; padding: 18px 22px; background: rgba(255,255,255,.9);
  clip-path: polygon(var(--m-cut) 0, 100% 0, 100% calc(100% - var(--m-cut)), calc(100% - var(--m-cut)) 100%, 0 100%, 0 var(--m-cut));
  margin-bottom: 24px !important;
}
.m-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.m-hero__stage { position: relative; padding: 40px 0 120px 30px; }
.m-tv {
  position: relative; width: min(540px, 100%); margin-left: auto; aspect-ratio: 320 / 237; overflow: hidden; background: #000;
  border: 14px solid #2a2a36; border-radius: 24px; box-shadow: 0 0 0 4px var(--m-ink), 0 24px 40px rgba(10,20,80,.35);
  transform: rotate(1.5deg);
}
.m-tv__img { width: 100%; height: 100%; object-fit: cover; }
.m-tv__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(rgba(0,0,0,.12) 0 2px, transparent 2px 4px), radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.45));
}
.sm64 .m-tv__coin { position: absolute; z-index: 2; left: 70%; top: 17%; width: 22px; height: 22px; border-width: 2px; }
.m-lakitu { position: absolute; z-index: 3; top: -24px; right: -10px; width: 120px; margin: 0; animation: m-hover 3s ease-in-out infinite; }
.m-lakitu img { width: 100%; height: auto; filter: drop-shadow(0 10px 0 rgba(20,20,42,.18)); }
.m-lakitu__rec {
  position: absolute; left: -40px; top: 20px; font-family: var(--m-disp); font-size: 13px; color: #fff; background: var(--m-red);
  padding: 4px 8px 3px; border-radius: 6px; animation: m-blink 1.2s steps(1) infinite;
}
@keyframes m-hover { 50% { transform: translate(-10px, 12px) rotate(-4deg); } }
@keyframes m-blink { 50% { opacity: .2; } }
.m-letter {
  position: absolute; z-index: 4; left: 0; bottom: 0; width: min(330px, 82%); padding: 24px 28px 20px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.55), transparent 50%),
    radial-gradient(ellipse at center, #fbf0d0 40%, #e9cf98);
  color: #4a2a10; transform: rotate(-5deg);
  box-shadow: 0 18px 30px rgba(40,20,0,.3), inset 0 0 30px rgba(150,100,40,.35);
  clip-path: polygon(0 3%, 6% 0, 40% 2%, 72% 0, 100% 3%, 98% 40%, 100% 76%, 97% 100%, 60% 98%, 30% 100%, 2% 97%, 0 60%);
  font-family: var(--m-script); font-size: 23px; line-height: 1.3;
}
.m-letter p { margin: 0 0 8px; }
.m-letter__hi { font-weight: 700; font-size: 27px; }
.m-letter__sign { text-align: right; font-weight: 700; margin-right: 40px !important; }
.m-seal {
  position: absolute; right: 18px; bottom: 18px; width: 48px; height: 48px; padding: 6px; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #ff5a6a, #c8102e 55%, #7a0010);
  box-shadow: 0 0 0 4px rgba(200,16,46,.35), 0 3px 4px rgba(0,0,0,.35);
}
.m-seal svg { width: 100%; height: 100%; }
.m-peach { position: absolute; z-index: 3; right: -24px; bottom: 0; height: 250px; width: auto; filter: drop-shadow(0 10px 0 rgba(20,20,42,.18)); animation: m-wave 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes m-wave { 50% { transform: rotate(-3deg); } }

/* =========================================================
   SOBRE (caixa de diálogo do jogo)
   ========================================================= */
.m-sobre {
  background:
    linear-gradient(rgba(0,0,0,.08) 2px, transparent 2px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(0,0,0,.08) 2px, transparent 2px) 0 0 / 92px 92px,
    linear-gradient(90deg, rgba(0,0,0,.08) 2px, transparent 2px) 46px 46px / 92px 92px,
    #e6dbc2;
}
.m-sobre__grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 50px; align-items: center; }
.m-dialog {
  position: relative; background: rgba(12,12,24,.86); color: #fff; padding: 40px 42px 34px;
  border-radius: 26px; box-shadow: 0 18px 0 rgba(20,20,42,.18);
}
.m-dialog p { font-size: 17.5px; line-height: 1.68; }
.m-dialog__next { position: absolute; right: 26px; bottom: 16px; color: var(--m-red); font-size: 20px; animation: m-nudge .8s ease-in-out infinite; }
@keyframes m-nudge { 50% { transform: translateY(5px); } }
.m-sobre__art { margin: 0; }
.m-sobre__art img {
  width: 100%; max-width: 320px; margin: 0 auto; padding: 18px 18px 0; background: #fff; transform: rotate(3deg);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.m-sobre__art { filter: drop-shadow(0 14px 0 rgba(20,20,42,.15)); }

/* =========================================================
   FICHA (cartucho do N64)
   ========================================================= */
.m-ficha {
  background:
    conic-gradient(from 45deg at 50% 50%, rgba(255,255,255,.05) 0 25%, transparent 0 50%, rgba(255,255,255,.05) 0 75%, transparent 0) 0 0 / 90px 90px,
    linear-gradient(135deg, var(--m-navy), var(--m-blue));
  color: #fff;
}
.m-ficha__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.m-cart { position: relative; max-width: 560px; width: 100%; margin: 0 auto; padding-bottom: 30px; }
.m-cart.is-blow { animation: m-shake .5s ease-in-out; }
@keyframes m-shake { 20%, 60% { transform: translateX(-6px) rotate(-1deg); } 40%, 80% { transform: translateX(6px) rotate(1deg); } }
.m-cart__body {
  position: relative; padding: 46px 34px 30px; border-radius: 34px 34px 16px 16px;
  background: linear-gradient(#55555f, #2c2c36); box-shadow: inset 0 4px 0 rgba(255,255,255,.12), 0 22px 40px rgba(0,0,0,.4);
}
.m-cart__body::before, .m-cart__body::after {
  content: ""; position: absolute; top: 30px; width: 12px; height: 46%;
  background: repeating-linear-gradient(#1c1c24 0 4px, #6a6a76 4px 8px); border-radius: 6px;
}
.m-cart__body::before { left: 10px; } .m-cart__body::after { right: 10px; }
.m-cart__label { background: #fff; color: var(--m-ink); border-radius: 12px; overflow: hidden; padding: 0 22px 14px; }
.m-cart__label img { display: block; width: calc(100% + 44px); max-width: none; margin: 0 -22px 14px; }
.m-cart__t {
  font-family: var(--m-disp); font-size: 28px; margin: 0 0 8px; line-height: 1;
  background: linear-gradient(90deg, var(--m-red), var(--m-yellow), var(--m-green), var(--m-blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-dl { margin: 0; }
.m-dl div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-top: 2px solid #e8eaf4; align-items: baseline; }
.m-dl dt { font-family: var(--m-disp); font-size: 13.5px; color: var(--m-blue); }
.m-dl dd { margin: 0; font-weight: 800; font-size: 15.5px; line-height: 1.4; }
.m-cart__pins {
  display: block; width: 62%; height: 26px; margin: 0 auto; border-radius: 0 0 10px 10px;
  background: repeating-linear-gradient(90deg, #e0b84a 0 6px, #2c2c36 6px 11px); border: 4px solid #2c2c36; border-top: 0;
}
.sm64 .m-cart__coin { position: absolute; left: 50%; bottom: -30px; margin-left: -17px; }
.m-ficha__side p { font-size: 17px; }
.m-ficha__msg { font-family: var(--m-disp); font-size: 18px; color: var(--m-yellow); min-height: 1.4em; margin-top: 16px !important; }
.m-puff {
  position: absolute; z-index: 5; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.85); pointer-events: none;
  animation: m-puff .9s ease-out forwards;
}
@keyframes m-puff { to { transform: translate(var(--dx), var(--dy)) scale(2.4); opacity: 0; } }

/* =========================================================
   ROSTO (tela de título)
   ========================================================= */
.m-face {
  color: #fff;
  background:
    linear-gradient(135deg, transparent 0 60%, rgba(255,255,255,.04) 60% 100%) 0 0 / 160px 160px,
    radial-gradient(circle at 25% 40%, #2a52e0, var(--m-navy) 70%);
}
.m-face__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.m-face__screen {
  position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: 26px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #4a7aff, #142a9a 55%, #060c40);
  box-shadow: 0 0 0 6px #fff, 0 0 0 10px var(--m-ink), 0 26px 50px rgba(0,0,0,.45);
}
.m-face__canvas {
  display: block; width: 100%; height: 100%; touch-action: none; position: relative; z-index: 1;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M9 15V7a3 3 0 0 1 6 0v6-9a3 3 0 0 1 6 0v9-7a3 3 0 0 1 6 0v9-4a3 3 0 0 1 6 0v10c0 8-6 13-13 13-6 0-9-3-12-8l-5-8a3 3 0 0 1 5-3z' fill='white' stroke='%23142a9a' stroke-width='2'/%3E%3C/svg%3E") 14 6, grab;
}
.m-face__canvas.is-grab { cursor: grabbing; }
.m-face__canvas:focus-visible { outline: 4px solid var(--m-yellow); outline-offset: -8px; }
.m-face__bubble {
  position: absolute; z-index: 3; top: 18px; right: 18px; max-width: 60%; margin: 0 !important; padding: 10px 16px; pointer-events: none;
  font-family: var(--m-disp); font-size: 20px; color: var(--m-ink); background: #fff; border-radius: 18px; border: 3px solid var(--m-ink);
  opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.5,1);
}
.m-face__bubble.is-on { opacity: 1; transform: scale(1); }
.m-face__start {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; text-align: center; margin: 0 !important; pointer-events: none;
  font-family: var(--m-disp); font-size: 22px; letter-spacing: 2px; color: var(--m-yellow);
  text-shadow: 2px 2px 0 var(--m-ink); animation: m-blink 1.4s steps(1) infinite;
}
.sm64 .m-face__coin { position: absolute; z-index: 3; left: 52%; top: 8%; animation: m-coinpop .6s cubic-bezier(.3,1.6,.5,1), m-coinspin 1.4s linear .6s infinite; }
@keyframes m-coinpop { from { transform: translateY(80px) scale(.3); } }
.m-face__txt p { font-size: 17.5px; }
.m-face .m-kicker { background: var(--m-yellow); color: var(--m-ink); }
.m-face__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 26px; }
.m-voice {
  position: relative; background: rgba(255,255,255,.1); border: 3px solid rgba(255,255,255,.35); border-radius: 20px; padding: 22px 24px 10px;
}
.m-voice__quote { font-family: var(--m-disp); font-size: clamp(24px, 3vw, 32px); color: var(--m-yellow); margin-bottom: 8px !important; text-shadow: 3px 3px 0 var(--m-ink); }
.m-voice p:not(.m-voice__quote) { font-size: 16px; }

/* =========================================================
   QUADROS
   ========================================================= */
.m-hall {
  background:
    linear-gradient(transparent calc(100% - 70px), #b8182a calc(100% - 70px), #8a0e1e),
    repeating-linear-gradient(90deg, transparent 0 180px, rgba(120,90,40,.12) 180px 196px, transparent 196px 200px),
    linear-gradient(#f3e7cc, #e2d0a8);
  padding-bottom: clamp(110px, 12vw, 150px);
}
.m-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 26px; }
.m-paint {
  width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: var(--m-ink);
  display: flex; flex-direction: column; align-items: center; gap: 12px; transition: transform .2s;
}
.m-paint:hover { transform: translateY(-5px); }
.m-paint__frame {
  position: relative; display: block; width: 100%; padding: 12px;
  background: linear-gradient(135deg, #7a4a00, #ffd75a 22%, #b8860b 45%, #ffe9a0 66%, #8a5a00);
  border-radius: 4px; box-shadow: inset 0 0 0 3px #5a3a00, inset 0 0 0 7px rgba(255,255,255,.28), 0 14px 22px rgba(60,40,0,.35);
}
.m-paint__frame::before {
  content: ""; position: absolute; inset: 3px; pointer-events: none;
  background:
    radial-gradient(circle, #fff6c0 0 2.5px, #8a5a00 3px 5px, transparent 5.5px) left top / 16px 16px no-repeat,
    radial-gradient(circle, #fff6c0 0 2.5px, #8a5a00 3px 5px, transparent 5.5px) right top / 16px 16px no-repeat,
    radial-gradient(circle, #fff6c0 0 2.5px, #8a5a00 3px 5px, transparent 5.5px) left bottom / 16px 16px no-repeat,
    radial-gradient(circle, #fff6c0 0 2.5px, #8a5a00 3px 5px, transparent 5.5px) right bottom / 16px 16px no-repeat;
}
.m-paint__frame svg { display: block; width: 100%; height: auto; border: 3px solid #5a3a00; background: #000; overflow: hidden; }
.m-paint.is-diving .m-paint__frame { animation: m-dive .5s ease-in; }
@keyframes m-dive { 40% { transform: scale(1.06); } 100% { transform: scale(.96); filter: brightness(1.6); } }
.m-paint__plate {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 5px; font-family: var(--m-disp); font-size: 14.5px; line-height: 1.15; text-align: left;
  background: linear-gradient(#ffe9a0, #d4a017); border: 2px solid #5a3a00; border-radius: 4px; box-shadow: 0 3px 0 #5a3a00;
}
.m-paint__plate b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--m-red); color: #fff; font-weight: 400; font-size: 12px; }
.m-hall__note { margin: 40px auto 0 !important; max-width: 760px; text-align: center; font-weight: 800; background: rgba(255,255,255,.75); padding: 14px 18px; border-radius: 14px; }

/* Seleção de estrelas */
.m-select {
  width: min(780px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 26px; overflow: hidden;
  background: var(--m-navy); color: #fff; box-shadow: 0 0 0 6px #fff, 0 0 0 10px var(--m-ink), 0 30px 80px rgba(0,0,0,.6);
}
.m-select::backdrop { background: rgba(4,8,40,.72); }
.m-select[open] { animation: m-selin .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes m-selin { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.m-select__bg { position: absolute; inset: -10%; z-index: 0; }
.m-select__bg svg { width: 100%; height: 100%; filter: blur(3px) brightness(.5) saturate(1.2); animation: m-tilt 12s ease-in-out infinite; }
@keyframes m-tilt { 50% { transform: rotate(4deg) scale(1.08); } }
.m-select__in { position: relative; z-index: 1; padding: 34px clamp(18px, 4vw, 44px) 26px; text-align: center; max-height: 92vh; overflow: auto; }
.m-select__n { font-family: var(--m-disp); font-size: 18px; color: var(--m-yellow); letter-spacing: 2px; margin-bottom: 4px !important; text-shadow: 2px 2px 0 var(--m-ink); }
.sm64 .m-select__t {
  font-family: var(--m-disp); font-size: clamp(30px, 5vw, 50px); line-height: 1.05; margin: 0 0 20px; color: #fff;
  text-shadow: 3px 0 var(--m-ink), -3px 0 var(--m-ink), 0 3px var(--m-ink), 0 -3px var(--m-ink), 4px 6px 0 var(--m-blue);
}
.m-select__stars { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.m-starbtn { width: 64px; height: 64px; padding: 4px; border: 0; background: none; cursor: pointer; opacity: .55; transition: opacity .2s, transform .25s; }
.m-starbtn img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.m-starbtn:hover { opacity: .85; }
.m-starbtn[aria-pressed="true"] { opacity: 1; transform: scale(1.3); }
.m-starbtn[aria-pressed="true"] img { animation: m-spin3d 2.2s linear infinite; }
.m-select__star { font-family: var(--m-disp); font-size: clamp(18px, 2.6vw, 24px); color: var(--m-yellow); text-shadow: 2px 2px 0 var(--m-ink); min-height: 1.3em; }
.m-select__desc { font-size: 17px; font-weight: 700; max-width: 560px; margin: 0 auto 16px !important; background: rgba(10,10,30,.55); padding: 12px 16px; border-radius: 14px; }
.sm64 .m-select__coin { margin: 0 auto 14px; display: block; }
.m-select__nav { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.m-select__hint { font-size: 13px; opacity: .8; margin: 14px 0 0 !important; }

/* =========================================================
   BONÉS
   ========================================================= */
.m-caps {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104'%3E%3Cpolygon points='0,104 60,0 120,104' fill='%23ffffff' fill-opacity='.35'/%3E%3Cpolygon points='60,0 120,104 120,0' fill='%23bcd6ff' fill-opacity='.35'/%3E%3C/svg%3E") 0 0 / 120px 104px,
    linear-gradient(#e6f0ff, #c8dcff);
}
.m-caps__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.m-caps__stage {
  position: relative; min-height: 470px; display: grid; place-items: end center; padding-bottom: 50px; overflow: hidden;
  background: radial-gradient(circle at 50% 60%, #fff 0 30%, rgba(255,255,255,.4) 60%, transparent 75%), #dbe8ff;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}
.m-mesh {
  position: absolute; z-index: 3; right: 6%; top: 18%; width: 120px; height: 150px; border: 5px solid #4a4a56; border-radius: 6px;
  background: repeating-linear-gradient(45deg, #5a5a66 0 2px, transparent 2px 13px), repeating-linear-gradient(-45deg, #5a5a66 0 2px, transparent 2px 13px), rgba(255,255,255,.15);
  transition: opacity .3s;
}
.sm64 .m-caps__coin { position: absolute; z-index: 2; right: calc(6% + 43px); top: calc(18% + 58px); pointer-events: none; }
.m-caps__stage.is-invisivel .m-mesh { opacity: .35; }
.m-caps__stage.is-invisivel .m-caps__coin { pointer-events: auto; z-index: 4; }
.m-capmario { position: relative; z-index: 2; margin: 0; height: 360px; aspect-ratio: 700 / 1177; transition: transform .4s; }
.m-capmario img { width: 100%; height: 100%; object-fit: contain; transition: filter .35s, opacity .35s; filter: drop-shadow(0 10px 0 rgba(20,20,42,.15)); }

.m-wing {
  position: absolute; top: 1%; width: 26%; height: 12%; opacity: 0; transform: scale(.3); transition: opacity .3s, transform .4s cubic-bezier(.3,1.6,.5,1);
  background: linear-gradient(#fff, #d8e2ee); border: 3px solid var(--m-ink);
}
.m-wing--l { z-index: 1; left: 24%; transform-origin: 100% 100%; clip-path: polygon(100% 72%, 72% 100%, 0 42%, 8% 20%, 30% 32%, 24% 0, 50% 16%, 58% 0, 76% 24%, 100% 30%); }
.m-wing--r { z-index: 3; left: 88%; top: 7%; transform-origin: 0 100%; clip-path: polygon(0 72%, 28% 100%, 100% 42%, 92% 20%, 70% 32%, 76% 0, 50% 16%, 42% 0, 24% 24%, 0 30%); }
.m-capmario img { position: relative; z-index: 2; }
.m-caps__stage.is-asa .m-wing { opacity: 1; transform: none; animation: m-flap .35s ease-in-out infinite alternate; }
.m-caps__stage.is-asa .m-capmario { animation: m-fly 2.4s ease-in-out infinite; }
@keyframes m-flap { to { transform: rotate(-14deg); } }
.m-caps__stage.is-asa .m-wing--r { animation-name: m-flapr; }
@keyframes m-flapr { to { transform: rotate(14deg); } }
@keyframes m-fly { 50% { transform: translateY(-40px); } }
.m-caps__stage.is-metal .m-capmario img { filter: grayscale(1) contrast(1.55) brightness(1.08) drop-shadow(0 10px 0 rgba(20,20,42,.2)); animation: m-shine 1.6s ease-in-out infinite; }
@keyframes m-shine { 50% { filter: grayscale(1) contrast(1.7) brightness(1.45) drop-shadow(0 0 14px rgba(255,255,255,.9)); } }
.m-caps__stage.is-invisivel .m-capmario img { opacity: .3; filter: saturate(.5) brightness(1.3); animation: m-ghost 1.6s ease-in-out infinite; }
@keyframes m-ghost { 50% { opacity: .15; } }
.m-caps__status { position: absolute; z-index: 4; left: 0; right: 0; bottom: 14px; text-align: center; margin: 0 !important; font-family: var(--m-disp); font-size: 16px; color: var(--m-blue); }
.m-caplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.m-caplist li {
  background: #fff; padding: 18px 22px 8px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.m-caplist p { font-size: 15.5px; font-weight: 600; }
.m-capbtn { display: inline-flex; align-items: center; gap: 14px; padding: 0; margin-bottom: 10px; border: 0; background: none; cursor: pointer; color: var(--m-ink); }
.m-capbtn__t { font-family: var(--m-disp); font-size: 23px; }
.m-xblock {
  display: grid; place-items: center; width: 54px; height: 54px; flex: none; font-family: var(--m-disp); font-size: 30px; color: #fff;
  background: var(--bc); border: 3px solid var(--m-ink); box-shadow: inset -6px -6px 0 rgba(0,0,0,.25), inset 6px 6px 0 rgba(255,255,255,.35);
  text-shadow: 2px 2px 0 rgba(0,0,0,.4); transition: transform .15s;
}
.m-capbtn--r { --bc: var(--m-red); } .m-capbtn--g { --bc: var(--m-green); } .m-capbtn--b { --bc: var(--m-blue); }
.m-capbtn:hover .m-xblock { transform: translateY(-3px); }
.m-capbtn[aria-pressed="true"] .m-xblock { animation: m-bump .3s ease; box-shadow: 0 0 0 4px var(--m-yellow), inset -6px -6px 0 rgba(0,0,0,.25); }
@keyframes m-bump { 40% { transform: translateY(-12px); } }

/* =========================================================
   CÂMERA LAKITU (cena 3D em CSS)
   ========================================================= */
.m-cam { background: linear-gradient(#14142a, #1d1d3d); color: #fff; }
.m-cam__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.m-cam__txt p { font-size: 17px; }
.m-cam__lakitu { width: 120px; height: auto; animation: m-hover 3s ease-in-out infinite; }
.m-cam__box { display: grid; gap: 20px; justify-items: center; }
.m-cam__view {
  --rx: -24deg; --ry: 25deg; --z: 1;
  position: relative; width: 100%; height: 420px; overflow: hidden; perspective: 900px; cursor: grab; touch-action: none; user-select: none;
  background: linear-gradient(#5aa6ff, #bfe2ff 62%, #dff1ff); border: 5px solid #fff; border-radius: 20px;
}
.m-cam__view.is-drag { cursor: grabbing; }
.m-cam__world {
  position: absolute; left: 50%; top: 68%; width: 0; height: 0; transform-style: preserve-3d;
  transform: scale(var(--z)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s cubic-bezier(.3,1.2,.4,1);
}
.m-cam__view.is-drag .m-cam__world { transition: none; }
.m-cam__floor {
  position: absolute; left: -300px; top: -300px; width: 600px; height: 600px; border-radius: 50%; transform: rotateX(90deg);
  background: conic-gradient(#5cbf4a 25%, #49a63b 0 50%, #5cbf4a 0 75%, #49a63b 0) 0 0 / 60px 60px;
  box-shadow: inset 0 0 0 10px #c8a46a, inset 0 0 0 16px #8a6a3a;
}
.m-cube { position: absolute; left: -45px; top: -90px; width: 90px; height: 90px; transform-style: preserve-3d; }
.m-cube__f {
  position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--m-disp); font-size: 52px; color: #fff;
  background: var(--m-yellow); border: 4px solid #a06a00; box-shadow: inset -8px -8px 0 rgba(0,0,0,.18), inset 8px 8px 0 rgba(255,255,255,.35);
  text-shadow: 3px 3px 0 #a06a00; backface-visibility: hidden;
}
.m-cube__f--front { transform: translateZ(45px); }
.m-cube__f--back { transform: rotateY(180deg) translateZ(45px); }
.m-cube__f--left { transform: rotateY(-90deg) translateZ(45px); background: #f0b000; }
.m-cube__f--right { transform: rotateY(90deg) translateZ(45px); background: #f0b000; }
.m-cube__f--top { transform: rotateX(90deg) translateZ(45px); background: #ffd84a; }
.m-tree {
  position: absolute; width: 90px; height: 160px; top: -160px;
  background: linear-gradient(90deg, #1f7a2a 50%, #2fa83a 50%);
  clip-path: polygon(50% 0, 82% 40%, 68% 40%, 96% 74%, 56% 74%, 56% 100%, 44% 100%, 44% 74%, 4% 74%, 32% 40%, 18% 40%);
}
.m-tree--a { left: 125px; transform: translateZ(-90px); }
.m-tree--b { left: 125px; transform: translateZ(-90px) rotateY(90deg); }
.m-tree--c { left: -235px; transform: translateZ(40px); }
.m-tree--d { left: -235px; transform: translateZ(40px) rotateY(90deg); }
.m-cam__star { position: absolute; left: -32px; top: -190px; width: 64px; height: 64px; object-fit: contain; animation: m-spin3d 3s linear infinite; }
.sm64 .m-cam__coin {
  position: absolute; left: -17px; top: -62px; animation: none; pointer-events: none;
  transform: translateZ(-50px) rotateY(180deg); backface-visibility: hidden;
}
.m-cam__world.is-back .m-cam__coin { pointer-events: auto; }
.m-vf { position: absolute; inset: 0; pointer-events: none; }
.m-vf__c { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; }
.m-vf__c--tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.m-vf__c--tr { right: 14px; top: 14px; border-left: 0; border-bottom: 0; }
.m-vf__c--bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; }
.m-vf__c--br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
.m-vf__rec { position: absolute; left: 30px; top: 26px; font-family: var(--m-disp); font-size: 15px; color: #fff; text-shadow: 0 0 4px rgba(0,0,0,.5); }
.m-vf__rec::first-letter { color: var(--m-red); }
.m-vf__mode { position: absolute; right: 26px; top: 22px; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.8); border: 3px solid var(--m-ink); display: grid; place-items: center; overflow: hidden; }
.m-vf__mode img { width: 40px; height: 40px; object-fit: contain; }
.m-cbtns { position: relative; width: 190px; height: 176px; }
.m-cbtn {
  position: absolute; width: 58px; height: 58px; border-radius: 50%; cursor: pointer; font-size: 20px; color: #6a4a00;
  background: radial-gradient(circle at 40% 35%, #ffe680, var(--m-yellow) 60%, #d49a00); border: 3px solid #5a3a00;
  box-shadow: 0 5px 0 #5a3a00; transition: transform .1s;
}
.m-cbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 #5a3a00; }
.m-cbtn--up { left: 66px; top: 0; } .m-cbtn--down { left: 66px; bottom: 6px; }
.m-cbtn--left { left: 0; top: 56px; } .m-cbtn--right { right: 0; top: 56px; }
.m-cbtns__lbl { position: absolute; left: 86px; top: 68px; font-family: var(--m-disp); font-size: 24px; color: var(--m-yellow); pointer-events: none; }

/* =========================================================
   CURIOSIDADES
   ========================================================= */
.m-curios {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='140'%3E%3Cpolygon points='0,140 80,0 160,140' fill='%23ffffff' fill-opacity='.4'/%3E%3C/svg%3E") 0 0 / 160px 140px,
    #f6e9cf;
}
.m-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: fato; }
.m-fact {
  position: relative; counter-increment: fato; background: #fff; padding: 30px 24px 18px;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  box-shadow: inset 0 -6px 0 rgba(20,20,42,.08);
}
.m-fact::before {
  content: counter(fato); position: absolute; top: 0; right: 0; width: 58px; height: 50px; padding: 6px 10px 0 0; text-align: right;
  font-family: var(--m-disp); font-size: 20px; color: #fff; background: var(--m-blue); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.m-fact:nth-child(4n+2)::before { background: var(--m-red); } .m-fact:nth-child(4n+3)::before { background: var(--m-green); }
.m-fact:nth-child(4n+4)::before { background: var(--m-yellow); color: var(--m-ink); }
.m-fact h3 { font-family: var(--m-disp); font-size: 21px; line-height: 1.15; margin: 0 0 8px; padding-right: 26px; }
.m-fact p { font-size: 15.5px; font-weight: 600; }
.m-plaque {
  display: block; margin: 4px 0 10px; padding: 10px 16px; border: 3px solid #6a6a74; border-radius: 6px; cursor: pointer;
  background: linear-gradient(#c8c8d0, #9a9aa6); color: #3a3a44; font-family: var(--m-disp); font-size: 18px; letter-spacing: 2px;
}
.m-plaque span { filter: blur(1.6px); display: inline-block; transition: filter .3s; }
.m-plaque:hover span { filter: blur(.8px); }
.m-fact--bowser { grid-column: span 2; display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
.m-fact--bowser img { width: 100%; height: auto; }

/* =========================================================
   ONDE JOGAR
   ========================================================= */
.m-onde { background: linear-gradient(var(--m-navy), #16288a); color: #fff; }
.m-where { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.m-wcard {
  --wc: var(--m-red); position: relative; background: #fff; color: var(--m-ink); padding: 26px 24px 22px; border-top: 12px solid var(--wc);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.m-wcard--g { --wc: var(--m-green); } .m-wcard--b { --wc: var(--m-blue); }
.sm64 .m-wcard__tag { font-family: var(--m-disp); font-size: 13px; color: var(--wc); margin-bottom: 6px; letter-spacing: .5px; }
.m-wcard h3 { font-family: var(--m-disp); font-size: 22px; line-height: 1.15; margin: 0 0 8px; }
.m-wcard p { font-size: 15.5px; font-weight: 600; margin: 0; }

body[data-game="sm64"] .mbr-gamenav { background: #0a1450; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1100px) {
  .m-gallery { grid-template-columns: repeat(3, 1fr); }
  .m-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .m-hero__in, .m-sobre__grid, .m-ficha__grid, .m-face__grid, .m-caps__grid, .m-cam__grid { grid-template-columns: 1fr; }
  .m-hero__in { text-align: center; }
  .m-logo img { margin: 0 auto; }
  .m-chips, .m-cta { justify-content: center; }
  .m-hook { margin-left: auto; margin-right: auto; }
  .m-hero__stage { padding: 30px 0 0; max-width: 560px; margin: 0 auto; width: 100%; }
  .m-tv { margin: 0 auto; }
  .m-letter { position: relative; margin: -40px auto 0; text-align: left; }
  .m-peach { height: 190px; right: 0; bottom: -10px; }
  .m-sobre__art img { max-width: 240px; }
  .m-where { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .m-cam__txt { text-align: left; }
}
@media (max-width: 600px) {
  .sm64 { font-size: 16px; }
  .m-hud { font-size: 20px; }
  .m-hud__item img { width: 28px; height: 28px; }
  .m-hook { font-size: 17px; }
  .m-lakitu { width: 84px; top: -14px; right: -4px; }
  .m-lakitu__rec { left: -26px; font-size: 11px; }
  .m-letter { font-size: 20px; width: 92%; padding: 20px 22px 18px; }
  .m-peach { height: 150px; right: -8px; bottom: auto; top: 250px; }
  .m-letter__hi { font-size: 23px; }
  .m-dialog { padding: 30px 22px 30px; }
  .m-gallery { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .m-paint__frame { padding: 8px; }
  .m-paint__plate { font-size: 12.5px; padding: 5px 8px 4px; }
  .m-facts { grid-template-columns: 1fr; }
  .m-fact--bowser { grid-column: auto; grid-template-columns: 1fr; }
  .m-dl div { grid-template-columns: 1fr; gap: 2px; }
  .m-cart__body { padding: 40px 24px 24px; }
  .m-cart__label { padding: 0 16px 12px; }
  .m-cart__label img { width: calc(100% + 32px); margin: 0 -16px 12px; }
  .m-caps__stage { min-height: 400px; }
  .m-capmario { height: 300px; }
  .m-mesh { width: 90px; height: 120px; right: 4%; }
  .sm64 .m-caps__coin { right: calc(4% + 28px); top: calc(18% + 43px); }
  .m-cam__view { height: 340px; }
  .m-starbtn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .m-shard, .m-lakitu, .m-hud__item img, .sm64 .m-rcoin, .m-select__bg svg { animation: none !important; }
}
