html, body.mumu-page {
  margin: 0;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  max-height: 100dvh;
  background: #120e0c;
  color: #f4efe4;
  font-family: Tahoma, "Segoe UI", sans-serif;
}

.mumu-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.mumu-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 8px 12px;
  background: #2a1c14;
  border-bottom: 3px solid #120c09;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.mumu-home, .mumu-account a {
  color: #f0c14a;
  text-decoration: none;
  font-weight: 700;
}

.mumu-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.12em;
}

.mumu-cat {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.mumu-fs,
.mumu-support,
.mumu-look,
.mumu-share {
  border: 2px solid #000;
  background: #f0c14a;
  color: #1b140f;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}

.mumu-support,
.mumu-look {
  background: #f4efe4;
}

.mumu-look[hidden] {
  display: none !important;
}

/* Outside-game edit on mobile / immersive (bar is hidden) */
.mumu-look-float {
  display: none;
  position: fixed;
  z-index: 72;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: max(8px, env(safe-area-inset-right, 0px));
  margin: 0;
  box-shadow: 0 2px 0 #000;
}

@media (pointer: coarse) {
  body.mumu-page.mumu-mobile-fill .mumu-look-float:not([hidden]) {
    display: block !important;
  }
}

body.mumu-page.mumu-immersive .mumu-look-float:not([hidden]) {
  display: block !important;
}

body.mumu-look-open .mumu-look-float {
  display: none !important;
}

body.mumu-page.mumu-minimized .mumu-look-float {
  display: none !important;
}

.mumu-share {
  background: #f0c14a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mumu-share .mumu-cat {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

#mumuSupportModal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 8, 6, 0.88);
  padding: max(8px, env(safe-area-inset-top, 0px)) 12px max(8px, env(safe-area-inset-bottom, 0px));
}

#mumuSupportModal[hidden] {
  display: none !important;
}

#mumuLoginModal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(12, 8, 6, 0.88);
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(8px, env(safe-area-inset-bottom, 0px));
}

#mumuLoginModal[hidden] {
  display: none !important;
}

.mumu-login-sheet {
  width: min(320px, 92vw);
  margin-top: min(12vh, 72px);
  background: #2a1c14;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 10px 12px 14px;
  color: #f4efe4;
}

.mumu-login-modal-hint {
  margin: 0 0 10px;
  color: #cbbba6;
  font-size: 12px;
  line-height: 1.35;
}

#mumuLoginModal .mumu-account {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-wrap: nowrap;
}

#mumuLoginModal .mumu-account .mumu-hint {
  display: none;
}

#mumuLoginModal .mumu-login {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

#mumuLoginModal .mumu-login input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 16px;
}

#mumuLoginModal .mumu-login button {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
}

.mumu-create-id {
  appearance: none;
  display: block;
  width: 100%;
  margin: 10px 0 0;
  border: 2px solid #000;
  background: linear-gradient(180deg, #f7d45a 0%, #f0c14a 55%, #d4a82e 100%);
  color: #1b140f;
  font: 800 14px Tahoma, sans-serif;
  padding: 10px 12px;
  min-height: 44px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
  touch-action: manipulation;
}

.mumu-create-id:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

.mumu-create-id[hidden] {
  display: none !important;
}

#mumuRegisterModal {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(12, 8, 6, 0.88);
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(8px, env(safe-area-inset-bottom, 0px));
}

#mumuRegisterModal[hidden] {
  display: none !important;
}

.mumu-register-sheet {
  width: min(340px, 94vw);
}

