/* =========================================================
   SUPER MARIO 3D WORLD - tema "diorama de brinquedo" + gatos
   Tudo escopado em .w3d / body[data-game="3dworld"]
   ========================================================= */

.w3d {
  --w-sky: #79d6ff;
  --w-sky2: #cdf1ff;
  --w-grass: #5fd23a;
  --w-grass-dk: #2f9e1c;
  --w-dirt: #e8a65a;
  --w-dirt-dk: #b9702e;
  --w-yellow: #ffd21f;
  --w-orange: #ff8a00;
  --w-orange-dk: #d95700;
  --w-pink: #ff5fa8;
  --w-ink: #1d2a44;
  --w-ink2: #3b4a68;
  --w-white: #fff;
  --w-font: "Fredoka", "Nunito", system-ui, sans-serif;
  --w-ears: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'><g stroke='%23402000' stroke-width='3' stroke-linejoin='round'><path d='M8 38 L22 3 L46 30 Z' fill='%23ffc61a'/><path d='M74 30 L98 3 L112 38 Z' fill='%23ffc61a'/></g><path d='M17 33 L23 14 L35 29 Z' fill='%23ff9fc4'/><path d='M85 29 L97 14 L103 33 Z' fill='%23ff9fc4'/></svg>");
  --w-paw: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><g fill='%23ff8a00' stroke='%23ffffff' stroke-width='1.6'><ellipse cx='16' cy='21.5' rx='7.2' ry='6.2'/><ellipse cx='7' cy='13.5' rx='3.2' ry='3.8'/><ellipse cx='12.5' cy='8' rx='3.2' ry='3.8'/><ellipse cx='19.5' cy='8' rx='3.2' ry='3.8'/><ellipse cx='25' cy='13.5' rx='3.2' ry='3.8'/></g></svg>");

  position: relative;
  display: block;
  color: var(--w-ink);
  font-family: var(--mbr-font-body);
  overflow-x: clip;
  background:
    radial-gradient(circle at 20px 20px, rgba(255,255,255,.55) 3px, transparent 3.5px) 0 0 / 40px 40px,
    linear-gradient(180deg, var(--w-sky) 0, var(--w-sky2) 700px, #eaf9ff 1600px, #f4fbff 100%);
}
.w3d *, .w3d *::before, .w3d *::after { box-sizing: border-box; }
.w3d img { max-width: 100%; }
.w3d-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }

/* ---------- Botões brilhantes de brinquedo ---------- */
.w3d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--w-font); font-weight: 700; font-size: 18px; letter-spacing: .2px;
  text-decoration: none; color: #fff; border: 0; border-radius: 999px;
  padding: 12px 22px; min-height: 48px;
  background: linear-gradient(180deg, #ff9d2e 0%, #ff7a00 55%, #e85d00 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,0,0,.12), 0 6px 0 #b34700, 0 12px 18px rgba(0,0,0,.18);
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
  transition: transform .15s, box-shadow .15s, filter .2s;
}
.w3d-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.w3d-btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255,255,255,.55), 0 2px 0 #b34700; }
.w3d-btn svg { width: 26px; height: 26px; }
.w3d-btn--dark { background: linear-gradient(180deg, #4a3a6a, #2a1d44); box-shadow: inset 0 3px 0 rgba(255,255,255,.25), 0 6px 0 #140b26, 0 12px 18px rgba(0,0,0,.2); }
.w3d-btn--cherry { background: linear-gradient(180deg, #ff4f6d, #e3173a 60%, #b80d2b); box-shadow: inset 0 3px 0 rgba(255,255,255,.5), 0 6px 0 #7d0a1e, 0 12px 18px rgba(0,0,0,.18); }
.w3d-btn--ghost { background: #fff; color: var(--w-ink); text-shadow: none; box-shadow: inset 0 -4px 0 #dbe7f5, 0 6px 0 #aebfd6; }
.w3d-btn--small { font-size: 16px; padding: 9px 18px; min-height: 44px; }
.w3d-btn--fire { background: linear-gradient(180deg, #ff7a3a, #e63a00 60%, #a82300); box-shadow: inset 0 3px 0 rgba(255,255,255,.35), 0 6px 0 #5e1300, 0 0 24px rgba(255,90,0,.45); }
.w3d-btn--gold { background: linear-gradient(180deg, #ffe680, #ffc61a 55%, #e0a000); color: #3b2600; text-shadow: 0 1px 0 rgba(255,255,255,.5); box-shadow: inset 0 3px 0 rgba(255,255,255,.7), 0 6px 0 #8a6200, 0 0 24px rgba(255,210,31,.4); }
.w3d-btn:disabled { filter: grayscale(.8) brightness(.8); cursor: not-allowed; transform: none; opacity: .65; }

/* ---------- Cabeçalhos de seção (placas de fase) ---------- */
.w3d-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto 36px; max-width: 760px; }
.w3d-head--left { align-items: flex-start; text-align: left; margin-left: 0; }
.w3d-eyebrow {
  display: inline-block; margin: 0 0 14px; font-family: var(--w-font); font-weight: 700; font-size: 15px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--w-ink);
  background: #fff; border-radius: 999px; padding: 4px 14px; box-shadow: 0 3px 0 rgba(29,42,68,.18);
}
.w3d-h2 {
  position: relative; display: inline-block; margin: 0;
  font-family: var(--w-font); font-weight: 700; line-height: 1.12;
  font-size: clamp(30px, 4.4vw, 48px); color: #fff;
  background: linear-gradient(180deg, #ff8f1f 0%, #f06a00 60%, #d95200 100%);
  padding: .16em .8em .22em; border-radius: 28px;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.4), inset 0 -5px 0 rgba(0,0,0,.12), 0 8px 0 #9e3c00, 0 16px 26px rgba(0,0,0,.18);
  text-shadow: 0 3px 0 rgba(90,30,0,.45);
}
.w3d-lead { margin: 18px auto 0; font-size: 18px; font-weight: 700; color: var(--w-ink2); max-width: 680px; }
.w3d-note { font-size: 15px; color: var(--w-ink2); max-width: 900px; margin: 22px auto 0; text-align: center; }

/* Orelhas de gato (modo gato) */
.w3d-h2::before, .w3d-cherry__title::before {
  content: ""; position: absolute; left: 50%; top: -.62em; width: 3.2em; height: 1.05em;
  background: var(--w-ears) center / contain no-repeat; transform: translateX(-50%) scale(0); transform-origin: 50% 100%;
  pointer-events: none; transition: transform .45s cubic-bezier(.3,1.8,.5,1);
}
.w3d.is-gato .w3d-h2::before, .w3d.is-gato .w3d-cherry__title::before { transform: translateX(-50%) scale(1); }
.w3d-head .w3d-eyebrow { transition: margin .35s cubic-bezier(.3,1.6,.5,1); }
.w3d.is-gato .w3d-head .w3d-eyebrow { margin-bottom: 34px; }
.w3d.is-gato, .w3d.is-gato * { cursor: var(--w-paw) 16 16, auto; }
.w3d.is-gato button, .w3d.is-gato a, .w3d.is-gato [data-coin] { cursor: var(--w-paw) 16 16, pointer; }

/* ---------- Cartão "ilha" com grama ---------- */
.w3d-tile {
  position: relative; background: #fff; border-radius: 26px; padding: 30px;
  border-top: 14px solid var(--w-grass);
  box-shadow: 0 10px 0 var(--w-dirt), 0 10px 0 2px rgba(0,0,0,.04), 0 26px 40px rgba(31,79,191,.16);
}
.w3d-tile::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: -2px; height: 12px;
  background: radial-gradient(circle at 10px 0, var(--w-grass) 8px, transparent 8.5px) 0 0 / 20px 12px repeat-x;
}

/* =========================================================
   HERO
   ========================================================= */
.w3d-hero { position: relative; padding: 46px 0 40px; }
.w3d-hero__clouds span {
  position: absolute; width: 200px; height: 60px; border-radius: 60px; background: #fff; opacity: .9;
  box-shadow: 40px -26px 0 6px #fff, 100px -10px 0 0 #fff; animation: w3d-cloud 46s linear infinite;
}
.w3d-hero__clouds span:nth-child(1) { top: 70px; left: -10%; }
.w3d-hero__clouds span:nth-child(2) { top: 220px; left: 40%; transform: scale(.7); animation-duration: 62s; animation-delay: -20s; opacity: .7; }
.w3d-hero__clouds span:nth-child(3) { top: 30px; left: 75%; transform: scale(.85); animation-duration: 54s; animation-delay: -36s; }
@keyframes w3d-cloud { from { translate: -20vw 0; } to { translate: 120vw 0; } }

.w3d-hero__in { display: grid; grid-template-columns: 1fr 1.12fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.w3d-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.w3d-chip {
  font-family: var(--w-font); font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(180deg, #2fb4ff, #1a7fe0); padding: 6px 16px; border-radius: 999px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 #0f4f9a;
}
.w3d-chip--alt { background: linear-gradient(180deg, #ff5a5a, #e60012); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 #8c000b; }
.w3d-hero__h1 { margin: 0; }
.w3d-hero__logo { width: min(500px, 100%); filter: drop-shadow(0 10px 0 rgba(29,42,68,.18)); animation: w3d-float 4.5s ease-in-out infinite; }
.w3d-hero__hook { font-size: 20px; font-weight: 800; line-height: 1.45; margin: 18px 0 24px; max-width: 540px; color: var(--w-ink); }
.w3d-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
@keyframes w3d-float { 50% { transform: translateY(-10px); } }

.w3d-hero__art { position: relative; padding: 40px 10px 70px; }
.w3d-diorama { position: relative; animation: w3d-float 6s ease-in-out infinite; }
.w3d-diorama__frame {
  position: relative; z-index: 2; border-radius: 30px; overflow: hidden; border: 8px solid #fff;
  box-shadow: 0 12px 0 #d9dfe8, 0 30px 50px rgba(15,47,122,.28);
  transform: rotate(-2deg);
}
.w3d-diorama__frame img { width: 100%; aspect-ratio: 1000 / 585; object-fit: cover; }
.w3d-diorama::after {
  /* base da ilha flutuante */
  content: ""; position: absolute; z-index: 1; left: 8%; right: 8%; bottom: -54px; height: 96px;
  background:
    linear-gradient(180deg, var(--w-grass) 0 20px, var(--w-grass-dk) 20px 26px, var(--w-dirt) 26px 60%, var(--w-dirt-dk) 100%);
  border-radius: 20px 20px 50% 50% / 20px 20px 80% 80%;
  box-shadow: 0 20px 30px rgba(0,0,0,.15);
}
.w3d-qblock { position: absolute; z-index: 3; top: -34px; right: 9%; width: 74px; height: 74px; animation: w3d-bob 2.4s ease-in-out infinite; }
@keyframes w3d-bob { 50% { translate: 0 -10px; } }

.w3d-bellwrap { position: absolute; z-index: 4; left: -18px; bottom: -48px; display: flex; flex-direction: column; align-items: center; }
.w3d-bell {
  width: 112px; height: 112px; border: 0; padding: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, #fff3b0 20%, #ffd21f 55%, #e6a800 100%);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.12), 0 8px 0 #a77a00, 0 18px 30px rgba(0,0,0,.25), 0 0 0 6px #fff;
  transition: transform .2s;
}
.w3d-bell img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 10%; animation: w3d-swing 2.6s ease-in-out infinite; }
.w3d-bell:hover img { animation-duration: .8s; }
.w3d-bell.is-ringing img { animation: w3d-ring .7s ease; }
.w3d-bell[aria-pressed="true"] { box-shadow: inset 0 -6px 0 rgba(0,0,0,.12), 0 8px 0 #a77a00, 0 0 0 6px #fff, 0 0 0 12px var(--w-pink), 0 0 40px 10px rgba(255,95,168,.5); }
@keyframes w3d-swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes w3d-ring { 0% { transform: rotate(0); } 15% { transform: rotate(-24deg); } 35% { transform: rotate(20deg); } 55% { transform: rotate(-14deg); } 75% { transform: rotate(8deg); } 100% { transform: rotate(0); } }
.w3d-bell__tip {
  margin-top: 14px; font-family: var(--w-font); font-weight: 700; font-size: 15px; white-space: nowrap;
  background: var(--w-ink); color: #fff; padding: 5px 12px; border-radius: 999px; position: relative;
}
.w3d-bell__tip::before { content: ""; position: absolute; left: 50%; top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--w-ink); transform: translateX(-50%); }

/* ---------- Palco da Cereja Dupla ---------- */
.w3d-cherry {
  margin-top: 70px; background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 10px 0 #c6d6ea, 0 26px 40px rgba(31,79,191,.16);
}
.w3d-cherry__bar { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: 22px 26px 18px; }
.w3d-cherry__info { flex: 1 1 320px; }
.w3d-cherry__title { position: relative; display: inline-block; margin: 0 0 4px; font-family: var(--w-font); font-weight: 700; font-size: 26px; color: #c40f30; }
.w3d-cherry__title::before { top: -.7em; width: 2.8em; }
.w3d-cherry__info p { margin: 0; color: var(--w-ink2); font-weight: 700; }
.w3d-cherry__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.w3d-cherry__count { margin: 0; font-family: var(--w-font); font-weight: 700; font-size: 20px; color: var(--w-ink); min-width: 110px; }
.w3d-stage {
  position: relative; height: 190px; overflow: hidden;
  background:
    linear-gradient(180deg, transparent calc(100% - 40px), var(--w-grass) calc(100% - 40px), var(--w-grass) calc(100% - 30px), var(--w-grass-dk) calc(100% - 30px) calc(100% - 26px), transparent calc(100% - 26px)),
    repeating-linear-gradient(90deg, #f0b56a 0 26px, #e39b4a 26px 52px) bottom / 100% 26px no-repeat,
    url("../../img/itens/bloco.webp") 18% 26px / 40px 40px no-repeat,
    url("../../img/itens/bloco.webp") calc(18% + 40px) 26px / 40px 40px no-repeat,
    url("../../img/itens/bloco.webp") 74% 50px / 40px 40px no-repeat,
    radial-gradient(ellipse 50px 16px at 40% 30%, #fff 96%, transparent),
    radial-gradient(ellipse 30px 12px at calc(40% + 34px) 24%, #fff 96%, transparent),
    radial-gradient(ellipse 44px 14px at 90% 22%, #fff 96%, transparent),
    linear-gradient(180deg, #9fe2ff, #e4f7ff);
}
.w3d-runner { position: absolute; bottom: 36px; left: 0; width: 64px; animation: w3d-run var(--dur) linear var(--delay) infinite alternate; }
.w3d-runner__flip { animation: w3d-flip calc(var(--dur) * 2) steps(1, end) var(--delay) infinite; }
.w3d-runner__hop { position: relative; animation: w3d-hop .5s cubic-bezier(.3,.7,.5,1) infinite alternate; }
.w3d-runner img { width: 64px; height: 108px; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(0,0,0,.12)); }
.w3d-runner.is-new .w3d-runner__hop { animation: w3d-poof .5s cubic-bezier(.3,1.7,.5,1), w3d-hop .5s cubic-bezier(.3,.7,.5,1) .5s infinite alternate; }
@keyframes w3d-run { from { left: 0; } to { left: calc(100% - 64px); } }
@keyframes w3d-flip { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
@keyframes w3d-hop { from { transform: translateY(0); } to { transform: translateY(-28px); } }
@keyframes w3d-poof { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.w3d-runner__hop::before, .w3d-runner__hop::after { content: ""; position: absolute; opacity: 0; transition: opacity .3s; pointer-events: none; }
.w3d-runner__hop::before { left: 10px; top: -8px; width: 46px; height: 18px; background: var(--w-ears) center / contain no-repeat; }
.w3d-runner__hop::after { left: -14px; bottom: 30px; width: 22px; height: 30px; border: 6px solid #ffc61a; border-color: #ffc61a transparent transparent #ffc61a; border-radius: 50% 0 0 0; transform: rotate(-30deg); }
.w3d.is-gato .w3d-runner__hop::before, .w3d.is-gato .w3d-runner__hop::after { opacity: 1; }

/* ---------- Canos transparentes ---------- */
.w3d-pipe { position: relative; height: 110px; z-index: 3; pointer-events: none; }
.w3d-pipe__tube {
  position: absolute; top: -78px; bottom: -64px; width: 62px; left: calc(50% - 31px);
  background: linear-gradient(90deg, rgba(255,255,255,.35) 0, rgba(255,255,255,.9) 12%, rgba(190,236,255,.35) 32%, rgba(190,236,255,.18) 60%, rgba(255,255,255,.75) 86%, rgba(255,255,255,.35) 100%);
  border-left: 2px solid rgba(255,255,255,.95); border-right: 2px solid rgba(140,200,235,.9);
  box-shadow: 0 0 0 1px rgba(80,150,200,.25), 0 10px 30px rgba(31,79,191,.12);
  overflow: hidden;
}
.w3d-pipe__tube::before, .w3d-pipe__tube::after {
  content: ""; position: absolute; left: -2px; right: -2px; height: 16px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,.6), #fff 20%, rgba(200,240,255,.6) 60%, #fff);
  box-shadow: 0 0 0 2px rgba(140,200,235,.7);
}
.w3d-pipe__tube::before { top: 0; }
.w3d-pipe__tube::after { bottom: 0; }
.w3d-pipe--left .w3d-pipe__tube { left: 14%; }
.w3d-pipe--right .w3d-pipe__tube { left: auto; right: 16%; }
.w3d-pipe--center .w3d-pipe__tube { bottom: -24px; }
.w3d-pipe__rider {
  position: absolute; left: 50%; top: -40px; width: 38px; height: 44px; margin-left: -19px;
  background: url("../../img/inimigos/goomba.webp") center / contain no-repeat;
  animation: w3d-slide 3.2s linear infinite;
}
.w3d-pipe__rider--bell { background-image: url("../../img/itens/sino.webp"); animation-duration: 2.6s; animation-delay: -1s; }
@keyframes w3d-slide { from { transform: translateY(0) rotate(0); } to { transform: translateY(260px) rotate(360deg); } }
.w3d-pipe__coin { position: absolute; left: calc(14% + 31px - 17px); top: 30px; z-index: 2; pointer-events: auto; animation: mbr-spin 1.6s linear infinite; }

/* =========================================================
   SEÇÕES
   ========================================================= */
.w3d-sec { position: relative; padding: 60px 0 70px; }
.w3d-sec--grass::before {
  content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px;
  background: radial-gradient(circle at 16px 16px, #a8ec7c 15px, transparent 15.5px) 0 0 / 32px 16px repeat-x;
}
.w3d-sec--grass {
  background:
    radial-gradient(ellipse 60% 40px at 50% 0, rgba(255,255,255,.35), transparent),
    linear-gradient(180deg, #a8ec7c 0, #79d850 220px, #6fcf47 100%);
  border-bottom: 22px solid var(--w-dirt); box-shadow: inset 0 -6px 0 var(--w-grass-dk);
}
.w3d-sec--grass .w3d-lead, .w3d-sec--grass .w3d-note { color: #17361a; }
.w3d-sec--sea::before {
  content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px;
  background: radial-gradient(circle at 16px 16px, #1a80d0 15px, transparent 15.5px) 0 0 / 32px 16px repeat-x;
}
.w3d-sec--sea {
  background:
    radial-gradient(ellipse 34px 9px at 50% 100%, rgba(255,255,255,.13) 96%, transparent) 0 0 / 90px 44px,
    radial-gradient(ellipse 34px 9px at 50% 100%, rgba(255,255,255,.08) 96%, transparent) 45px 22px / 90px 44px,
    linear-gradient(180deg, #1a80d0 0, #126cbd 50%, #0f5aa3 100%);
  color: #fff;
}
.w3d-sec--sea .w3d-lead, .w3d-sec--sea .w3d-note { color: #eaf6ff; }

/* ---------- Sobre ---------- */
.w3d-sobre { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: center; }
.w3d-sobre__txt p { margin: 0 0 14px; font-size: 17.5px; }
.w3d-sobre__txt p:last-child { margin-bottom: 0; }
.w3d-sobre__fig { margin: 0; text-align: center; }
.w3d-sobre__fig img {
  width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 1; object-fit: contain; padding: 30px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 20%, #fff2b8 50%, #ffd21f 100%);
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.08), 0 12px 0 #e0a800, 0 26px 40px rgba(0,0,0,.15);
}
.w3d-sobre__fig figcaption { margin-top: 22px; font-weight: 800; color: var(--w-ink2); }

/* ---------- Ficha ---------- */
.w3d-ficha { margin-top: 56px; }
.w3d-ficha__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.w3d-ficha__head h3 { margin: 0; font-family: var(--w-font); font-weight: 700; font-size: 30px; color: var(--w-orange-dk); }
.w3d-greenstars { display: flex; gap: 6px; margin: 0; }
.w3d-greenstars span {
  width: 34px; height: 34px; background: linear-gradient(180deg, #8af06a, #2fb52a);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 3px 0 #1b7a17);
}
.w3d-ficha__dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; margin: 0; }
.w3d-ficha__dl div { background: #f3f8ff; border-radius: 16px; padding: 12px 16px; border-left: 6px solid var(--w-orange); }
.w3d-ficha__dl dt { font-family: var(--w-font); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--w-orange-dk); }
.w3d-ficha__dl dd { margin: 2px 0 0; font-weight: 800; }

/* ---------- Elenco ---------- */
.w3d-cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.w3d-hero-card { background: #fff; border-radius: 24px; padding: 0 0 14px; box-shadow: 0 8px 0 rgba(23,54,26,.25), 0 20px 30px rgba(0,0,0,.12); overflow: hidden; }
.w3d-hero-card__btn {
  display: flex; flex-direction: column; align-items: center; width: 100%; border: 0; padding: 0 0 6px; background: none; text-align: center;
}
.w3d-hero-card__img {
  display: grid; place-items: center; width: 100%; height: 170px; padding: 14px 10px 0;
  background: radial-gradient(circle at 50% 70%, #fff 0 25%, color-mix(in srgb, var(--c) 35%, #fff) 60%, var(--c) 100%);
  border-bottom: 6px solid var(--c);
}
.w3d-hero-card__img img { height: 150px; width: 100%; object-fit: contain; transition: transform .3s cubic-bezier(.3,1.6,.5,1); filter: drop-shadow(0 6px 0 rgba(0,0,0,.12)); }
.w3d-hero-card__btn:hover .w3d-hero-card__img img { transform: translateY(-8px) scale(1.04); }
.w3d-hero-card__name { font-family: var(--w-font); font-weight: 700; font-size: 24px; margin-top: 10px; color: var(--w-ink); }
.w3d-hero-card__tag { font-weight: 900; font-size: 14px; color: #fff; background: var(--c); border-radius: 999px; padding: 2px 12px; margin-top: 2px; }
.w3d-hero-card__btn[aria-pressed="true"] .w3d-hero-card__img { box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 9px var(--c); }
.w3d-hero-card__btn[aria-pressed="true"] .w3d-hero-card__name::after { content: " ✓"; color: var(--c); }
.w3d-hero-card:has([aria-pressed="true"]) { outline: 5px solid #fff; box-shadow: 0 0 0 10px var(--c), 0 20px 30px rgba(0,0,0,.18); }
.w3d-stats { margin: 6px 14px 0; display: grid; gap: 4px; }
.w3d-stats div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.w3d-stats dt { font-size: 13px; font-weight: 800; color: var(--w-ink2); }
.w3d-stats dd { margin: 0; }
.w3d-pips {
  display: block; width: 70px; height: 12px;
  background: linear-gradient(90deg, var(--c) calc(var(--n) * 20%), #dfe7f3 0);
  -webkit-mask: radial-gradient(circle 5.5px at 7px 50%, #000 96%, transparent) 0 0 / 14px 100% repeat-x;
  mask: radial-gradient(circle 5.5px at 7px 50%, #000 96%, transparent) 0 0 / 14px 100% repeat-x;
}

.w3d-track { margin-top: 30px; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 10px 0 rgba(23,54,26,.3), 0 26px 40px rgba(0,0,0,.14); }
.w3d-track__sky {
  position: relative; height: 310px; overflow: hidden;
  background:
    linear-gradient(180deg, transparent calc(100% - 44px), var(--w-grass) calc(100% - 44px) calc(100% - 32px), var(--w-dirt) calc(100% - 32px)),
    linear-gradient(180deg, #8fdcff, #e6f8ff);
}
.w3d-track__mark {
  position: absolute; left: 0; right: 0; bottom: calc(44px + var(--h) + 90px); border-bottom: 2px dashed rgba(29,42,68,.25); line-height: 1.3;
  font-family: var(--w-font); font-weight: 600; font-size: 13px; color: rgba(29,42,68,.6); text-align: right; padding-right: 12px;
}
.w3d-track__sprite { position: absolute; left: 4%; bottom: 44px; height: 90px; width: auto; transform-origin: 50% 100%; filter: drop-shadow(0 6px 0 rgba(0,0,0,.12)); }
.w3d-track__ring {
  position: absolute; left: 0; bottom: 44px; width: 140px; height: 40px; border-radius: 50%; opacity: 0; pointer-events: none;
  border: 4px solid #8af3ff; box-shadow: 0 0 20px #8af3ff, inset 0 0 20px #8af3ff;
}
.w3d-track__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 22px; }
.w3d-track__cap { margin: 0; font-weight: 700; flex: 1 1 300px; }

/* ---------- Itens ---------- */
.w3d-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.w3d-item {
  position: relative; background: #fff; border-radius: 24px; padding: 22px 20px 20px; text-align: center;
  box-shadow: 0 8px 0 #d3e2f2, 0 18px 30px rgba(31,79,191,.12);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.w3d .w3d-item:hover { transform: translateY(-6px) rotate(-1deg); }
.w3d-item__bubble {
  display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 12px; padding: 16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 14%, #d9f3ff 40%, #8fd6ff 100%);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.08), 0 6px 0 #6ab7e6;
}
.w3d-item__bubble--gold { background: radial-gradient(circle at 32% 28%, #fff 0 14%, #fff1a6 40%, #ffc61a 100%); box-shadow: inset 0 -6px 0 rgba(0,0,0,.08), 0 6px 0 #c99200; }
.w3d-item__bubble--gold img { filter: saturate(1.4) hue-rotate(-8deg) brightness(1.05); }
.w3d-item__bubble img, .w3d-item__bubble svg { width: 64px; height: 64px; object-fit: contain; }
.w3d-item h3 { margin: 0 0 6px; font-family: var(--w-font); font-weight: 700; font-size: 21px; }
.w3d-item h3 small { display: inline-block; vertical-align: middle; font-size: 11px; font-family: var(--mbr-font-body); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; background: var(--w-pink); color: #fff; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.w3d-item p { margin: 0; font-size: 15.5px; color: var(--w-ink2); }

.w3d-catwall { margin-top: 40px; display: grid; grid-template-columns: 1fr 180px; gap: 20px; align-items: end; }
.w3d-catwall__hint { margin: 0; font-weight: 800; color: var(--w-ink2); font-size: 16px; text-align: right; align-self: center; }
.w3d-catwall__wall {
  position: relative; height: 190px; border-radius: 10px 10px 0 0;
  background:
    linear-gradient(#0000 22px, rgba(0,0,0,.18) 22px 25px, #0000 25px) 0 0 / 100% 25px,
    linear-gradient(90deg, #0000 46px, rgba(0,0,0,.18) 46px 49px, #0000 49px) 0 0 / 49px 50px,
    linear-gradient(90deg, #0000 22px, rgba(0,0,0,.18) 22px 25px, #0000 25px) 0 25px / 49px 50px,
    #d86a2c;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.3), 0 8px 0 #8f3f12;
}
.w3d-catwall__wall::before {
  content: ""; position: absolute; left: 20px; bottom: 10px; width: 30px; height: 150px; opacity: 0; transition: opacity .5s;
  background: var(--w-paw) 0 0 / 24px 24px repeat-y;
}
.w3d-catwall__coin { position: absolute; top: -46px; right: 30px; visibility: hidden; opacity: 0; transition: opacity .4s, visibility 0s .4s; }
.w3d.is-gato .w3d-catwall__coin { visibility: visible; opacity: 1; transition: opacity .4s; }
.w3d.is-gato .w3d-catwall__wall::before { opacity: .9; }
.w3d.is-gato .w3d-catwall__coin.was-collected { opacity: .18; }

/* ---------- Mundos ---------- */
.w3d-worlds { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 12px; }
.w3d-worlds li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-family: var(--w-font); font-weight: 600; font-size: 15px; }
.w3d-worlds b {
  display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; font-size: 32px; font-weight: 700; color: #fff;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.7) 0 12%, transparent 30%), var(--c);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.18), 0 6px 0 rgba(0,0,0,.25), 0 0 0 4px #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.w3d-worlds b svg { width: 36px; height: 36px; color: #fff; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.w3d-worlds .is-post b { box-shadow: inset 0 -6px 0 rgba(0,0,0,.18), 0 6px 0 rgba(0,0,0,.25), 0 0 0 4px #fff, 0 0 0 8px rgba(255,210,31,.6); }
.w3d-worlds .is-post span::after { content: "pós-jogo"; display: block; font-size: 11px; font-family: var(--mbr-font-body); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--w-yellow); }

.w3d-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.w3d-level {
  position: relative; background: #fff; color: var(--w-ink); border-radius: 22px; padding: 22px 22px 20px;
  box-shadow: 0 8px 0 #0f5aa3, 0 18px 30px rgba(0,0,0,.18);
}
.w3d-level__flag { position: absolute; right: 20px; top: -18px; width: 6px; height: 58px; background: linear-gradient(90deg, #ddd, #fff, #bbb); border-radius: 3px; }
.w3d-level__flag::before { content: ""; position: absolute; left: 6px; top: 4px; width: 30px; height: 22px; background: var(--w-grass); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.w3d-level__flag::after { content: ""; position: absolute; left: -4px; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--w-yellow); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.w3d-level__n { display: inline-block; margin: 0 0 8px; font-family: var(--w-font); font-weight: 700; font-size: 14px; color: #fff; background: #1f8fe0; border-radius: 10px; padding: 2px 10px; }
.w3d-level h3 { margin: 0 0 6px; font-family: var(--w-font); font-weight: 700; font-size: 21px; line-height: 1.2; padding-right: 30px; }
.w3d-level p { margin: 0; font-size: 15.5px; color: var(--w-ink2); }
.w3d-level--boss { background: #3a1020; color: #fff; }
.w3d-level--boss p { color: #f5d9e2; }
.w3d-level--boss .w3d-level__n { background: #e60012; }
.w3d-level--crown { background: linear-gradient(160deg, #fff7c7, #ffe066); }
.w3d-level--crown .w3d-level__n { background: #7a5c00; }

/* ---------- Capitão Toad ---------- */
.w3d-toad { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.w3d-toad__txt p { font-size: 17px; margin: 0 0 14px; }
.w3d-toad__try { font-weight: 900; color: var(--w-orange-dk); }
.w3d-toad__toy { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.w3d-cube-scene { --s: 240px; position: relative; width: var(--s); height: var(--s); perspective: 1000px; margin: 40px auto 64px; border-radius: 16px; }
.w3d-cube-scene:focus-visible { outline-offset: 30px; }
.w3d-cube {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(-16deg) rotateY(calc(var(--rot, 0) * -90deg - 22deg));
  transition: transform .8s cubic-bezier(.3,1.3,.5,1);
}
.w3d-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  background:
    linear-gradient(180deg, var(--w-grass) 0 22px, var(--w-grass-dk) 22px 28px, transparent 28px),
    repeating-linear-gradient(0deg, #e8a65a 0 30px, #dc9547 30px 60px);
  border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(0,0,0,.08);
}
.w3d-face--front { transform: translateZ(calc(var(--s) / 2)); }
.w3d-face--right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.w3d-face--back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); display: grid; place-items: center; align-content: center; gap: 4px; }
.w3d-face--left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.w3d-face--top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: repeating-conic-gradient(#6fdc48 0 25%, #5fd23a 0 50%) 0 0 / 40px 40px; }
.w3d-face__toad { position: absolute; left: 26px; bottom: 14px; height: 140px; width: auto; }
.w3d-face__lamp { position: absolute; left: 112px; top: 74px; width: 120px; height: 60px; background: radial-gradient(ellipse at 0 50%, rgba(255,250,190,.85), rgba(255,250,190,0) 70%); clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%); }
.w3d-face__stairs { position: absolute; right: 16px; bottom: 14px; width: 70px; height: 70px; background: linear-gradient(90deg, transparent 0 33%, #c97a33 33%) bottom / 100% 33% no-repeat, linear-gradient(90deg, transparent 0 66%, #c97a33 66%) 0 50% / 100% 34% no-repeat, linear-gradient(#c97a33, #c97a33) top right / 34% 34% no-repeat; }
.w3d-face__bricks { position: absolute; left: 24px; right: 24px; bottom: 50px; height: 46px; background: linear-gradient(90deg, #0000 44px, rgba(0,0,0,.25) 44px 46px) 0 0 / 46px 46px, #d86a2c; border-radius: 4px; box-shadow: inset 0 3px 0 rgba(255,255,255,.3); }
.w3d-face__q { position: absolute; left: calc(50% - 26px); top: 52px; width: 52px; height: 52px; background: url("../../img/itens/bloco.webp") center / contain no-repeat; }
.w3d-face__gstar { position: absolute; left: calc(50% - 34px); top: 46px; width: 68px; height: 68px; background: linear-gradient(180deg, #8af06a, #2fb52a); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: w3d-bob 2s ease-in-out infinite; }
.w3d-face__pipe { position: absolute; left: calc(50% - 30px); bottom: 0; width: 60px; height: 70px; background: linear-gradient(90deg, #0a7a1c, #3fd14f 35%, #18a12a 60%, #0a6a18); border: 3px solid #053d0d; border-bottom: 0; }
.w3d-face__found { margin: 0; font-family: var(--w-font); font-weight: 700; font-size: 26px; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.w3d-face__coin { width: 54px; height: 64px; }
.w3d-cube-shadow { position: absolute; left: 10%; right: 10%; bottom: -70px; height: 30px; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.22), transparent 70%); }
.w3d-cube-ctrl { display: flex; gap: 14px; }

/* =========================================================
   BOWSER'S FURY - paleta tempestuosa
   ========================================================= */
.w3d-fury {
  position: relative; padding: 110px 0 80px; color: #f1ecff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 70% 40% at 70% 20%, rgba(255,90,0,.22), transparent 70%),
    radial-gradient(ellipse 50% 30% at 20% 10%, rgba(120,80,200,.3), transparent 70%),
    linear-gradient(180deg, #f4fbff 0, #6c6a8e 60px, #2b2142 160px, #1a1229 50%, #0e0a17 100%);
  transition: filter .6s;
}
.w3d-fury__storm { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.w3d-fury__rain {
  position: absolute; inset: -200px 0 0; opacity: .35;
  background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(170,190,255,.35) 22px 23px, transparent 23px 47px);
  background-size: 100% 140px; animation: w3d-rain .45s linear infinite;
  transition: opacity .6s;
}
.w3d-fury__rain--2 { opacity: .2; background-size: 100% 90px; animation-duration: .7s; filter: blur(.5px); }
@keyframes w3d-rain { to { background-position: -40px 140px; } }
.w3d-fury__flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.w3d-fury.is-flash .w3d-fury__flash { animation: w3d-flash .7s ease-out; }
@keyframes w3d-flash { 0% { opacity: 0; } 8% { opacity: .75; } 18% { opacity: .1; } 28% { opacity: .55; } 100% { opacity: 0; } }
.w3d-fury.is-furious .w3d-fury__rain { opacity: .85; }
.w3d-fury.is-furious .w3d-fury__rain--2 { opacity: .6; }
.w3d-fury.is-calm .w3d-fury__rain { opacity: .08; }

.w3d-eyebrow--fury { background: #ff5a00; color: #fff; box-shadow: 0 3px 0 #7a2400; }
.w3d-h2--fury {
  background: linear-gradient(180deg, #3a2a50, #1c1230); color: #ffd9b8;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.15), 0 8px 0 #07040c, 0 0 40px rgba(255,90,0,.45);
  text-shadow: 0 0 18px rgba(255,120,0,.8), 0 3px 0 #000;
}
.w3d-fury .w3d-lead { color: #d9d0ee; }
.w3d-fury__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.w3d-fury__txt p { margin: 0 0 14px; font-size: 17px; color: #e7e1f5; }
.w3d-fury__txt strong { color: #ffb37a; }
.w3d-fury__facts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.w3d-fury__facts li { background: rgba(255,255,255,.08); border: 2px solid rgba(255,140,60,.5); border-radius: 14px; padding: 8px 14px; font-size: 14px; font-weight: 700; color: #e7e1f5; }
.w3d-fury__facts b { display: block; font-family: var(--w-font); font-size: 20px; color: #ffb37a; }

.w3d-fury__stage { position: relative; height: 440px; border-radius: 30px; overflow: hidden; background: radial-gradient(ellipse at 60% 30%, #3b2a58, #150e22 75%); box-shadow: inset 0 0 0 3px rgba(255,140,60,.35), 0 30px 50px rgba(0,0,0,.4); }
.w3d-fury__lake {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 3;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #23506e, #0c2333);
  box-shadow: 0 -6px 20px rgba(0,0,0,.3);
}
.w3d-fury__bowser {
  position: absolute; z-index: 2; left: 34%; bottom: 40px; width: 330px; max-width: 70%;
  filter: brightness(.18) contrast(1.4) drop-shadow(0 0 3px #ff7a1a) drop-shadow(0 0 16px #ff4a00) drop-shadow(0 0 40px rgba(255,60,0,.6));
  transform: translateY(80px) scale(.92); transform-origin: 50% 100%;
  transition: transform 1s cubic-bezier(.3,1.2,.5,1), filter .8s;
}
.w3d-fury.is-furious .w3d-fury__bowser { transform: translateY(0) scale(1.08); animation: w3d-rage .25s linear infinite; }
.w3d-fury.is-calm .w3d-fury__bowser { transform: translateY(240px) scale(.8); }
@keyframes w3d-rage { 25% { translate: -3px 1px; } 75% { translate: 3px -1px; } }
.w3d-fury__giga {
  position: absolute; z-index: 4; left: 17%; bottom: 60px; width: 110px;
  filter: drop-shadow(0 0 10px rgba(255,210,31,.7));
  transform-origin: 50% 100%; transition: transform 1s cubic-bezier(.3,1.5,.5,1), filter .6s;
}
.w3d-fury.is-giga .w3d-fury__giga { transform: scale(2.6) translateX(14px); filter: drop-shadow(0 0 14px #ffd21f) drop-shadow(0 0 40px rgba(255,210,31,.9)); }
.w3d-fury__jr { position: absolute; z-index: 5; left: 2%; bottom: 14px; width: 96px; }
.w3d-lighthouse { position: absolute; z-index: 4; right: 6%; bottom: 70px; width: 60px; height: 230px; }
.w3d-lighthouse__tower {
  position: absolute; left: 10px; right: 10px; bottom: 0; height: 170px;
  background: repeating-linear-gradient(180deg, #f2f2f2 0 28px, #e60012 28px 56px);
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); border-radius: 4px;
}
.w3d-lighthouse__beam {
  position: absolute; right: 22px; top: 40px; width: 340px; height: 90px; transform-origin: 100% 50%;
  background: linear-gradient(270deg, rgba(255,240,160,.55), rgba(255,240,160,0));
  clip-path: polygon(0 0, 100% 42%, 100% 58%, 0 100%); animation: w3d-beam 5s ease-in-out infinite;
}
@keyframes w3d-beam { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
.w3d-lighthouse__coin { position: absolute; left: 13px; top: 0; z-index: 2; }
.w3d-lighthouse::before { content: ""; position: absolute; left: 6px; right: 6px; top: 42px; height: 22px; background: #2a1d44; border-radius: 6px 6px 0 0; box-shadow: inset 0 0 12px rgba(255,230,120,.8); }

.w3d-fury__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.w3d-fury__status { margin: 0; font-weight: 800; color: #ffd9b8; flex: 1 1 260px; }
.w3d-fury.is-shake { animation: w3d-shake .5s linear; }
@keyframes w3d-shake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -2px); } }
.w3d-fury.is-furious .w3d-fury__stage { box-shadow: inset 0 0 0 3px rgba(255,90,0,.8), 0 0 60px rgba(255,60,0,.35), 0 30px 50px rgba(0,0,0,.4); }

/* ---------- Curiosidades / carimbos ---------- */
.w3d-stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.w3d-stamp {
  position: relative; padding: 30px 24px 24px; text-align: center; isolation: isolate;
  background: radial-gradient(circle, transparent 5.5px, #fff 6px) -9px -9px / 18px 18px;
  filter: drop-shadow(0 6px 8px rgba(31,79,191,.18));
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.w3d .w3d-stamp:nth-child(odd) { transform: rotate(-1.5deg); }
.w3d .w3d-stamp:nth-child(even) { transform: rotate(1.2deg); }
.w3d .w3d-stamp:hover { transform: rotate(0) scale(1.03); }
.w3d-stamp::before { content: ""; position: absolute; inset: 9px; z-index: -1; background: #fff; border: 4px solid var(--c); border-radius: 4px; }
.w3d-stamp__ic {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; padding: 10px;
  background: radial-gradient(circle at 35% 30%, #fff 0 15%, color-mix(in srgb, var(--c) 30%, #fff) 60%, var(--c));
}
.w3d-stamp__ic { overflow: hidden; }
.w3d-stamp__ic img { width: 64px; height: 64px; object-fit: contain; }
.w3d-stamp__ic--pipe::before { content: ""; width: 26px; height: 56px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.5), #fff 20%, rgba(190,236,255,.5) 50%, #fff 85%); border: 2px solid #7cc6ea; }
.w3d-stamp p { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--w-ink); }
.w3d-stamp__coin { width: 46px; height: 54px; }

/* ---------- Onde jogar + mastro ---------- */
.w3d-sec--goal { background: linear-gradient(180deg, #f4fbff 0, #ffe7b8 40%, #ffb38a 100%); padding-bottom: 0; }
.w3d-onde { display: grid; grid-template-columns: 1fr 220px; gap: 30px; align-items: end; }
.w3d-onde__main { padding-bottom: 70px; }
.w3d-where { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.w3d-where__card { background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 8px 0 #e3a46a, 0 18px 30px rgba(0,0,0,.1); }
.w3d-where__card h3 { margin: 0 0 6px; font-family: var(--w-font); font-weight: 700; font-size: 22px; }
.w3d-where__card p { margin: 0; font-size: 15.5px; color: var(--w-ink2); }
.w3d-where__card.is-best { background: linear-gradient(180deg, #fff, #fff4d1); box-shadow: 0 0 0 4px var(--w-yellow), 0 8px 0 4px #d9a400, 0 18px 30px rgba(0,0,0,.1); }
.w3d-where__card.is-best h3::after { content: "Recomendado"; display: inline-block; vertical-align: middle; margin-left: 8px; font-family: var(--mbr-font-body); font-weight: 900; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; background: var(--w-orange-dk); color: #fff; padding: 3px 8px; border-radius: 999px; }
.w3d-goal { position: relative; height: 380px; }
.w3d-goal__pole { position: absolute; left: 50%; bottom: 46px; width: 12px; height: 300px; margin-left: -6px; border-radius: 6px; background: linear-gradient(90deg, #a9b6c4, #fff 40%, #c9d3dd); box-shadow: 0 0 0 2px rgba(29,42,68,.2); }
.w3d-goal__flag { position: absolute; left: calc(50% + 6px); top: 70px; width: 80px; height: 56px; background: linear-gradient(135deg, #e60012 50%, #fff 50%); clip-path: polygon(0 0, 100% 50%, 0 100%); animation: w3d-flag 1.6s ease-in-out infinite; transform-origin: 0 50%; }
@keyframes w3d-flag { 50% { transform: scaleX(.86) skewY(3deg); } }
.w3d-goal__top { position: absolute; left: calc(50% - 17px); top: 0; z-index: 2; }
.w3d-goal__base { position: absolute; left: calc(50% - 30px); bottom: 0; width: 60px; height: 46px; background: url("../../img/itens/bloco.webp") center / contain no-repeat; filter: saturate(.2) brightness(.8); }
.w3d-goal__tip { position: absolute; right: 100%; top: 10px; width: 170px; margin: 0 8px 0 0; font-size: 13px; font-weight: 800; color: var(--w-ink2); text-align: right; }

/* ---------- Botão flutuante e pegadas ---------- */
.w3d-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 420; width: 62px; height: 62px; border-radius: 50%; border: 0; padding: 9px;
  background: radial-gradient(circle at 35% 30%, #fff 0 10%, #fff3b0 25%, #ffd21f 60%, #e6a800);
  box-shadow: 0 5px 0 #a77a00, 0 12px 20px rgba(0,0,0,.25), 0 0 0 4px #fff;
  transition: transform .2s;
}
.w3d-fab:hover { transform: scale(1.08) rotate(-6deg); }
.w3d-fab img { width: 100%; height: 100%; object-fit: contain; }
.w3d-fab[aria-pressed="true"] { box-shadow: 0 5px 0 #a77a00, 0 0 0 4px #fff, 0 0 0 8px var(--w-pink), 0 0 30px 6px rgba(255,95,168,.45); }
.w3d-fab.is-ringing img { animation: w3d-ring .7s ease; }
.w3d-paws { position: fixed; inset: 0; z-index: 450; pointer-events: none; overflow: hidden; }
.w3d-paw { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: var(--w-paw) center / contain no-repeat; opacity: .85; animation: w3d-pawfade 1.1s ease-out forwards; }
@keyframes w3d-pawfade { 0% { opacity: 0; scale: .4; } 15% { opacity: .9; scale: 1; } 100% { opacity: 0; scale: .9; } }

/* Barra entre jogos combinando com o fim da fase */
body[data-game="3dworld"] .mbr-gamenav { background: linear-gradient(180deg, #ffb38a 0, #17171c 90px); padding-top: 50px; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1100px) {
  .w3d-cast { grid-template-columns: repeat(3, 1fr); }
  .w3d-worlds { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .w3d-hero__in { grid-template-columns: 1fr; gap: 10px; }
  .w3d-hero__txt { text-align: center; }
  .w3d-chips, .w3d-hero__cta { justify-content: center; }
  .w3d-hero__logo { margin: 0 auto; width: min(420px, 90%); }
  .w3d-hero__hook { margin-left: auto; margin-right: auto; }
  .w3d-sobre, .w3d-toad, .w3d-fury__grid { grid-template-columns: 1fr; }
  .w3d-head--left { text-align: center; margin-left: auto; }
  .w3d-where { grid-template-columns: 1fr; }
  .w3d-onde { grid-template-columns: 1fr 140px; }
  .w3d-goal__tip { display: none; }
}
@media (max-width: 720px) {
  .w3d-wrap { padding: 0 16px; }
  .w3d-cast { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .w3d-cast li:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
  .w3d-worlds { grid-template-columns: repeat(3, 1fr); }
  .w3d-ficha__dl { grid-template-columns: 1fr; }
  .w3d-tile { padding: 22px 18px; }
  .w3d-sec { padding: 46px 0 54px; }
  .w3d-hero { padding-top: 26px; }
  .w3d-hero__art { padding: 34px 0 70px; }
  .w3d-bell { width: 86px; height: 86px; }
  .w3d-bellwrap { left: -4px; bottom: -58px; }
  .w3d-qblock { width: 56px; height: 56px; top: -26px; }
  .w3d-catwall { grid-template-columns: 1fr 120px; }
  .w3d-catwall__hint { font-size: 14px; }
  .w3d-fury { padding-top: 90px; }
  .w3d-fury__stage { height: 360px; }
  .w3d-fury__bowser { left: 26%; width: 250px; }
  .w3d-lighthouse { right: 2%; transform: scale(.8); transform-origin: 100% 100%; }
  .w3d-lighthouse__beam { width: 200px; }
  .w3d-track__sky { height: 300px; }
  .w3d-hero-card__img { height: 150px; }
  .w3d-hero-card__img img { height: 130px; }
  .w3d-pipe { height: 90px; }
  .w3d-items { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .w3d-item { padding: 16px 12px 14px; }
  .w3d-item__bubble { width: 74px; height: 74px; padding: 10px; }
  .w3d-item__bubble img, .w3d-item__bubble svg { width: 52px; height: 52px; }
  .w3d-item h3 { font-size: 17px; }
  .w3d-item h3 small { display: block; width: max-content; margin: 4px auto 0; }
  .w3d-item p { font-size: 14px; }
  .w3d-sobre__fig img { max-width: 240px; }
  .w3d-fab { width: 52px; height: 52px; right: 12px; bottom: 12px; }
  .w3d-stamps { gap: 18px; }
  .w3d-stamp { display: flex; align-items: center; gap: 14px; text-align: left; padding: 22px 20px; }
  .w3d-stamp__ic { flex: 0 0 64px; width: 64px; height: 64px; margin: 0; padding: 6px; }
  .w3d-stamp__ic img { width: 50px; height: 50px; }
  .w3d-stamp p { font-size: 14.5px; }
  .w3d-levels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 4px 18px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
  .w3d-level { scroll-snap-align: start; }
  .w3d-levels::after { content: ""; width: 1px; }
}
@media (max-width: 420px) {
  .w3d-hero__hook { font-size: 18px; }
  .w3d-btn { font-size: 16px; padding: 10px 18px; }
  .w3d-cube-scene { --s: 200px; }
  .w3d-face__toad { height: 116px; left: 18px; }
  .w3d-face__lamp { left: 90px; top: 64px; }
  .w3d-stage { height: 170px; }
  .w3d-runner, .w3d-runner img { width: 52px; }
  .w3d-runner img { height: 88px; }
  @keyframes w3d-run { from { left: 0; } to { left: calc(100% - 52px); } }
  .w3d-onde { grid-template-columns: 1fr; }
  .w3d-goal { height: 300px; }
  .w3d-goal__pole { height: 220px; }
  .w3d-onde__main { padding-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .w3d-runner { animation: none; left: calc(var(--i, 0) * 15%); }
  .w3d-runner__flip, .w3d-runner__hop, .w3d-hero__clouds span, .w3d-diorama, .w3d-hero__logo, .w3d-qblock,
  .w3d-pipe__rider, .w3d-fury__rain, .w3d-face__gstar, .w3d-lighthouse__beam, .w3d-goal__flag, .w3d-bell img { animation: none !important; }
  .w3d-fury.is-furious .w3d-fury__bowser { animation: none; }
}
