.mgwc-embed {
  --mgwc-color-ink: #3d3345;
  --mgwc-color-muted: #786b82;
  --mgwc-color-gold: #d9ad5f;
  --mgwc-color-gold-soft: #f5dfad;
  --mgwc-color-pink: #ffd4ec;
  --mgwc-color-lavender: #dfd6ff;
  --mgwc-color-mint: #c9f5e8;
  --mgwc-color-sky: #d9efff;
  --mgwc-color-star: #fff3ad;
  --mgwc-font-body: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --mgwc-font-display: "Trebuchet MS", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  display: grid;
  place-items: center;
  padding: max(2px, env(safe-area-inset-top)) max(2px, env(safe-area-inset-right)) max(26px, env(safe-area-inset-bottom)) max(2px, env(safe-area-inset-left));
  color: var(--mgwc-color-ink);
  font-family: var(--mgwc-font-body);
  background:
    linear-gradient(120deg, rgba(255, 212, 236, 0.5), rgba(223, 214, 255, 0.44), rgba(201, 245, 232, 0.46)),
    linear-gradient(180deg, #fffafd 0%, #f9f4ff 52%, #edfaff 100%);
  -webkit-text-size-adjust: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

.mgwc-embed *,
.mgwc-embed *::before,
.mgwc-embed *::after {
  box-sizing: border-box;
}

.mgwc-embed button {
  min-height: 48px;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html.mgwc-is-game-active,
body.mgwc-is-game-active {
  overflow: hidden;
  touch-action: none;
}

.mgwc-embed img,
.mgwc-embed svg {
  -webkit-user-drag: none;
  user-drag: none;
}

.mgwc-console {
  width: min(100%, 430px);
  position: relative;
  padding: 20px 16px 30px;
  overflow: hidden;
  border: 2px solid rgba(217, 173, 95, 0.82);
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 243, 173, 0.72) 0 9%, transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(201, 245, 232, 0.66) 0 8%, transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 251, 0.88)),
    linear-gradient(120deg, var(--mgwc-color-pink), var(--mgwc-color-lavender), var(--mgwc-color-mint), var(--mgwc-color-sky), var(--mgwc-color-star));
  box-shadow:
    0 24px 58px rgba(85, 61, 104, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.68),
    inset 0 -22px 40px rgba(217, 173, 95, 0.16);
}

.mgwc-console::before,
.mgwc-console::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: 28px;
}

.mgwc-console::before {
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.mgwc-console::after {
  background-image:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.5) 48% 52%, transparent 52% 100%),
    linear-gradient(0deg, transparent 0 48%, rgba(255, 255, 255, 0.38) 48% 52%, transparent 52% 100%);
  background-size: 46px 46px;
  opacity: 0.16;
}

.mgwc-console__topbar,
.mgwc-console__header,
.mgwc-screen-wrap,
.mgwc-console__controls,
.mgwc-console__footer {
  position: relative;
  z-index: 1;
}

.mgwc-console__topbar {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-height: 12px;
  padding-right: 8px;
}

.mgwc-speaker-dot {
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(61, 51, 69, 0.22);
}

.mgwc-console__header {
  padding: 10px 8px 14px;
  text-align: center;
}

.mgwc-console__header::before,
.mgwc-console__header::after {
  position: absolute;
  top: 18px;
  color: rgba(217, 173, 95, 0.76);
  animation: mgwcTwinkle 3.4s ease-in-out infinite;
}

.mgwc-console__header::before {
  content: "*";
  left: 18px;
  font-size: 1rem;
}