.mumu-register {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mumu-register input {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: 2px solid #000;
  background: #15100d;
  color: #fff6e8;
  padding: 10px 12px;
  font-size: 16px;
  min-height: 44px;
  box-shadow: inset 1px 1px 0 #000;
}

.mumu-register input::placeholder {
  color: #c4a35a;
  opacity: 1;
}

.mumu-pass-hint {
  margin: -2px 0 2px;
  color: #f0c14a;
  font: 700 11px/1.35 Tahoma, sans-serif;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.mumu-register button[type="submit"] {
  appearance: none;
  border: 2px solid #000;
  background: linear-gradient(180deg, #f7d45a 0%, #f0c14a 55%, #d4a82e 100%);
  color: #1b140f;
  font: 800 15px Tahoma, sans-serif;
  padding: 10px 12px;
  min-height: 46px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}

.mumu-register-back {
  appearance: none;
  border: 2px dashed #6a5644;
  background: transparent;
  color: #f0c14a;
  font: 700 13px Tahoma, sans-serif;
  padding: 8px 10px;
  min-height: 40px;
  cursor: pointer;
}

.mumu-register-msg {
  margin: 0;
  padding: 8px 10px;
  border: 2px solid #000;
  font: 700 12px/1.35 Tahoma, sans-serif;
}

.mumu-register-msg.is-ok {
  background: #1e3a18;
  color: #93e06f;
}

.mumu-register-msg.is-err {
  background: #3a1814;
  color: #ffb4a8;
}

.mumu-register-msg[hidden] {
  display: none !important;
}

#mumuRegisterOkModal {
  position: fixed;
  inset: 0;
  z-index: 87;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 8, 6, 0.92);
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(8px, env(safe-area-inset-bottom, 0px));
}

#mumuRegisterOkModal[hidden] {
  display: none !important;
}

.mumu-register-ok-sheet {
  width: min(340px, 94vw);
  margin-top: 0;
  text-align: center;
}

.mumu-register-ok-sheet .mumu-support-bar {
  justify-content: center;
}

.mumu-register-ok-sheet .mumu-support-bar b {
  color: #f0c14a;
  font: 800 16px Tahoma, sans-serif;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.mumu-register-ok-text {
  margin: 8px 0 6px;
  color: #fff6e8;
  font: 700 14px/1.45 Tahoma, sans-serif;
  text-shadow: 1px 1px 0 #000;
}

.mumu-register-ok-id {
  margin: 0 0 14px;
  color: #f0c14a;
  font: 800 15px Tahoma, sans-serif;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.mumu-register-ok-id[hidden] {
  display: none !important;
}

.mumu-register-ok-btn {
  appearance: none;
  display: block;
  width: 100%;
  border: 2px solid #000;
  background: linear-gradient(180deg, #f7d45a 0%, #f0c14a 55%, #d4a82e 100%);
  color: #1b140f;
  font: 800 15px Tahoma, sans-serif;
  padding: 12px 14px;
  min-height: 48px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
  touch-action: manipulation;
}

.mumu-register-ok-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

body.mumu-page.mumu-register-open #mumuMsg:not([hidden]) {
  position: fixed;
  top: max(8px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
}

#mumuLoginModal .mumu-redeem {
  flex-wrap: wrap;
}

body.mumu-page.mumu-login-open #mumuMsg:not([hidden]) {
  position: fixed;
  top: max(8px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: block !important;
  max-width: min(92vw, 360px);
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
}

.mumu-support-sheet {
  width: min(360px, 94vw);
  max-height: min(92vh, 560px);
  overflow-y: auto;
  background: #2a1c14;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 8px 10px 12px;
  text-align: center;
  color: #f4efe4;
}

.mumu-support-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #f0c14a;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
}

.mumu-support-bar > b,
#mumuSupportTitle {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
  letter-spacing: 0;
}

#mumuSupportClose {
  border: 2px solid #000;
  background: #f0c14a;
  color: #1b140f;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 12px;
}

.mumu-support-qr {
  width: min(168px, 72vw);
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 2px solid #000;
  padding: 5px;
  box-shadow: 2px 2px 0 #000;
}

.mumu-support-qr img {
  display: block;
  width: 100%;
  max-width: 168px;
  max-height: min(168px, 36vh);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.mumu-support-save {
  appearance: none;
  display: inline-block;
  margin: 8px auto 0;
  border: 2px solid #000;
  background: #f0c14a;
  color: #1b140f;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
}

.mumu-support-save:disabled {
  opacity: 0.65;
}

.mumu-support-sheet p {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #f0c14a;
}

.mumu-dev-note {
  margin: 12px 0 0;
  padding: 10px 8px 8px;
  background: #1b140f;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  color: #f4efe4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.mumu-dev-kao {
  display: block;
  margin-bottom: 6px;
  color: #f0c14a;
  font-size: 16px;
}

.mumu-dev-note span:last-child {
  display: block;
  margin-top: 6px;
  color: #f0c14a;
}

.mumu-account {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
}

.mumu-account b { color: #f0c14a; }

.mumu-id-now {
  font-size: 14px;
  font-weight: 700;
}

.mumu-id-now b {
  color: #f0c14a;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.mumu-hint { color: #cbbba6; }

.mumu-login, .mumu-redeem {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mumu-login input, .mumu-redeem input {
  background: #1b140f;
  color: #f4efe4;
  border: 2px solid #000;
  padding: 4px 8px;
  width: 96px;
}

.mumu-login button, .mumu-redeem button {
  border: 2px solid #000;
  background: #f0c14a;
  color: #1b140f;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}

.mumu-login button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.mumu-msg {
  margin: 0;
  padding: 6px 12px;
  background: #3a1518;
  color: #f4efe4;
  font-size: 13px;
}

.mumu-rates {
  display: none !important;
  margin: 0;
  padding: 4px 12px 6px;
  font-size: 11px;
  color: #cbbba6;
}

.mumu-play {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 0;
  min-width: 0;
  align-items: stretch;
  overflow: hidden;
}

.mumu-frame {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  border: 0;
  min-height: 0;
  background: #120e0c;
}

/* Instant mobile fill from first paint (no tap needed) */
html.mumu-mobile-boot,
html.mumu-mobile-boot body.mumu-page {
  height: 100%;
  height: 100vh;
  height: 100lvh;
  max-height: none;
  overflow: hidden;
  background: #120e0c;
}

html.mumu-mobile-boot .mumu-bar,
html.mumu-mobile-boot .mumu-msg,
html.mumu-mobile-boot .mumu-rates {
  display: none !important;
}

html.mumu-mobile-boot .mumu-play {
  position: fixed !important;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100lvh;
  min-height: 100%;
  min-height: 100lvh;
  z-index: 1;
}

html.mumu-mobile-boot .mumu-frame {
  flex: none;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}

@media (orientation: portrait) {
  html.mumu-mobile-boot body.mumu-page.mumu-want-land .mumu-play {
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    width: 100vh !important;
    width: 100dvh !important;
    height: 100vw !important;
    height: 100dvw !important;
    transform: translate(-50%, -50%) rotate(90deg) !important;
    transform-origin: center center !important;
    z-index: 60 !important;
  }
}

.mumu-support-rail {
  display: none;
  flex: 0 0 158px;
  width: 158px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  background: #1b140f;
  border-left: 3px solid #000;
  text-align: center;
  cursor: pointer;
}

.mumu-support-title {
  margin: 0;
  color: #f0c14a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mumu-support-note {
  margin: 0;
  color: #f0c14a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.mumu-support-rail .mumu-support-qr {
  width: 100%;
}

@media (pointer: fine) and (min-width: 1100px) {
  .mumu-support-rail {
    display: flex;
  }
}

@media (pointer: coarse) {
  .mumu-support-rail {
    display: none !important;
  }
}

body.mumu-embed .mumu-support-rail {
  display: none !important;
}

body.mumu-auth {
  min-height: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #120e0c;
  color: #f4efe4;
  font-family: Tahoma, sans-serif;
}

.mumu-auth-card {
  background: #2a1c14;
  border: 3px solid #000;
  padding: 24px;
  text-align: center;
}

.mumu-auth-card .err { color: #e4453a; }
.mumu-auth-card a { color: #f0c14a; }

@media (max-width: 900px) {
  .mumu-account { margin-left: 0; }
}

html, body.mumu-embed {
  background: #120e0c;
  height: 100%;
  max-height: 100%;
}

body.mumu-embed {
  min-height: 0;
}

body.mumu-embed .mumu-title {
  display: none;
}

body.mumu-embed .mumu-hint {
  display: none;
}

body.mumu-embed .mumu-bar {
  flex-wrap: nowrap;
  gap: 8px;
  padding: 4px 8px;
}

body.mumu-embed .mumu-rates {
  padding: 2px 8px;
  font-size: 10px;
}

body.mumu-embed .mumu-account {
  flex-wrap: nowrap;
}

body.mumu-embed .mumu-rates {
  display: none;
}

body.mumu-page.mumu-fs-on .mumu-hint,
body.mumu-page.mumu-fs-on .mumu-rates,
body.mumu-page.mumu-fs-on .mumu-msg,
body.mumu-page.mumu-fs-on .mumu-title {
  display: none;
}

body.mumu-page.mumu-fs-on .mumu-bar {
  padding: 4px 8px;
  gap: 8px;
}

@media (pointer: coarse) {
  body.mumu-page.mumu-mobile-fill .mumu-hint,
  body.mumu-page.mumu-mobile-fill .mumu-rates,
  body.mumu-page.mumu-mobile-fill .mumu-title,
  body.mumu-page.mumu-fs-on .mumu-hint,
  body.mumu-page.mumu-fs-on .mumu-rates,
  body.mumu-page.mumu-fs-on .mumu-title {
    display: none;
  }
  /* Mobile: always full play surface — no compact top bar / duplicate menus */
  body.mumu-page.mumu-mobile-fill .mumu-bar {
    display: none !important;
  }
  body.mumu-page.mumu-mobile-fill:not(.mumu-login-open) .mumu-msg,
  body.mumu-page.mumu-mobile-fill .mumu-rates {
    display: none !important;
  }
  body.mumu-page.mumu-mobile-fill .mumu-play,
  body.mumu-page.mumu-mobile-fill.mumu-immersive .mumu-play {
    position: fixed;
    inset: 0;
    height: 100%;
    height: 100vh;
    height: 100lvh;
  }
  body.mumu-page.mumu-mobile-fill .mumu-bar,
  body.mumu-page.mumu-fs-on .mumu-bar {
    padding: 4px 8px;
    gap: 8px;
  }
}

body.mumu-page.mumu-immersive .mumu-bar,
body.mumu-page.mumu-immersive .mumu-msg,
body.mumu-page.mumu-immersive .mumu-rates {
  display: none !important;
}

body.mumu-page.mumu-immersive .mumu-play {
  position: fixed;
  inset: 0;
  height: 100%;
  height: 100vh;
  height: 100lvh;
}

@media (orientation: portrait) {
  body.mumu-page.mumu-want-land {
    overflow: hidden !important;
  }
  body.mumu-page.mumu-want-land .mumu-bar,
  body.mumu-page.mumu-want-land .mumu-msg,
  body.mumu-page.mumu-want-land .mumu-rates {
    display: none !important;
  }
  body.mumu-page.mumu-want-land .mumu-play {
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    width: 100vh !important;
    width: 100dvh !important;
    height: 100vw !important;
    height: 100dvw !important;
    transform: translate(-50%, -50%) rotate(90deg) !important;
    transform-origin: center center !important;
    z-index: 60 !important;
  }
}

.mumu-restore {
  display: none;
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 95;
  appearance: none;
  border: 3px solid #000;
  background: #f0c14a;
  color: #1b140f;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
}

body.mumu-page.mumu-minimized .mumu-restore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.mumu-page.mumu-minimized .mumu-restore[hidden] {
  display: none !important;
}

body.mumu-page.mumu-minimized .mumu-bar,
body.mumu-page.mumu-minimized .mumu-msg,
body.mumu-page.mumu-minimized .mumu-rates,
body.mumu-page.mumu-minimized .mumu-play,
body.mumu-page.mumu-minimized #mumuLoginModal,
body.mumu-page.mumu-minimized #mumuRegisterModal,
body.mumu-page.mumu-minimized #mumuRegisterOkModal,
body.mumu-page.mumu-minimized #mumuSupportModal {
  display: none !important;
}

html.mumu-mobile-boot body.mumu-page.mumu-minimized,
body.mumu-page.mumu-minimized {
  background:
    radial-gradient(ellipse at top, #2b1b12 0%, transparent 52%),
    #120e0c;
}

.mumu-thanks .mumu-dev-kao {
  display: block;
  margin: 4px 0 2px;
  font-size: 16px;
  color: #fff6e8;
}

@media (max-height: 480px) {
  .mumu-support-sheet {
    width: min(220px, 78vw);
    padding: 6px 8px 8px;
  }
  .mumu-support-qr {
    width: min(120px, 42vw);
  }
  .mumu-support-qr img {
    max-width: 120px;
    max-height: min(120px, 28vh);
  }
  .mumu-thanks {
    font-size: 12px;
  }
  .mumu-thanks .mumu-dev-kao {
    font-size: 14px;
  }
}

/* —— Mailbox —— */
.mumu-mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  background: #2a1c14;
  color: #f4efe4;
  border: 2px solid #000;
  box-shadow: inset 0 0 0 1px #5a4030;
  padding: 4px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}
/* Mobile uses in-game fs-shop mail — hide shell header mail */
body.mumu-page.mumu-mobile-fill .mumu-mail-btn,
body.mumu-page.mumu-immersive .mumu-mail-btn {
  display: none !important;
}
.mumu-mail-btn:hover {
  background: #3a281c;
  color: #fff6e8;
}
.mumu-mail-btn svg {
  display: block;
  flex: 0 0 auto;
}
.mumu-mail-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 0;
  background: #e4453a;
  color: #fff;
  border: 2px solid #000;
  font-size: 10px;
  font-weight: 800;
  line-height: 12px;
  text-align: center;
  box-sizing: border-box;
}
.mumu-mail-btn.has-mail {
  box-shadow: inset 0 0 0 1px #f0c14a, 0 0 0 1px #f0c14a;
}
.mumu-mail-btn.mumu-mail-pulse {
  animation: mumuMailPulse 0.55s ease-in-out 4;
}
@keyframes mumuMailPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.25); }
}

#mumuMailModal {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 5, 3, 0.72);
  padding: 12px;
}
#mumuMailModal[hidden] {
  display: none !important;
}
.mumu-mail-sheet {
  width: min(420px, 94vw);
  max-height: min(78vh, 560px);
  overflow: auto;
  background: #2a1c14;
  color: #f4efe4;
  border: 3px solid #000;
  box-shadow: inset 0 0 0 2px #5a4030, 0 8px 0 #000;
  padding: 10px 12px 14px;
  font-size: 13px;
}
.mumu-mail-hint {
  margin: 8px 0 10px;
  color: #fff6e8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: pre-line;
}
.mumu-mail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.mumu-mail-checkall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}
.mumu-mail-del {
  background: #3a1518;
  color: #f4efe4;
  border: 2px solid #000;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mumu-mail-del:hover {
  background: #5a1c20;
}
.mumu-mail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mumu-mail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  background: #1b140f;
  border: 2px solid #000;
  box-shadow: inset 0 0 0 1px #4a3428;
  padding: 0;
}
.mumu-mail-pick-wrap {
  display: flex;
  align-items: flex-start;
  padding: 10px 0 10px 10px;
  cursor: pointer;
}
.mumu-mail-item.is-new {
  box-shadow: inset 0 0 0 1px #f0c14a;
}
.mumu-mail-details {
  min-width: 0;
}
.mumu-mail-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 10px 10px 10px 0;
  user-select: none;
}
.mumu-mail-summary::-webkit-details-marker {
  display: none;
}
.mumu-mail-summary-title {
  color: #f0c14a;
  font-weight: 800;
  font-size: 13px;
}
.mumu-mail-summary-title::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}
.mumu-mail-details[open] .mumu-mail-summary-title::before {
  transform: rotate(90deg);
}
.mumu-mail-summary-meta {
  color: #fff6e8;
  font-size: 12px;
  font-weight: 700;
}
.mumu-mail-summary-hint {
  margin-left: auto;
  color: #cbbba6;
  font-size: 11px;
}
.mumu-mail-details[open] .mumu-mail-summary {
  border-bottom: 1px solid #4a3428;
  background: rgba(0, 0, 0, 0.18);
  padding-right: 10px;
}
.mumu-mail-panel {
  padding: 8px 10px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mumu-mail-title {
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  color: #cbbba6;
  white-space: pre-line;
}
.mumu-mail-code-row {
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
}
.mumu-mail-code {
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  background: #120e0c;
  border: 2px solid #f0c14a;
  color: #fff6e8;
  padding: 5px 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  user-select: all;
}
.mumu-mail-code:hover {
  background: #1a1510;
  border-color: #ffe08a;
}
.mumu-mail-code:active {
  transform: translateY(1px);
}
.mumu-mail-copy {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 10px;
  border: 2px solid #000;
  background: #3d2a1c;
  color: #f0c14a;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #6a4a30;
}
.mumu-mail-copy:hover {
  background: #4a3424;
  color: #ffe08a;
}
.mumu-mail-copy.is-ok {
  background: #2a3a1c;
  color: #b8e986;
  box-shadow: inset 0 0 0 1px #5a7a30;
}
.mumu-mail-body {
  display: none;
}
@media (max-width: 560px) {
  .mumu-mail-summary-hint {
    width: 100%;
    margin-left: 0;
  }
}
.mumu-mail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: #cbbba6;
  margin: 0;
  min-height: 180px;
  padding: 28px 14px;
  background: #1b140f;
  border: 2px dashed #5a4030;
  box-shadow: inset 0 0 0 1px #120e0c;
}
.mumu-mail-empty[hidden] {
  display: none !important;
}
.mumu-mail-empty-ico {
  font-size: 36px;
  line-height: 1;
  color: #f0c14a;
  opacity: 0.85;
  filter: grayscale(0.15);
}
.mumu-mail-empty-title {
  color: #f4efe4;
  font-size: 15px;
  font-weight: 800;
}
.mumu-mail-empty-sub {
  max-width: 280px;
  font-size: 12px;
  line-height: 1.4;
  color: #cbbba6;
}
.mumu-mail-sheet.is-empty .mumu-mail-list {
  display: none;
}
.mumu-mail-toolbar[hidden] {
  display: none !important;
}

.mumu-mail-fx {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mumu-mail-fx[hidden] {
  display: none !important;
}
.mumu-mail-fx-burst {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 3px solid #f0c14a;
  box-shadow: 0 0 0 2px #000, inset 0 0 24px rgba(240, 193, 74, 0.45);
  animation: mumuMailBurst 0.9s ease-out forwards;
}
.mumu-mail-fx-note {
  position: relative;
  z-index: 1;
  background: rgba(18, 14, 12, 0.92);
  border: 3px solid #000;
  box-shadow: inset 0 0 0 2px #f0c14a;
  color: #f0c14a;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 14px;
  text-align: center;
  max-width: min(320px, 86vw);
  animation: mumuMailNoteIn 0.35s ease-out;
}
@keyframes mumuMailBurst {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes mumuMailNoteIn {
  0% { transform: translateY(10px) scale(0.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

body.mumu-page.mumu-minimized #mumuMailModal,
body.mumu-page.mumu-minimized .mumu-mail-fx {
  display: none !important;
}

@media (max-width: 720px) {
  .mumu-mail-btn span[data-i18n-shell="mail"] {
    display: none;
  }
  .mumu-mail-sheet {
    width: min(96vw, 420px);
  }
}