.mgwc-console__header::after {
  content: "crescent";
  right: 12px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mgwc-console__brand {
  margin: 0 0 5px;
  color: var(--mgwc-color-gold);
  font-family: var(--mgwc-font-display);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.mgwc-console h2 {
  margin: 0;
  color: var(--mgwc-color-ink);
  font-family: var(--mgwc-font-display);
  font-size: clamp(1.75rem, 9vw, 2.25rem);
  line-height: 1;
}

.mgwc-screen-wrap {
  padding: 9px;
  border: 1px solid rgba(217, 173, 95, 0.5);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(245, 223, 173, 0.38)),
    linear-gradient(90deg, rgba(255, 212, 236, 0.45), rgba(223, 214, 255, 0.45), rgba(201, 245, 232, 0.45));
  box-shadow:
    inset 0 0 18px rgba(126, 91, 47, 0.08),
    0 8px 20px rgba(126, 91, 47, 0.1);
}

.mgwc-screen {
  min-height: 330px;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 13px;
  border: 2px solid rgba(61, 51, 69, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 243, 173, 0.48) 0 10%, transparent 22%),
    radial-gradient(circle at 85% 12%, rgba(223, 214, 255, 0.5) 0 9%, transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #fff8fe 0%, #efffff 48%, #fff9dc 100%);
  box-shadow:
    inset 0 8px 24px rgba(61, 51, 69, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.mgwc-screen__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: var(--mgwc-color-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
}

.mgwc-screen__stars,
.mgwc-menu__cursor {
  color: var(--mgwc-color-gold);
}

.mgwc-led {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #88dfb8;
  box-shadow: 0 0 10px rgba(95, 208, 158, 0.9);
}

.mgwc-view {
  display: none;
  min-height: 280px;
}

.mgwc-view.mgwc-is-active {
  display: block;
  animation: mgwcViewIn 360ms ease both;
}

.mgwc-screen__title {
  padding: 24px 4px 18px;
  text-align: center;
}

.mgwc-screen__title p {
  margin: 0 0 8px;
  color: var(--mgwc-color-gold);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.mgwc-screen__title h3 {
  max-width: 12ch;
  margin: 0 auto;
  color: var(--mgwc-color-ink);
  font-family: var(--mgwc-font-display);
  font-size: clamp(1.65rem, 8vw, 2rem);
  line-height: 1.04;
}

.mgwc-console-version {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(217, 173, 95, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--mgwc-color-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.mgwc-menu {
  display: grid;
  gap: 8px;
  align-content: start;
}

.mgwc-menu__item {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(217, 173, 95, 0.38);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--mgwc-color-ink);
  font-weight: 800;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mgwc-menu__item[aria-selected="true"] {
  border-color: rgba(217, 173, 95, 0.74);
  background:
    linear-gradient(90deg, rgba(255, 243, 173, 0.64), rgba(255, 212, 236, 0.5), rgba(217, 239, 255, 0.54));
  box-shadow:
    0 8px 18px rgba(126, 91, 47, 0.12),
    0 0 0 2px rgba(255, 255, 255, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.mgwc-menu__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(126, 91, 47, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.mgwc-menu__item:active,
.mgwc-game__controls button:active,
.mgwc-back-button:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 3px 8px rgba(126, 91, 47, 0.14);
}

.mgwc-menu__item[data-mgwc-state="coming-soon"] {
  color: rgba(61, 51, 69, 0.58);
}

.mgwc-console__controls {
  display: grid;
  grid-template-columns: 108px 1fr 104px;
  align-items: start;
  gap: 10px;
  min-height: 258px;
  padding: 22px 3px 38px;
}

.mgwc-dpad {
  position: relative;
  width: 104px;
  height: 104px;
  touch-action: none;
}

.mgwc-dpad__button,
.mgwc-dpad__center,
.mgwc-dpad > span:not(.mgwc-dpad__center) {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #766581, #4b3f54);
  box-shadow: 0 5px 12px rgba(61, 51, 69, 0.25);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.mgwc-dpad__button {
  min-width: 44px;
  min-height: 44px;
}

.mgwc-dpad > span:not(.mgwc-dpad__center) {
  pointer-events: none;
}

.mgwc-dpad.has-enhanced-controls > span:not(.mgwc-dpad__center) {
  display: none;
}

.mgwc-dpad > span:not(.mgwc-dpad__center):first-child {
  top: 0;
  left: 30px;
  width: 44px;
  height: 104px;
}

.mgwc-dpad > span:not(.mgwc-dpad__center):nth-child(2) {
  top: 30px;
  left: 0;
  width: 104px;
  height: 44px;
}

.mgwc-dpad__button--up {
  top: 0;
  left: 30px;
  width: 44px;
  height: 44px;
}

.mgwc-dpad__button--right {
  top: 30px;
  right: 0;
  width: 44px;
  height: 44px;
}

.mgwc-dpad__button--down {
  bottom: 0;
  left: 30px;
  width: 44px;
  height: 44px;
}

.mgwc-dpad__button--left {
  top: 30px;
  left: 0;
  width: 44px;
  height: 44px;
}

.mgwc-dpad__center {
  top: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

.mgwc-dpad__button:hover,
.mgwc-orbit:hover,
.mgwc-action-buttons button:hover,
.mgwc-action-buttons span:hover {
  filter: brightness(1.05);
}

.mgwc-dpad__button:active,
.mgwc-dpad__button.mgwc-is-pressed,
.mgwc-orbit:active,
.mgwc-orbit.mgwc-is-pressed,
.mgwc-action-buttons button:active,
.mgwc-action-buttons button.mgwc-is-pressed,
.mgwc-action-buttons span:active,
.mgwc-action-buttons span.mgwc-is-pressed {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 3px 8px rgba(61, 51, 69, 0.22);
}

.mgwc-orbit {
  justify-self: center;
  align-self: end;
  margin-top: 0;
  display: grid;
  place-items: center;
  width: 76px;
  min-height: 76px;
  padding: 0;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 173, 95, 0.58);
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(223, 214, 255, 0.5));
  color: var(--mgwc-color-gold);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 18px rgba(217, 173, 95, 0.18);
  touch-action: none;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.mgwc-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 82px;
  padding-top: 8px;
}

.mgwc-action-buttons [data-mgwc-console-control="b"] {
  order: 1;
  top: 14px;
  left: -2px;
}

.mgwc-action-buttons [data-mgwc-console-control="a"] {
  order: 2;
  top: -12px;
  left: 2px;
}

.mgwc-action-buttons button,
.mgwc-action-buttons span {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 48px;
  padding: 0;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 173, 95, 0.68);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, var(--mgwc-color-gold-soft));
  color: var(--mgwc-color-ink);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(126, 91, 47, 0.18);
  touch-action: none;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.mgwc-console__footer {
  min-height: 38px;
  margin-top: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--mgwc-color-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.mgwc-console__footer p {
  margin: 0;
}

.mgwc-game {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 9px;
  min-height: 280px;
  touch-action: none;
}

.mgwc-game__hud {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--mgwc-color-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.mgwc-game__pill {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(217, 173, 95, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.mgwc-game__pill--time {
  border-color: rgba(156, 147, 255, 0.36);
}

.mgwc-game__hud strong {
  color: var(--mgwc-color-ink);
  font-size: 1rem;
}

.mgwc-score-pop {
  animation: mgwcScorePop 300ms ease both;
}

.mgwc-game__stage {
  position: relative;
  min-height: 198px;
  overflow: hidden;
  touch-action: none;
  border: 1px solid rgba(217, 173, 95, 0.38);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 243, 173, 0.55) 0 10%, transparent 24%),
    radial-gradient(circle at 84% 15%, rgba(223, 214, 255, 0.58) 0 11%, transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(255, 212, 236, 0.42), rgba(217, 239, 255, 0.5), rgba(255, 243, 173, 0.38));
  box-shadow: inset 0 8px 20px rgba(61, 51, 69, 0.07);
}

.mgwc-game__stage::before {
  content: "Moon  Stars  Sparkle";
  position: absolute;
  top: 10px;
  left: 12px;
  color: rgba(120, 107, 130, 0.34);
  font-size: 0.68rem;
  font-weight: 900;
}

.mgwc-game__stage::after {
  content: "*";
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: rgba(217, 173, 95, 0.52);
  font-size: 1.2rem;
  animation: mgwcTwinkle 3s ease-in-out infinite;
}

.mgwc-game__stage.mgwc-is-starting {
  animation: mgwcStageGlow 900ms ease both;
}

.mgwc-game__stage.mgwc-is-ending {
  animation: mgwcEndGlow 720ms ease both;
}

.mgwc-stage-toast {
  position: absolute;
  z-index: 4;
  inset: 50% auto auto 50%;
  min-width: 138px;
  padding: 10px 14px;
  border: 1px solid rgba(217, 173, 95, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--mgwc-color-ink);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(85, 61, 104, 0.16);
  animation: mgwcToast 920ms ease both;
}

.mgwc-game__player {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(217, 173, 95, 0.78);
  border-radius: 15px 15px 17px 17px;
  background:
    radial-gradient(circle at 50% 38%, #ffffff 0 18%, transparent 20%),
    linear-gradient(135deg, var(--mgwc-color-pink), var(--mgwc-color-lavender), var(--mgwc-color-mint));
  box-shadow: 0 8px 16px rgba(61, 51, 69, 0.18), 0 0 16px rgba(245, 223, 173, 0.42);
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  transition: filter 150ms ease;
}

.mgwc-game__player.mgwc-is-catching {
  filter: brightness(1.08);
}

.mgwc-game__item {
  position: absolute;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 12px rgba(61, 51, 69, 0.14), 0 0 14px rgba(255, 243, 173, 0.38);
  font-size: 1.25rem;
  line-height: 1;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  animation: mgwcItemFloat 1.6s ease-in-out infinite;
}

.mgwc-game__item.mgwc-is-collected {
  animation: mgwcCollect 220ms ease both;
}

.mgwc-sparkle {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 34px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: mgwcSparkle 360ms ease-out both;
}

.mgwc-sparkle::before,
.mgwc-sparkle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: rgba(217, 173, 95, 0.9);
  transform: translate(-50%, -50%);
}

.mgwc-sparkle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.mgwc-game__controls {
  display: none;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  touch-action: none;
}

.mgwc-game__controls button,
.mgwc-back-button {
  border: 1px solid rgba(217, 173, 95, 0.66);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, var(--mgwc-color-gold-soft));
  color: var(--mgwc-color-ink);
  font-weight: 900;
  box-shadow: 0 7px 14px rgba(126, 91, 47, 0.14);
  touch-action: none;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.mgwc-game__controls button:hover,
.mgwc-back-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.mgwc-result {
  min-height: 280px;
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 6px;
  text-align: center;
  animation: mgwcResultIn 520ms ease both;
}

.mgwc-result__eyebrow {
  margin: 0;
  color: var(--mgwc-color-gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mgwc-result__icon {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(217, 173, 95, 0.44);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 243, 173, 0.72), rgba(255, 212, 236, 0.62), rgba(217, 239, 255, 0.68));
  color: var(--mgwc-color-ink);
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(126, 91, 47, 0.14), inset 0 0 14px rgba(255, 255, 255, 0.72);
}

.mgwc-result h3 {
  margin: 0;
  color: var(--mgwc-color-ink);
  font-family: var(--mgwc-font-display);
  font-size: 1.65rem;
  line-height: 1.12;
}

.mgwc-result dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.mgwc-result dl div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(217, 173, 95, 0.36);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.mgwc-result dt {
  color: var(--mgwc-color-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.mgwc-result dd {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.mgwc-color-chip {
  width: 14px;
  aspect-ratio: 1;
  border: 1px solid rgba(61, 51, 69, 0.14);
  border-radius: 50%;
  background: var(--mgwc-color-gold);
  box-shadow: 0 0 10px rgba(217, 173, 95, 0.42);
}

.mgwc-result__message {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(217, 173, 95, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--mgwc-color-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 759px) {
  .mgwc-embed {
    place-items: start center;
  }

  .mgwc-console {
    width: 100%;
    max-width: none;
    padding: 16px 10px 34px;
    border-radius: 30px;
  }

  .mgwc-console::before,
  .mgwc-console::after {
    inset: 7px;
    border-radius: 22px;
  }

  .mgwc-console__controls {
    grid-template-columns: 136px 1fr 108px;
    gap: 8px;
    min-height: 278px;
    padding: 24px 0 44px;
  }

  .mgwc-dpad {
    width: 132px;
    height: 132px;
  }

  .mgwc-dpad__button {
    min-width: 58px;
    min-height: 58px;
  }

  .mgwc-dpad__button--up {
    left: 37px;
    width: 58px;
    height: 64px;
  }

  .mgwc-dpad__button--right {
    top: 37px;
    width: 74px;
    height: 58px;
  }

  .mgwc-dpad__button--down {
    left: 37px;
    width: 58px;
    height: 64px;
  }

  .mgwc-dpad__button--left {
    top: 37px;
    width: 74px;
    height: 58px;
  }

  .mgwc-dpad__center {
    top: 37px;
    left: 37px;
    width: 58px;
    height: 58px;
  }

  .mgwc-dpad > span:not(.mgwc-dpad__center):first-child {
    left: 37px;
    width: 58px;
    height: 132px;
  }

  .mgwc-dpad > span:not(.mgwc-dpad__center):nth-child(2) {
    top: 37px;
    width: 132px;
    height: 58px;
  }
}

@media (max-width: 380px) {
  .mgwc-embed {
    padding-inline: 2px;
  }

  .mgwc-console {
    padding-inline: 8px;
    border-radius: 28px;
  }

  .mgwc-screen {
    padding: 11px;
  }

  .mgwc-console__controls {
    grid-template-columns: 128px 1fr 98px;
    min-height: 268px;
  }

  .mgwc-dpad {
    width: 124px;
    height: 124px;
  }

  .mgwc-dpad__button--up {
    left: 33px;
    width: 58px;
    height: 60px;
  }

  .mgwc-dpad__button--right {
    top: 33px;
    width: 70px;
    height: 58px;
  }

  .mgwc-dpad__button--down {
    left: 33px;
    width: 58px;
    height: 60px;
  }

  .mgwc-dpad__button--left {
    top: 33px;
    width: 70px;
    height: 58px;
  }

  .mgwc-dpad__center {
    top: 33px;
    left: 33px;
    width: 58px;
    height: 58px;
  }

  .mgwc-dpad > span:not(.mgwc-dpad__center):first-child {
    left: 33px;
    width: 58px;
    height: 124px;
  }

  .mgwc-dpad > span:not(.mgwc-dpad__center):nth-child(2) {
    top: 33px;
    width: 124px;
    height: 58px;
  }

  .mgwc-action-buttons button,
  .mgwc-action-buttons span {
    width: 42px;
    min-height: 42px;
  }

  .mgwc-action-buttons [data-mgwc-console-control="b"] {
    top: 11px;
    left: -1px;
  }

  .mgwc-action-buttons [data-mgwc-console-control="a"] {
    top: -9px;
    left: 1px;
  }

  .mgwc-orbit {
    margin-top: 0;
  }
}

@media (min-width: 760px) {
  .mgwc-embed {
    padding: 32px;
  }

  .mgwc-console {
    width: min(100%, 520px);
    padding: 24px 24px 34px;
    border-radius: 40px;
  }

  .mgwc-console h2 {
    font-size: 2.65rem;
  }

  .mgwc-screen {
    min-height: 370px;
    padding: 18px;
  }

  .mgwc-screen__title h3 {
    font-size: 2.35rem;
  }

  .mgwc-view,
  .mgwc-game,
  .mgwc-result {
    min-height: 320px;
  }

  .mgwc-game__stage {
    min-height: 235px;
  }

  .mgwc-console__controls {
    grid-template-columns: 116px 1fr 122px;
    min-height: 272px;
  }

  .mgwc-dpad {
    width: 112px;
    height: 112px;
  }

  .mgwc-dpad__button--up {
    left: 32px;
    width: 48px;
    height: 48px;
  }

  .mgwc-dpad__button--right {
    top: 32px;
    width: 48px;
    height: 48px;
  }

  .mgwc-dpad__button--down {
    left: 32px;
    width: 48px;
    height: 48px;
  }

  .mgwc-dpad__button--left {
    top: 32px;
    width: 48px;
    height: 48px;
  }

  .mgwc-dpad__center {
    top: 32px;
    left: 32px;
    width: 48px;
    height: 48px;
  }

  .mgwc-dpad > span:not(.mgwc-dpad__center):first-child {
    left: 32px;
    width: 48px;
    height: 112px;
  }

  .mgwc-dpad > span:not(.mgwc-dpad__center):nth-child(2) {
    top: 32px;
    width: 112px;
    height: 48px;
  }

  .mgwc-action-buttons button,
  .mgwc-action-buttons span {
    width: 56px;
    min-height: 56px;
  }

  .mgwc-action-buttons [data-mgwc-console-control="b"] {
    top: 16px;
  }

  .mgwc-action-buttons [data-mgwc-console-control="a"] {
    top: -14px;
  }

  .mgwc-orbit {
    margin-top: 0;
  }
}

@keyframes mgwcViewIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mgwcTwinkle {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px) scale(1.08);
  }
}

@keyframes mgwcScorePop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.22);
    color: var(--mgwc-color-gold);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes mgwcStageGlow {
  0%,
  100% {
    filter: brightness(1);
  }

  45% {
    filter: brightness(1.06);
  }
}

@keyframes mgwcEndGlow {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.08) saturate(1.05);
  }
}

@keyframes mgwcToast {
  0% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.94);
  }

  25%,
  76% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -58%) scale(0.98);
  }
}

@keyframes mgwcItemFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes mgwcCollect {
  to {
    opacity: 0;
    transform: scale(1.25) translateY(-6px);
  }
}

@keyframes mgwcSparkle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.25) rotate(35deg);
  }
}

@keyframes mgwcResultIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}