/* Miyüki playground: paper, candy-coloured toys and stamped ink.
   The game container is also used by the rotated phone viewport. */
:root {
  --mc-bg: #f7f2df;
  --mc-card: #fffdf3;
  --mc-text: #35483f;
  --mc-muted: #67715b;
  --mc-border: #c6ccb0;
  --mc-green: #b3ce81;
  --mc-green-hover: #c3dc98;
  --mc-blue: #7aa9be;
  --mc-gold: #e4b853;
  --mc-danger: #b64b3e;
  --mc-radius: 28px;
  --mc-shadow: 0 7px 0 #405449;
  --mc-ink: #405449;
}
body, button, input, select { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; }
button, select, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible, input:focus-visible,
#mc-menu-overlay .mc-green-play-btn:focus-visible, #mc-menu-overlay .mc-tab-btn:focus-visible {
  outline: 3px solid #ae4c37; outline-offset: 3px;
}
#mc-menu-overlay { background: #f7f2df; padding: 76px 20px 48px; }
.mc-playground-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
#mc-menu-overlay .mc-menu-card {
  width: min(650px, calc(100cqw - 36px)); max-height: calc(100cqh - 124px);
  padding: 18px 28px 20px; gap: 12px; transform: none;
  /* Dotted craft paper that warms from butter to pistachio. */
  background:
    radial-gradient(#e6dfbd 1.1px, transparent 1.6px) 0 0 / 17px 17px,
    linear-gradient(180deg, #fff3cf 0%, #fff9e8 42%, #eef4da 100%);
  color: var(--mc-text); border: 3px solid var(--mc-ink);
  border-radius: 30px; box-shadow: 0 8px 0 var(--mc-ink), 0 16px 0 #40544912;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  scrollbar-width: none;
}
#mc-menu-overlay .mc-menu-card::-webkit-scrollbar { display: none; }
/* The Play page is a fixed poster: the wheel never moves it. Lists on the
   other tabs still scroll. */
#mc-menu-overlay .mc-menu-card:has([data-mc-panel="play"]:not([hidden])) { overflow: hidden; }
.mc-card-header { gap: 14px; }
.mc-wallet-pill { background: #f8e8aa; border: 1.5px solid #b49a4f; color: #62511f; padding: 5px 10px; font-weight: 700; }
#mc-reward-ad-btn { margin-left: 5px; border: 0; border-left: 1px solid #b49a4f; padding: 3px 4px 3px 9px; color: #62511f; background: transparent; font-weight: 800; cursor: pointer; }
.mc-vip-pill { color: #35483f; background: #c6dca6; }
#mc-menu-overlay .mc-tabs { width: auto; flex: 1; padding: 0; gap: 3px; border: 0; border-radius: 0; background: transparent; }
#mc-menu-overlay .mc-tab-btn { flex: 1; min-height: 40px; padding: 8px 9px; color: #616b56; font-size: 12px; font-weight: 800; border: 2px solid transparent; border-radius: 13px; white-space: nowrap; }
#mc-menu-overlay .mc-tab-btn:hover { background: #efefdc; }
#mc-menu-overlay .mc-tab-btn.is-active { color: #35483f; background: #e3edcd; border-color: var(--mc-ink); box-shadow: 0 2px 0 var(--mc-ink); }
/* The wordmark sits on a sky-blue sunburst banner, like a game box cover. */
.mc-title-block {
  margin: 0; padding: 9px 14px 11px; position: relative; overflow: hidden; flex: 0 0 auto;
  border: 2.5px solid var(--mc-ink); border-radius: 22px; box-shadow: 0 4px 0 var(--mc-ink);
  /* Pistachio meadow: rays fan up from below, with a few snacks scattered about. */
  background:
    radial-gradient(circle at 7% 74%, #ee9879 0 4px, #405449 4px 5.3px, transparent 5.8px),
    radial-gradient(circle at 93% 30%, #f0c85b 0 4.5px, #405449 4.5px 5.8px, transparent 6.3px),
    radial-gradient(circle at 84% 80%, #7aa9be 0 3.2px, #405449 3.2px 4.4px, transparent 4.9px),
    radial-gradient(circle at 24% 16%, #7aa9be 0 3px, #405449 3px 4.2px, transparent 4.7px),
    radial-gradient(ellipse at 50% 120%, #fff6cf 0, #fff6cfb3 30%, #fff6cf00 68%),
    repeating-conic-gradient(from -6deg at 50% 135%, #c2dd97 0 6deg, #d5eab2 6deg 12deg);
}
.mc-menu-eyebrow { color: #47594a; margin: 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
#mc-menu-overlay .mc-title {
  color: #ee9879; -webkit-text-fill-color: #ee9879; background: none;
  font-size: 66px; font-weight: 1000; letter-spacing: -4px; line-height: 1.08;
  -webkit-text-stroke: 2px #405449; paint-order: stroke fill;
  text-shadow: 0 5px 0 #405449; transform: rotate(-3deg); margin-bottom: 8px;
}
.mc-title-block::before, .mc-title-block::after { content: '✦'; position: absolute; color: #e0a93c; font-size: 34px; top: 26px; left: 12%; transform: rotate(-14deg); }
.mc-title-block::after { left: auto; right: 11%; top: 58px; font-size: 24px; color: #fffdf3; transform: rotate(17deg); }
.mc-subtitle { color: #47594a; font-size: 13px; font-weight: 600; line-height: 1.4; max-width: 390px; margin: 0 auto; }
.mc-play-row { flex-direction: row; align-items: center; gap: 25px; }
.mc-avatar-box { width: 150px; flex: 0 0 150px; gap: 11px; }
#mc-avatar-preview { width: 142px; height: 142px; border: 2px solid #a4b884; border-radius: 40% 45% 38% 42%; background: #e8efd5; box-shadow: 0 4px 0 #c8d5b0; }
.mc-form-col { gap: 9px; min-width: 0; }
.mc-name-label { font-size: 12px; font-weight: 800; color: #647052; padding-left: 3px; }
#mc-name-input { min-height: 49px; padding: 12px 15px; font-size: 16px; border: 2px solid #99aa83; border-radius: 13px; color: #35483f; background: #fffef9; box-shadow: inset 0 3px 0 #ebeddc; }
#mc-name-input::placeholder { color: #69715a; }
#mc-name-input:focus { border-color: #405449; background: #fffef9; }
.mc-green-play-btn, #mc-menu-overlay .mc-green-play-btn {
  color: #35483f; background: #b3ce81; border: 2px solid var(--mc-ink); border-radius: 15px;
  min-height: 52px; padding: 11px 18px; font-weight: 900; font-size: 20px;
  box-shadow: 0 5px 0 var(--mc-ink); transition: transform .12s ease, background .12s ease;
}
#mc-play-btn::after { content: '➜'; margin-left: 14px; display: inline-block; }
.mc-green-play-btn:hover, #mc-menu-overlay .mc-green-play-btn:hover { background: #c3dc98; }
#mc-menu-overlay .mc-green-play-btn:active, .mc-green-play-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--mc-ink); }
.mc-play-sublinks { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 7px; }
.mc-choose-skin-link, .mc-tongue-quick-link, .mc-ring-quick-link { color: #596c48 !important; font-size: 12px; padding: 5px 2px; }
#mc-choose-ring-btn { display: inline-block !important; }
.mc-small-btn { color: #556349; background: #f0f1e2; border: 1px solid #b8c1a2; border-radius: 10px; padding: 7px; font-size: 11px; }
.mc-small-btn:hover { background: #e3ebcf; }
.mc-how-to { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 12px; padding-top: 9px; border-top: 2px dashed #d3d6b8; }
.mc-how-to>div { display: flex; align-items: center; gap: 9px; }
.mc-how-to strong { color: #6b755b; font-size: 12px; }
.mc-how-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 32px; color: #bc654e; font-weight: 900; }
.mc-how-munch { font-size: 9px; letter-spacing: 2px; transform: rotate(-13deg); }
.mc-how-grow { color: #779956; font-size: 29px; }
.mc-how-zoom { color: #5b8799; font-size: 31px; transform: rotate(-14deg); }
.mc-how-arrow { color: #bbc3a5; font-size: 20px; }
.mc-corner-bar { background: #fffdf3; background-image: none; border: 2px solid #879678; box-shadow: 0 3px 0 #879678; padding: 6px 10px; gap: 8px; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.mc-icon-btn { width: 32px; height: 32px; border: 1px solid #c3cbb1; background: #f1f2e4; color: #405449; }
.mc-icon-btn.is-muted { opacity: .55; background: #e2e5d7; }
.mc-audio-group input[type=range] { accent-color: #6d8e4d; width: 48px; }
#mc-lang-select { color: #405449; background: #fffdf3; border: 1px solid #bcc7a6; min-height: 30px; }
/* The wardrobe is a collection of paper stickers. */
.mc-section-label, .mc-skin-name, .mc-buy-skin-name, .mc-hall-title, .mc-shop-item strong,
.mc-payment-test-banner strong, .mc-modal-card h1, .mc-modal-card h2 { color: #35483f; }
.mc-cat-pill, .mc-cat-pill-tongues, .mc-cat-pill-rings { color: #536145; background: #efefdc; border: 1px solid #b5c09c; padding: 6px 10px; }
.mc-cat-pill.is-active, .mc-cat-pill-tongues.is-active, .mc-cat-pill-rings.is-active { color: #35483f; background: #d3e1b4; border-color: #53694b; }
.mc-skin-preview-status { color: #536145; background: #edf1de; border: 1px solid #c4cfaa; border-radius: 11px; padding: 8px 12px; }
.mc-skin-preview-status.is-locked-preview { color: #765428; background: #faedc9; border-color: #d2b569; }
.mc-skin-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; max-height: min(330px, calc(100cqh - 405px)); padding: 4px 3px 9px; scrollbar-width: thin; scrollbar-color: #adbc91 transparent; }
.mc-skin-item, .mc-tongue-item, .mc-ring-effect-item, .mc-tongue-item.is-vip-effect, .mc-ring-effect-item.is-vip-effect { background: #f5f3e6; border: 2px solid #d4d7bd; border-radius: 18px; box-shadow: 0 3px 0 #d4d7bd; padding: 10px 5px; }
.mc-skin-item:nth-child(3n+2) { background: #edf2e1; }
.mc-skin-item:nth-child(3n) { background: #faeee1; }
.mc-skin-item:hover { background: #e9edcf; border-color: #7e9465; }
.mc-skin-item.is-selected { background: #deebc8; border-color: #617e49; box-shadow: 0 3px 0 #617e49; }
.mc-skin-item.is-previewing:not(.is-selected) { background: #fff0cb; border-color: #b89145; }
.mc-skin-cat-badge, .mc-skin-deficit, .mc-tongue-item.is-vip-effect .mc-skin-cat-badge, .mc-ring-effect-item.is-vip-effect .mc-skin-cat-badge { color: #6b755b; }
.mc-skin-tag { color: #576348; background: #e5e8d5; }
.mc-skin-tag.tag-selected { color: #fffdf3; background: #5f7949; }
.mc-skin-tag.tag-price, .mc-skin-tag.tag-vip { color: #745522; background: #f6df9d; }
.mc-inline-buy-skin-btn { color: #35483f; border: 1px solid #6f8756; box-shadow: none; }
/* Secondary pages and every dialog use the same readable paper palette. */
.mc-shop-item, .mc-shop-vip, .mc-hall-table-wrap, .mc-checkout-box, .mc-buy-skin-preview-wrap, .mc-victory-reward-box { background: #f2f1df; border-color: #c6ceae; color: #405449; }
.mc-shop-item p, .mc-modal-sub, .mc-hall-subtitle, .mc-hall-self-status, .mc-hall-empty, .mc-hall-head, .mc-hall-player-name, .mc-hall-name, .mc-hall-rank, .mc-hall-wins, .mc-hall-self-status strong { color: #5b694e; }
.mc-hall-list li, .mc-hall-row { color: #405449; border-color: #d4dbc2; }
.mc-hall-list li.is-self { background: #e3edcc; }
.mc-buy-btn { color: #35483f; background: #dce9be; border: 1.5px solid #718557; border-radius: 10px; }
.mc-buy-vip { background: #f3dc98; border-color: #b4944d; }
.mc-payment-test-banner { color: #657153; background: #f0f2e4; border-color: #bec8a7; }
.mc-checkout-test-note { color: #715521; background: #faedc9; border-color: #d2b569; }
.mc-crop-quota-banner { color: #715521; background: #faedc9; border-color: #d2b569; }
.mc-crop-controls { color: #536145; }
.mc-crop-controls input[type=range] { accent-color: #6d8e4d; }
#mc-victory-reward { color: #5b7542; }
.mc-interstitial-body { color: #536145; background: #f2f1df; border-color: #c6ceae; }
.mc-close-ad-btn:hover { color: #35483f; background: #e3ebcf; }
.mc-modal-backdrop { background: #35483f73; }
.mc-modal-card { color: #35483f; background: #fffdf3; border: 3px solid #405449; border-radius: 24px; box-shadow: 0 7px 0 #405449; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mc-btn-secondary, .mc-close-ad-btn, .mc-btn-muted { color: #536145; background: #eeefdd; border-color: #b3c19b; }
#mc-buy-skin-canvas { background: #e8efd5; border: 1px solid #c1cba9; }
.mc-checkout-price, .mc-victory-reward-box strong { color: #7b602b; }
.mc-ad-pill { background: #ecebd9; color: #6b7359; }
.mc-btn-disabled, button:disabled { background: #dfe2d3 !important; color: #69715f !important; }
#mc-toast { background: #fff4cc; color: #534b31; border: 2px solid #8c7a45; box-shadow: 0 3px 0 #8c7a45; }
#acct-btn { background: #fffdf3 !important; color: #405449 !important; border: 2px solid #879678 !important; box-shadow: 0 3px 0 #879678; min-height: 38px; font-family: inherit !important; }
#acct-modal { background: #35483f73 !important; }
#acct-form { color: #35483f !important; background: #fffdf3 !important; border: 3px solid #405449 !important; border-radius: 22px !important; box-shadow: 0 6px 0 #405449; font-family: inherit !important; }
#acct-status, #acct-close { color: #657153 !important; }
#acct-email, #acct-pass { color: #35483f !important; background: #fffef9 !important; border: 1.5px solid #a2b38d !important; }
#acct-form button[type=submit] { background: #c1d89a !important; color: #35483f !important; border: 1px solid #7d935e !important; }
#acct-form button[data-kind=register] { background: #d3e3e7 !important; border-color: #84a3ad !important; }
#acct-err { color: #ad4539 !important; }
/* Clear, small HUD labels on the light arena. */
#mc-hud { color: #35483f; }
#mc-hud #mc-quest-box, #mc-progress-container { background: transparent; box-shadow: none; border-color: transparent; }
#mc-leaderboard h2, #mc-leader-list, #mc-rank, .mc-self-rank-line, .mc-col-player, .mc-col-rank, .mc-col-level, .mc-col-kills, .mc-col-mass, .mc-stat-num, .mc-level-num, .mc-stat-label, .mc-quest-obj, #mc-quest-progress-text, .mc-quest-inline-prog { color: #35483f; text-shadow: 0 1px 0 #fffdf3; }
.mc-leader-head, .mc-leader-head .mc-col-level, .mc-leader-head .mc-col-kills, .mc-leader-head .mc-col-mass, #mc-leader-list li.is-top-1 .mc-col-rank, #mc-leader-list li.is-top-2 .mc-col-rank, #mc-leader-list li.is-top-3 .mc-col-rank { color: #647052; text-shadow: none; }
#mc-leader-list li.is-self { color: #35483f; background: #d6e4bc; }
#mc-leader-list li.is-self span { color: #35483f; }
#mc-rank strong, .mc-self-rank-line strong, .mc-rank-num { color: #405449; }
/* A single grid keeps the headings and every scoreboard row aligned. */
#mc-leaderboard {
  --leader-columns: 13px minmax(0, 1fr) 20px 35px 23px;
  width: 184px; max-width: calc(100cqw - 24px); padding: 0;
  background: transparent; border: none; border-radius: 0;
  box-shadow: none;
}
#mc-leaderboard .mc-leader-title-row { margin-bottom: 2px; }
#mc-leaderboard h2 { font-size: 13px; font-weight: 800; text-shadow: none; }
.mc-leader-head, #mc-leader-list li {
  display: grid; grid-template-columns: var(--leader-columns); column-gap: 1px;
  align-items: center; padding-inline: 0;
}
#mc-leaderboard .mc-leader-head { padding-bottom: 2px; font-size: 8px; font-weight: 800; letter-spacing: .02em; }
#mc-leaderboard .mc-leader-head span { font-size: inherit; color: #67715b; text-shadow: none; }
#mc-leader-list { font-size: 11px; line-height: 1.2; text-shadow: none; }
#mc-leader-list li { min-height: 16px; padding-block: 0; border-radius: 4px; }
#mc-leader-list li:nth-child(even):not(.is-self) { background: transparent; }
#mc-leaderboard .mc-col-rank { font-size: 10px; text-align: center; }
#mc-leaderboard .mc-col-player { text-align: left; font-weight: 600; }
#mc-leaderboard .mc-col-level, #mc-leaderboard .mc-col-kills { text-align: center; }
#mc-leader-list .mc-col-level {
  justify-self: center; min-width: 18px; padding: 1px 2px; border-radius: 999px;
  background: #e5edce; color: #526c43; font-size: 9px; font-weight: 800; text-shadow: none;
}
#mc-leaderboard .mc-col-mass { text-align: right; }
#mc-leader-list .mc-col-mass, #mc-leader-list .mc-col-kills { font-size: 10px; font-weight: 600; text-shadow: none; }
#mc-leader-list .mc-col-mass { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#mc-leader-list li.is-self .mc-col-level { background: #c3d99e; color: #405449; }
#mc-leader-list .mc-col-kills.is-kill-up { color: #526c43; }
#mc-leaderboard #mc-rank { margin-top: 3px; padding-top: 3px; border-top: 1px dashed #c6ccb0; font-size: 10px; text-shadow: none; }
@media (pointer: coarse), (max-width: 820px) {
  #mc-leaderboard { --leader-columns: 12px minmax(0, 1fr) 19px 33px 22px; width: 176px; padding: 0; }
  #mc-leaderboard .mc-leader-title-row { margin-bottom: 2px; }
  #mc-leaderboard h2 { font-size: 12px; }
  #mc-leaderboard .mc-leader-head { font-size: 7px; padding-bottom: 2px; }
  #mc-leader-list { font-size: 10px; }
  #mc-leader-list li { min-height: 15px; padding-block: 0; }
  #mc-leader-list .mc-col-level { min-width: 18px; padding: 1px 2px; font-size: 9px; }
  #mc-leaderboard .mc-col-rank, #mc-leader-list .mc-col-mass, #mc-leader-list .mc-col-kills { font-size: 9px; }
  #mc-leaderboard #mc-rank { margin-top: 3px; padding-top: 3px; font-size: 9px; }
  @container game (max-height: 360px) {
    #mc-leader-list li { min-height: 15px; padding-block: 0; }
    #mc-leaderboard #mc-rank { margin-top: 2px; padding-top: 2px; }
    .mc-minimap-wrap { width: 58px; height: 58px; bottom: 90px; }
  }
}
.mc-hud-menu-btn, .mc-quest-toggle-btn { background: #fffdf3; color: #405449; border: 1.5px solid #82966b; box-shadow: 0 2px 0 #82966b; text-shadow: none; }
.mc-hud-menu-btn:hover { background: #e3ebcf; color: #35483f; border-color: #82966b; }
#mc-quest-reward { color: #766024; }
.mc-quest-bar { background: #dce4c7; }
#mc-quest-fill { background: #7e9e55; }
.mc-minimap-wrap { background: #e5ecd7; border: 2px solid #9aaa82; box-shadow: none; opacity: .9; }
#mc-joystick-base {
  position: relative; background: #fffdf3bd; border: 2px solid #91a477;
  border-radius: 46% 50% 45% 49%; box-shadow: 0 3px 0 #40544924;
}
#mc-joystick-base::before { content: ''; position: absolute; inset: 10px; border: 1px dashed #a6b78b; border-radius: 50%; pointer-events: none; }
#mc-joystick-stick {
  display: flex; align-items: center; justify-content: center; position: relative;
  background: #bfd792; border: 2px solid #526c43; border-radius: 44% 49% 46% 50%; box-shadow: 0 3px 0 #526c43;
}
#mc-joystick-stick svg { width: 28px; height: 28px; fill: none; stroke: #526c43; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
#mc-joystick-zone:active #mc-joystick-base { background: #e5edcfe6; }
#mc-joystick-zone:active #mc-joystick-stick { box-shadow: 0 1px 0 #526c43; background: #cde4a5; }
.mc-mobile-actions { gap: 14px; }
.mc-touch-btn {
  gap: 1px; padding: 6px; min-width: 44px; min-height: 44px;
  color: #405449; border: 2px solid #405449; box-shadow: 0 4px 0 #405449;
  transition: transform .1s ease, box-shadow .1s ease, background-color .1s ease;
}
.mc-touch-feed { width: 64px; height: 64px; background: #bfd792; border-radius: 44% 48% 42% 48%; }
.mc-touch-boost { width: 76px; height: 76px; background: #efae7e; border-radius: 46% 43% 48% 42%; }
.mc-touch-btn::after { inset: -4px; }
.mc-touch-icon { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: none; pointer-events: none; }
.mc-touch-boost .mc-touch-icon { width: 30px; height: 30px; fill: #fff3cd; }
.mc-touch-btn strong { margin-top: 0; font-size: 9px; line-height: 1.2; letter-spacing: .04em; color: #405449; text-shadow: none; pointer-events: none; }
.mc-touch-btn.is-active, .mc-touch-btn:active { transform: translateY(3px) scale(.97); filter: none; box-shadow: 0 1px 0 #405449; }
.mc-touch-feed.is-active, .mc-touch-feed:active { background: #d0e5ab; }
.mc-touch-boost.is-active, .mc-touch-boost:active { background: #f7c398; }
.mc-touch-btn:disabled, .mc-touch-btn[aria-disabled="true"] { opacity: .55; background: #e2e4d6; color: #74806c; box-shadow: 0 2px 0 #7e8a75; transform: none; cursor: default; }
.mc-touch-btn:focus-visible { outline: 3px solid #405449; outline-offset: 6px; }
@container game (max-height: 360px) {
  .mc-mobile-actions { bottom: 18px; gap: 12px; }
  .mc-touch-feed { width: 60px; height: 60px; }
  .mc-touch-boost { width: 68px; height: 68px; }
  .mc-touch-icon, .mc-touch-boost .mc-touch-icon { width: 25px; height: 25px; }
}
@media (prefers-reduced-motion: reduce) { .mc-touch-btn { transition: none; } }
#mc-leader-banner, #mc-match-notice { background: #f7e2a6; color: #655123; border-color: #bfa15f; text-shadow: none; box-shadow: none; }
/* Small surfaces keep real-size controls instead of scaling the entire menu. */
@container game (max-height: 650px) {
  #mc-menu-overlay { padding: 60px 18px 24px; }
  #mc-menu-overlay .mc-menu-card { max-height: calc(100cqh - 84px); padding: 16px 24px; gap: 11px; }
  #mc-menu-overlay .mc-title { font-size: 59px; }
  .mc-menu-eyebrow { font-size: 10px; margin-bottom: 3px; }
  .mc-how-to { margin-top: 16px; padding-top: 11px; }
  #mc-avatar-preview { width: 120px; height: 120px; }
  .mc-avatar-box { width: 130px; flex-basis: 130px; }
}
@container game (max-height: 520px) {
  #mc-menu-overlay { padding: 47px 70px 15px; overflow: hidden; }
  #mc-menu-overlay .mc-menu-card { width: min(640px, calc(100cqw - 144px)); max-height: calc(100cqh - 64px); padding: 12px 20px !important; gap: 10px !important; border-radius: 22px; transform: none; display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
  .mc-card-header { grid-column: 1 / -1; gap: 10px; }
  #mc-menu-overlay .mc-tabs { margin: 0; }
  #mc-menu-overlay .mc-tab-btn { min-height: 34px; padding: 6px; font-size: 11px; }
  .mc-wallet-pill { font-size: 11px; padding: 4px 7px; }
  .mc-title-block { margin: 0; padding: 8px 6px 10px; border-radius: 16px; box-shadow: 0 3px 0 var(--mc-ink);
    /* Small banner: rays only, so no snack dot lands on the text. */
    background:
      radial-gradient(ellipse at 50% 120%, #fff6cf 0, #fff6cfb3 30%, #fff6cf00 68%),
      repeating-conic-gradient(from -6deg at 50% 135%, #c2dd97 0 6deg, #d5eab2 6deg 12deg); }
  #mc-menu-overlay .mc-title { font-size: 37px; letter-spacing: -2.5px; margin: 4px 0 9px; }
  .mc-menu-eyebrow { font-size: 8px; letter-spacing: 1px; line-height: 1.5; }
  .mc-subtitle { font-size: 10px; }
  .mc-title-block::before { left: 4px; top: 37px; font-size: 16px; }
  .mc-title-block::after { right: 2px; top: 65px; font-size: 12px; }
  .mc-panel { min-width: 0; }
  .mc-play-row { gap: 12px; }
  .mc-avatar-box { width: 84px; flex-basis: 84px; gap: 7px; }
  #mc-avatar-preview { width: 80px; height: 80px; }
  .mc-small-btn { padding: 5px 3px; font-size: 9px; }
  .mc-name-label { font-size: 10px; }
  #mc-name-input { min-height: 38px; padding: 7px 10px; font-size: 14px; border-radius: 10px; }
  #mc-menu-overlay .mc-green-play-btn { min-height: 42px; padding: 7px 12px; font-size: 17px; border-radius: 11px; box-shadow: 0 3px 0 #405449; }
  .mc-form-col { gap: 6px; }
  .mc-play-sublinks { gap: 6px; margin-top: 3px; }
  .mc-choose-skin-link { font-size: 10px; padding: 3px 0; }
  .mc-how-to { gap: 10px; padding-top: 7px; margin-top: 10px; }
  .mc-how-to>div { gap: 3px; }
  .mc-how-to strong { font-size: 9px; }
  .mc-how-icon { width: 22px; height: 21px; }
  .mc-how-grow { font-size: 21px; }
  .mc-how-zoom { font-size: 23px; }
  .mc-how-munch { font-size: 6px; }
  .mc-how-arrow { font-size: 15px; }
  .mc-corner-bar { top: 6px; right: 8px; padding: 3px 6px; transform: none; }
  .mc-corner-bar .mc-audio-group input[type=range] { display: none; }
  .mc-icon-btn { width: 26px; height: 26px; }
  #mc-lang-select { min-height: 26px; font-size: 11px; padding: 2px 6px; }
  #acct-btn { bottom: 10px !important; left: 10px !important; font-size: 11px !important; padding: 6px 10px !important; min-height: 32px; }
  .mc-menu-card:has([data-mc-panel="play"][hidden]) { display: flex !important; }
  .mc-menu-card:has([data-mc-panel="play"][hidden]) .mc-title-block { display: none; }
  .mc-skin-grid { max-height: 140px; min-height: 90px; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 7px; }
  .mc-skins-toolbar { gap: 5px; }
  .mc-cat-pill { font-size: 10px; padding: 5px 7px; }
  .mc-skin-preview-status { padding: 5px 8px; font-size: 10px; }
}
@container game (max-width: 700px) and (max-height: 520px) {
  #mc-menu-overlay { padding: 45px 15px 14px; }
  #mc-menu-overlay .mc-menu-card { width: calc(100cqw - 32px); max-height: calc(100cqh - 60px); grid-template-columns: 126px minmax(0, 1fr); padding: 10px 14px !important; gap: 8px !important; }
  .mc-avatar-box { width: 70px; flex-basis: 70px; }
  #mc-avatar-preview { width: 66px; height: 66px; }
  .mc-how-to { margin-top: 8px; }
  #acct-btn { bottom: 6px !important; left: 6px !important; }
}
@container game (max-width: 480px) {
  #mc-menu-overlay .mc-menu-card { width: calc(100cqw - 24px); padding: 18px !important; display: flex; }
  #mc-menu-overlay .mc-title { font-size: 53px; }
  .mc-card-header { gap: 9px; }
  #mc-menu-overlay .mc-tabs { flex-basis: 100%; }
  .mc-play-row { flex-direction: row; gap: 13px; }
  .mc-avatar-box { flex-basis: 82px; width: 82px; }
  #mc-avatar-preview { width: 80px; height: 80px; }
  .mc-how-to { gap: 11px; }
}
/* Elastic button press feedback & unmistakable wardrobe equip confirmation */
#mc-menu-overlay .mc-green-play-btn,
#mc-menu-overlay .mc-tab,
.mc-cat-pill,
.mc-small-btn,
.mc-choose-skin-link,
.mc-hud-menu-btn,
#acct-btn {
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.14s ease, box-shadow 0.14s ease;
}
#mc-menu-overlay .mc-green-play-btn:active {
  transform: translateY(3px) scale(0.97) !important;
  box-shadow: 0 2px 0 #405449 !important;
}
#mc-menu-overlay .mc-tab:active,
.mc-cat-pill:active,
.mc-small-btn:active,
.mc-hud-menu-btn:active,
#acct-btn:active {
  transform: translateY(1px) scale(0.96);
}
@keyframes mcEquipStickerPop {
  0% { transform: scale(0.92); }
  55% { transform: translateY(-3px) scale(1.06); }
  100% { transform: translateY(-1px) scale(1); }
}
.mc-skin-item.is-just-equipped {
  animation: mcEquipStickerPop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-color: #405449 !important;
  background: #fff6cf !important;
  box-shadow: 0 4px 0 #ed7966, 0 0 0 2px #f0c85b inset !important;
}
.mc-skin-preview-status.is-equip-pop {
  animation: mcEquipStickerPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #b3ce81 !important;
  color: #2f4037 !important;
  border-color: #405449 !important;
}

/* First 30 Seconds Contextual Onboarding Pill (Playground paper-sticker style) */
.mc-onboarding-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 13px;
  background: #fffdf3;
  color: #35483f;
  border: 2.5px solid #405449;
  border-radius: 999px;
  box-shadow: 0 3px 0 #405449;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  pointer-events: none;
  user-select: none;
  max-width: min(90vw, 420px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mc-onboarding-hint[hidden] {
  display: none !important;
}
.mc-onboarding-hint[data-step="0"] {
  border-color: #405449;
  box-shadow: 0 3px 0 #b3ce81, 0 0 0 1.5px #405449;
}
.mc-onboarding-hint[data-step="1"] {
  border-color: #405449;
  box-shadow: 0 3px 0 #ed7966, 0 0 0 1.5px #405449;
}
.mc-onboarding-hint[data-step="2"] {
  border-color: #405449;
  box-shadow: 0 3px 0 #f0c85b, 0 0 0 1.5px #405449;
}
.mc-onboarding-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0c85b;
  color: #35483f;
  border: 1.5px solid #405449;
  font-size: 12px;
  flex-shrink: 0;
}
.mc-onboarding-hint[data-step="0"] .mc-onboarding-icon { background: #b3ce81; }
.mc-onboarding-hint[data-step="1"] .mc-onboarding-icon { background: #ed7966; color: #fffdf3; }
.mc-onboarding-hint[data-step="2"] .mc-onboarding-icon { background: #f0c85b; }
.mc-onboarding-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-onboarding-steps {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f7f2df;
  border: 1.5px solid #405449;
  color: #405449;
  flex-shrink: 0;
}
@container game (max-height: 440px) {
  .mc-onboarding-hint {
    margin-top: 3px;
    padding: 4px 10px;
    font-size: 11px;
    gap: 6px;
    box-shadow: 0 2px 0 #405449;
  }
  .mc-onboarding-icon {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  .mc-onboarding-steps {
    font-size: 9px;
    padding: 1px 5px;
  }
}

/* Stage 2: Honest BOT badges, Private Room box, Next Unlock bar & Elimination Recap */
.mc-bot-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: #35483f;
  background: #f7f2df;
  border: 1.5px solid #405449;
  border-radius: 999px;
  vertical-align: middle;
}

.mc-room-hud-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 900;
  color: #35483f;
  background: #f0c85b;
  border: 2px solid #405449;
  border-radius: 999px;
  box-shadow: 0 2px 0 #405449;
}
.mc-room-hud-badge[hidden] {
  display: none !important;
}

.mc-elimination-recap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 11px;
  background: #fffdf3;
  border: 2px solid #405449;
  border-radius: 14px;
  box-shadow: 0 3px 0 #ed7966;
  max-width: 100%;
  box-sizing: border-box;
}
.mc-elimination-recap[hidden] {
  display: none !important;
}
.mc-recap-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mc-recap-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mc-recap-cause {
  font-size: 12.5px;
  font-weight: 900;
  color: #35483f;
}
.mc-recap-coins {
  font-size: 11px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f0c85b;
  color: #35483f;
  border: 1.5px solid #405449;
}
.mc-recap-achievement {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: #405449;
}
.mc-recap-tip {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #556b5e;
}
.mc-recap-replay-btn {
  flex-shrink: 0;
  background: #b3ce81 !important;
  color: #2f4037 !important;
  border: 2px solid #405449 !important;
  font-weight: 900 !important;
}

.mc-friends-box {
  margin-top: 8px;
  padding: 8px 10px;
  background: #fffdf3;
  border: 2px solid #405449;
  border-radius: 14px;
  box-shadow: 0 2px 0 rgba(64, 84, 73, 0.22);
  max-width: 100%;
  box-sizing: border-box;
}
.mc-friends-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.mc-friends-title {
  font-size: 12px;
  font-weight: 900;
  color: #35483f;
}
.mc-room-mode-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f7f2df;
  color: #405449;
  border: 1.5px solid #405449;
}
.mc-room-mode-pill.is-private {
  background: #f0c85b;
  color: #2f4037;
}
.mc-room-controls-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mc-room-controls-row[hidden] {
  display: none !important;
}
.mc-create-room-btn {
  background: #7aa9be !important;
  color: #fffdf3 !important;
  border: 2px solid #405449 !important;
  font-weight: 800 !important;
  flex-shrink: 0;
}
.mc-room-join-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 150px;
  min-width: 0;
}
.mc-room-code-input {
  flex: 1 1 70px;
  min-width: 0;
  width: 84px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #35483f;
  background: #f7f2df;
  border: 2px solid #405449;
  border-radius: 9px;
}
.mc-join-room-btn {
  background: #b3ce81 !important;
  color: #2f4037 !important;
  border: 2px solid #405449 !important;
  font-weight: 800 !important;
  flex-shrink: 0;
}
.mc-room-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.mc-room-active-bar[hidden] {
  display: none !important;
}
.mc-room-status-text {
  font-size: 12px;
  font-weight: 900;
  color: #35483f;
}
.mc-room-active-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.mc-next-unlock-bar {
  margin-top: 7px;
  padding: 6px 10px;
  background: #f7f2df;
  border: 1.8px solid #405449;
  border-radius: 12px;
  max-width: 100%;
  box-sizing: border-box;
}
.mc-next-unlock-bar[hidden] {
  display: none !important;
}
.mc-next-unlock-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #35483f;
}
.mc-next-unlock-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-next-unlock-track {
  margin-top: 4px;
  height: 6px;
  background: #fffdf3;
  border: 1.5px solid #405449;
  border-radius: 999px;
  overflow: hidden;
}
.mc-next-unlock-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f0c85b, #b3ce81);
  border-radius: 999px;
  transition: width 0.25s ease;
}

@container game (max-height: 440px) {
  .mc-friends-box, .mc-elimination-recap {
    margin-top: 5px;
    padding: 5px 8px;
  }
  .mc-next-unlock-bar {
    margin-top: 5px;
    padding: 4px 8px;
  }
  /* Phones held sideways: the whole play menu fits without scrolling. */
  .mc-how-to { display: none; }
  .mc-friends-head { margin-bottom: 3px; }
  .mc-play-sublinks { margin-top: 0; }
}
@container game (max-width: 700px) and (max-height: 520px) {
  #mc-menu-overlay .mc-title { font-size: 33px; letter-spacing: -2px; -webkit-text-stroke-width: 1.5px; text-shadow: 0 3px 0 #405449; }
  .mc-title-block { padding: 7px 4px 8px; }
  .mc-title-block::before, .mc-title-block::after { display: none; }
}
/* After a match the recap takes the place of the how-to strip, so the menu
   still fits; on short screens it shrinks to one line and the goal bar waits. */
.mc-panel:has(#mc-elimination-recap:not([hidden])) .mc-how-to { display: none; }
.mc-panel:has(#mc-elimination-recap:not([hidden])) .mc-play-row { padding-bottom: 4px; }
@container game (max-height: 800px) {
  .mc-elimination-recap .mc-recap-tip { display: none; }
}
/* Short laptop windows: the banner slims down before anything has to scroll. */
@container game (min-height: 521px) and (max-height: 760px) {
  .mc-menu-eyebrow { display: none; }
  #mc-menu-overlay .mc-title { font-size: 50px; letter-spacing: -3px; margin-bottom: 3px; }
  .mc-title-block { padding: 5px 14px 8px; }
  .mc-title-block::before { top: 14px; font-size: 28px; }
  .mc-title-block::after { top: 34px; font-size: 20px; }
}
@container game (min-height: 521px) and (max-height: 610px) {
  .mc-subtitle { display: none; }
  #mc-menu-overlay .mc-title { font-size: 44px; }
  #mc-menu-overlay .mc-menu-card { padding: 10px 24px 12px; gap: 8px; }
  #mc-avatar-preview { width: 92px; height: 92px; }
  .mc-avatar-box { width: 112px; flex-basis: 112px; gap: 7px; }
  #mc-name-input { min-height: 42px; padding: 8px 13px; }
  #mc-menu-overlay .mc-green-play-btn { min-height: 46px; padding: 8px 16px; }
  .mc-play-sublinks { margin-top: 2px; }
  .mc-friends-box, .mc-elimination-recap, .mc-next-unlock-bar { margin-top: 6px; }
}
@container game (max-height: 700px) {
  .mc-how-to { display: none; }
}
@container game (max-height: 650px) {
  .mc-panel:has(#mc-elimination-recap:not([hidden])) .mc-next-unlock-bar { display: none; }
}
@container game (max-height: 440px) {
  .mc-elimination-recap .mc-recap-achievement { display: none; }
  .mc-elimination-recap { padding: 3px 8px; }
  .mc-recap-replay-btn { padding: 4px 8px; }
}
@container game (max-height: 340px) {
  #mc-menu-overlay { padding-top: 40px; padding-bottom: 8px; }
  #mc-menu-overlay .mc-menu-card { max-height: calc(100cqh - 50px); padding: 7px 12px !important; gap: 6px !important; }
  #mc-menu-overlay .mc-tab-btn { min-height: 30px; padding: 4px 6px; }
  .mc-name-label { display: none; }
  #mc-name-input { min-height: 34px; padding: 5px 10px; }
  #mc-menu-overlay .mc-green-play-btn { min-height: 38px; padding: 5px 12px; }
  .mc-form-col { gap: 5px; }
  .mc-choose-skin-link { padding: 1px 0; }
  .mc-avatar-box { gap: 4px; }
  /* Skins and the Hall of Fame stay one tap away in the tabs above; the four style links keep one row. */
  .mc-hall-quick-link, #mc-choose-skin-btn { display: none !important; }
  .mc-friends-box { margin-top: 4px; padding: 4px 7px; }
  .mc-next-unlock-bar { margin-top: 4px; padding: 3px 8px; }
  .mc-next-unlock-track { margin-top: 2px; height: 5px; }
  .mc-panel:has(#mc-elimination-recap:not([hidden])) .mc-friends-head { display: none; }
  .mc-elimination-recap { margin-top: 4px; }
  .mc-room-active-bar .mc-small-btn { padding: 3px 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .mc-skin-item, .mc-green-play-btn, #mc-menu-overlay .mc-tab, .mc-cat-pill, .mc-small-btn, .mc-onboarding-hint, .mc-next-unlock-fill { transition: none !important; animation: none !important; }
  .mc-skin-item.is-just-equipped, .mc-skin-preview-status.is-equip-pop { animation: none !important; }
}
/* The overlay follows the same rotated game container as the arena canvas. */
#mc-chomp-overlay {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) 16px;
  touch-action: none;
}
#mc-chomp-overlay:focus { outline: none; }
#mc-settings { position: relative; color: var(--mc-text); }
.mc-corner-bar:has(#mc-settings[open]) { z-index: 45; }
.mc-settings-trigger {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 40px; padding: 0 10px; list-style: none; cursor: pointer;
  background: #fffdf3; border: 2px solid var(--mc-ink); border-radius: 13px;
  font-size: 12px; font-weight: 800; white-space: nowrap;
}
.mc-settings-trigger::-webkit-details-marker { display: none; }
.mc-settings-trigger:focus-visible { outline: 3px solid #ae4c37; outline-offset: 3px; }
#mc-settings[open] .mc-settings-trigger { background: #e3edcd; }
.mc-settings-panel {
  position: absolute; z-index: 100; top: calc(100% + 10px); right: 0;
  width: 320px; max-width: calc(100cqw - 72px); padding: 14px;
  max-height: calc(100cqh - 80px); overflow-y: auto; overscroll-behavior: contain;
  border: 2px solid var(--mc-ink); border-radius: 18px; background: #fffdf3;
  box-shadow: 0 5px 0 var(--mc-ink); text-align: left;
}
.mc-settings-option { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-size: 14px; font-weight: 700; }
.mc-settings-option input { width: 22px; height: 22px; margin: 0; flex: 0 0 22px; accent-color: #629c69; }
.mc-settings-panel p { margin: 9px 0 0; font-size: 12px; line-height: 1.45; color: var(--mc-muted); }
.mc-settings-audio-row {
  display: grid; grid-template-columns: minmax(80px, 1fr) 44px minmax(72px, 1.15fr);
  align-items: center; gap: 8px; min-height: 48px; margin-bottom: 6px;
}
.mc-settings-audio-row label, .mc-settings-language-row label { font-size: 13px; font-weight: 700; }
#mc-settings .mc-icon-btn { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
#mc-settings input[type=range] { display: block; width: 100%; min-width: 0; height: 44px; margin: 0; accent-color: #629c69; }
.mc-settings-language-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--mc-border); }
#mc-settings #mc-lang-select { min-width: 144px; min-height: 44px; font-size: 14px; padding: 6px 10px; border-radius: 12px; }
#mc-settings .mc-settings-option { font-size: 13px; }
@media (max-height: 430px) { .mc-settings-trigger { min-height: 36px; padding-inline: 8px; } }

/* Secondary screens retain the same accessible, illustrated controls. */
#acct-modal { padding: 16px; overflow-y: auto; box-sizing: border-box; }
#acct-form { width: min(340px, calc(100vw - 32px)) !important; max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; }
#acct-form label { font-size: 12px; font-weight: 700; }
#acct-fields { gap: 7px !important; }
#acct-fields[hidden], #acct-logout[hidden] { display: none !important; }
#acct-form input, #acct-form button, #acct-btn { min-height: 44px !important; }
#acct-form a { min-height: 44px; display: inline-flex; align-items: center; }
#acct-form button:disabled { cursor: wait; opacity: .65; }
#acct-form a:focus-visible { outline: 3px solid #ae4c37; outline-offset: 3px; border-radius: 4px; }
#acct-status, #acct-err { overflow-wrap: anywhere; }
#mc-reward-ad-btn[hidden] { display: none !important; }
@media (pointer: coarse) {
  .mc-settings-trigger, #mc-fullscreen-btn, .mc-modal-actions button { min-height: 44px; }
}

/* Keep the first-round guide between the menu and the leaderboard on small phones. */
@container game (max-width: 700px) {
  .mc-hud-top-center { left: 180px; right: 248px; width: auto; max-width: 260px; transform: none; }
  .mc-onboarding-hint { max-width: 100%; box-sizing: border-box; }
  .mc-onboarding-text { white-space: normal; line-height: 1.25; }
}

/* Mouse-driven narrow windows have no touch buttons: the minimap returns to the corner. */
@media (pointer: fine) {
  #mc-minimap-wrap { bottom: 14px !important; }
}

/* ---- Daily gift, streak and missions ---- */
.mc-daily-btn {
  position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 5px 10px;
  font: inherit; font-size: 12px; font-weight: 800; color: #35483f; background: #fffdf3;
  border: 2px solid var(--mc-ink); border-radius: 13px; box-shadow: 0 2px 0 var(--mc-ink); cursor: pointer; white-space: nowrap;
}
.mc-daily-btn:hover { background: #efefdc; }
.mc-daily-btn:active { transform: translateY(2px); box-shadow: none; }
.mc-daily-btn:focus-visible, .mc-daily-claim-btn:focus-visible, .mc-daily-gift-btn:focus-visible { outline: 3px solid #405449; outline-offset: 3px; }
.mc-daily-btn.has-reward { background: #f8e8aa; animation: mc-daily-nudge 2.4s ease-in-out infinite; }
.mc-daily-badge {
  position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; line-height: 1;
  color: #fffdf3; background: #d9603f; border: 2px solid #fffdf3; border-radius: 999px;
}
.mc-daily-badge[hidden] { display: none; }
@keyframes mc-daily-nudge { 0%, 78%, 100% { transform: rotate(0); } 84% { transform: rotate(-5deg); } 90% { transform: rotate(5deg); } 96% { transform: rotate(-2deg); } }
/* Sized from the game container, which is rotated on portrait phones. */
.mc-daily-card { width: min(440px, calc(100cqw - 24px)); max-height: calc(100cqh - 24px); overflow-y: auto; padding: 16px; box-sizing: border-box; text-align: left; }
.mc-daily-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mc-daily-top h2 { margin: 0; font-size: 20px; }
.mc-daily-streak { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: #9a4a2c; }
.mc-daily-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; list-style: none; margin: 0 0 12px; padding: 0; }
.mc-daily-day {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; min-width: 0;
  background: #f3f0dc; border: 2px solid #c6ccb0; border-radius: 12px; color: #67715b;
}
.mc-daily-day-label { font-size: 9px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mc-daily-day-icon { font-size: 15px; line-height: 1.2; }
.mc-daily-day-coins { font-size: 11px; }
.mc-daily-day.is-collected { background: #dce9be; border-color: #8aa36a; color: #35483f; }
.mc-daily-day.is-today { border-color: var(--mc-ink); box-shadow: 0 2px 0 var(--mc-ink); background: #f8e8aa; color: #35483f; }
.mc-daily-day.is-today.is-collected { background: #c6dca6; }
.mc-daily-gift-btn {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 17px; font-weight: 900;
  color: #35483f; background: #b3ce81; border: 2px solid var(--mc-ink); border-radius: 15px; box-shadow: 0 5px 0 var(--mc-ink); cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.mc-daily-gift-btn:hover:not(:disabled) { background: #c3dc98; }
.mc-daily-gift-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--mc-ink); }
.mc-daily-gift-btn:disabled { background: #e8e9da; color: #74806c; box-shadow: 0 2px 0 #9aa58e; border-color: #9aa58e; cursor: default; }
.mc-daily-missions-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 16px 0 8px; }
.mc-daily-missions-head h3 { margin: 0; font-size: 15px; color: #35483f; }
.mc-daily-reset { font-size: 11px; font-weight: 700; color: #67715b; white-space: nowrap; }
.mc-daily-missions { display: flex; flex-direction: column; gap: 7px; }
.mc-daily-mission { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #f7f4e2; border: 2px solid #c6ccb0; border-radius: 13px; }
.mc-daily-mission.is-done { border-color: #8aa36a; background: #eef4dc; }
.mc-daily-mission.is-claimed { opacity: .7; }
.mc-daily-mission.is-bonus { background: #fbf1cb; border-style: dashed; border-color: #b49a4f; }
.mc-daily-mission-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mc-daily-mission-text { font-size: 13px; font-weight: 800; color: #35483f; overflow-wrap: anywhere; }
.mc-daily-bar { position: relative; height: 14px; background: #dce4c7; border-radius: 999px; overflow: hidden; }
.mc-daily-bar-fill { position: absolute; inset: 0 auto 0 0; background: #7e9e55; border-radius: 999px; transition: width .3s ease; }
.mc-daily-bar-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #2c3c33; }
.mc-daily-claim-btn {
  flex: 0 0 auto; min-width: 76px; min-height: 44px; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 900;
  color: #74806c; background: #e8e9da; border: 2px solid #9aa58e; border-radius: 12px; cursor: default;
}
.mc-daily-claim-btn.is-ready { color: #35483f; background: #f0c85b; border-color: var(--mc-ink); box-shadow: 0 3px 0 var(--mc-ink); cursor: pointer; }
.mc-daily-claim-btn.is-ready:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--mc-ink); }
.mc-daily-empty { margin: 12px 0; font-weight: 700; color: #67715b; }
@container game (max-width: 600px) {
  .mc-daily-btn { min-height: 30px; padding: 4px 7px; font-size: 11px; }
  .mc-daily-btn-label { display: none; }
  .mc-daily-card { padding: 12px; }
  .mc-daily-day-label { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { .mc-daily-btn.has-reward { animation: none; } .mc-daily-bar-fill, .mc-daily-gift-btn { transition: none; } }

/* Account rank: star badge on the avatar, XP chip beside the nickname. */
.mc-avatar-box { position: relative; }
.mc-rank-badge {
  position: absolute; top: -7px; left: -5px; z-index: 2; min-width: 38px; padding: 3px 8px;
  color: #35483f; background: #f0c85b; border: 2px solid var(--mc-ink); border-radius: 999px;
  box-shadow: 0 2px 0 var(--mc-ink); font-size: 12px; font-weight: 900; line-height: 1.2; cursor: pointer;
  transform: rotate(-7deg);
}
.mc-rank-badge:hover { background: #f6d77c; }
.mc-rank-badge.is-pop { animation: mc-rank-pop 1.1s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes mc-rank-pop { 0% { transform: rotate(-7deg) scale(1); } 25% { transform: rotate(8deg) scale(1.55); } 55% { transform: rotate(-12deg) scale(1.25); } 100% { transform: rotate(-7deg) scale(1); } }
.mc-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.mc-rank-chip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 2px 8px; cursor: pointer;
  color: #35483f; background: #fffdf3; border: 1.5px solid var(--mc-ink); border-radius: 999px;
  font-size: 11px; font-weight: 900; line-height: 1.3; white-space: nowrap;
}
.mc-rank-chip:hover { background: #f8e8aa; }
.mc-rank-chip-track { display: block; width: 62px; height: 7px; background: #dce4c7; border: 1px solid var(--mc-ink); border-radius: 999px; overflow: hidden; }
.mc-rank-chip-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f0c85b, #ee9879); transition: width .5s ease; }
.mc-rank-badge:focus-visible, .mc-rank-chip:focus-visible { outline: 3px solid #405449; outline-offset: 3px; }
.mc-rank-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.mc-rank-big { padding: 6px 14px; background: #f0c85b; border: 2.5px solid var(--mc-ink); border-radius: 999px; box-shadow: 0 3px 0 var(--mc-ink); font-size: 22px; font-weight: 900; color: #35483f; transform: rotate(-5deg); }
.mc-rank-name { font-size: 18px; color: #35483f; }
.mc-rank-bar { height: 18px; }
.mc-rank-bar .mc-daily-bar-fill { background: linear-gradient(90deg, #f0c85b, #ee9879); }
.mc-rank-how { margin: 9px 0 0; font-size: 12px; font-weight: 600; color: #5b694e; }
.mc-rank-next-title { margin: 14px 0 7px; font-size: 15px; color: #35483f; }
.mc-rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mc-rank-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: #f7f4e2; border: 2px solid #c6ccb0; border-radius: 12px; font-size: 13px; color: #35483f; }
.mc-rank-item.is-gift { background: #fbf1cb; border-color: #b49a4f; border-style: dashed; }
.mc-rank-item-rank { min-width: 44px; font-weight: 900; }
.mc-rank-item-text { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.mc-rank-item-coins { white-space: nowrap; }
@container game (max-height: 520px) {
  .mc-rank-badge { top: -5px; left: -4px; min-width: 30px; padding: 1px 6px; font-size: 10px; }
  .mc-rank-chip { font-size: 10px; padding: 1px 6px; }
  .mc-rank-chip-track { width: 44px; height: 6px; }
}
@container game (max-height: 340px) { .mc-name-row { display: none; } }
@container game (max-width: 480px) { .mc-rank-chip-track { width: 40px; } }
@media (prefers-reduced-motion: reduce) { .mc-rank-badge.is-pop { animation: none; } .mc-rank-chip-fill { transition: none; } }

/* Weekly top, above the all-time champions on the Top tab. */
.mc-weekly-box { margin-bottom: 12px; padding: 10px 12px; background: #fbf1cb; border: 2px dashed #b49a4f; border-radius: 16px; }
.mc-weekly-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mc-weekly-title { margin: 0; font-size: 17px; font-weight: 900; color: #35483f; }
.mc-weekly-ends { font-size: 11px; font-weight: 800; color: #7b602b; white-space: nowrap; }
.mc-weekly-box .mc-hall-subtitle { margin: 2px 0 8px; }
.mc-weekly-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mc-weekly-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px 9px; background: #fffdf3; border: 1.5px solid #d9cf9f; border-radius: 10px; font-size: 13px; color: #35483f; }
.mc-weekly-row.is-self { background: #e3edcc; border-color: var(--mc-ink); }
.mc-weekly-place { text-align: center; font-weight: 900; }
.mc-weekly-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-weekly-xp { font-weight: 700; color: #5b694e; white-space: nowrap; }
.mc-weekly-prize { font-weight: 900; color: #7b602b; white-space: nowrap; }
.mc-weekly-empty { padding: 8px; font-size: 13px; font-weight: 700; color: #67715b; text-align: center; }
.mc-weekly-self { margin-top: 7px; font-size: 12px; font-weight: 800; color: #35483f; }

/* In-match messages float as plain text: no pill, no box behind them. A soft
   paper-coloured halo keeps them readable over players and food. */
#mc-leader-banner, #mc-match-notice, .mc-onboarding-hint, .mc-onboarding-hint[data-step],
.mc-power-beacon, .mc-power-status, .mc-room-hud-badge {
  background: transparent !important; border-color: transparent !important; box-shadow: none !important;
  color: #2f4037; text-shadow: 0 1px 0 #fffdf3, 0 0 4px #fffdf3, 0 0 8px #fffdf3, 0 0 12px #fffdf3;
}
#mc-match-notice { font-size: 15px; font-weight: 900; letter-spacing: .01em; }
#mc-leader-banner { font-size: 13px; font-weight: 900; }
.mc-power-timer { border-radius: 999px; }
/* Computer: always the full top 10, whatever the window width. Phones keep
   the top 5 so the board does not cover the arena. */
@media (pointer: fine) {
  #mc-leader-list li:nth-child(n+6) { display: grid; }
}

/* Rank medals: the artwork is an SVG that changes with every rank. */
.mc-rank-badge {
  top: -16px; left: -14px; min-width: 0; width: 58px; height: 58px; padding: 0;
  background: transparent; border: 0; border-radius: 50%; box-shadow: none; line-height: 0;
  transform: rotate(-8deg); filter: drop-shadow(0 2px 0 #40544966);
}
.mc-rank-badge:hover { background: transparent; filter: drop-shadow(0 2px 0 #40544966) brightness(1.06); }
.mc-rank-badge svg, .mc-rank-big svg, .mc-rank-item-rank svg { display: block; overflow: visible; }
.mc-rank-badge.is-pop { animation: mc-rank-pop 1.1s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes mc-rank-pop { 0% { transform: rotate(-8deg) scale(1); } 25% { transform: rotate(8deg) scale(1.55); } 55% { transform: rotate(-12deg) scale(1.25); } 100% { transform: rotate(-8deg) scale(1); } }
/* The highest tiers shimmer softly. */
.mc-rank-badge[data-tier="sunfire"], .mc-rank-badge[data-tier="starlight"], .mc-rank-badge[data-tier="rainbow"],
.mc-rank-big[data-tier="sunfire"], .mc-rank-big[data-tier="starlight"], .mc-rank-big[data-tier="rainbow"] { animation: mc-rank-shimmer 2.6s ease-in-out infinite; }
@keyframes mc-rank-shimmer { 0%, 100% { filter: drop-shadow(0 2px 0 #40544966) brightness(1); } 50% { filter: drop-shadow(0 0 7px #ffe08a) brightness(1.12); } }
.mc-rank-big { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; transform: rotate(-5deg); line-height: 0; filter: drop-shadow(0 3px 0 #40544955); }
.mc-rank-item-rank { min-width: 50px; line-height: 0; }
.mc-rank-item { padding: 3px 10px; }
.mc-rank-vip {
  display: block; width: 100%; box-sizing: border-box; margin: 10px 0 0; padding: 8px 12px; text-align: center;
  color: #5c4411; background: linear-gradient(180deg, #ffe9a6, #f3cf6a); border: 2px solid var(--mc-ink); border-radius: 12px;
  box-shadow: 0 3px 0 var(--mc-ink); font-size: 13px; font-weight: 900; font-family: inherit; cursor: pointer;
}
button.mc-rank-vip:hover { background: linear-gradient(180deg, #fff0bd, #f6d77c); }
button.mc-rank-vip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--mc-ink); }
.mc-rank-vip.is-active { cursor: default; background: #e3edcc; color: #35483f; box-shadow: none; }
@container game (max-height: 520px) {
  .mc-rank-badge { top: -11px; left: -10px; width: 40px; height: 40px; min-width: 0; padding: 0; }
  .mc-rank-badge svg { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-rank-badge[data-tier], .mc-rank-big[data-tier] { animation: none; }
}

/* Rank crests (third design): layered emblems with moving light. */
/* Kept small on the menu so it does not compete with the buddy; the big
   version lives in the rank dialog. */
.mc-rank-badge { top: -12px; left: -12px; width: 42px; height: 42px; transform: rotate(-6deg); filter: drop-shadow(0 2px 1px #40544944); animation: none !important; }
.mc-rank-badge svg { width: 100%; height: 100%; }
.mc-rank-badge.is-pop { animation: mc-rank-pop 1.1s cubic-bezier(.34, 1.56, .64, 1) !important; }
@keyframes mc-rank-pop { 0% { transform: rotate(-6deg) scale(1); } 25% { transform: rotate(8deg) scale(1.6); } 55% { transform: rotate(-12deg) scale(1.25); } 100% { transform: rotate(-6deg) scale(1); } }
.mc-rank-big { transform: none; filter: drop-shadow(0 4px 3px #40544955); animation: none !important; }
.mc-rank-head { gap: 16px; margin: 0 0 8px; }
.mc-rank-name { font-size: 24px; }
.mc-rank-item { padding: 2px 12px 2px 6px; gap: 12px; min-height: 76px; border-width: 2px; background: linear-gradient(90deg, var(--tier-tint, #f1ecd4) 0%, #f9f6e6 62%); }
.mc-rank-item.is-gift { background: linear-gradient(90deg, var(--tier-tint, #fbe9a8) 0%, #fdf3cf 62%); }
.mc-rank-item-rank { min-width: 72px; filter: drop-shadow(0 2px 1px #40544944); }
.mc-rank-item-text { font-size: 15px; font-weight: 800; }
.mc-rank-item-coins { font-size: 15px; }
[data-tier="bronze"] { --tier-tint: #f6dcc3; } [data-tier="silver"] { --tier-tint: #e3ebf0; } [data-tier="gold"] { --tier-tint: #fbe9a8; }
[data-tier="emerald"] { --tier-tint: #cdeed5; } [data-tier="sapphire"] { --tier-tint: #d0e5f8; } [data-tier="amethyst"] { --tier-tint: #e4d5f7; }
[data-tier="ruby"] { --tier-tint: #f9d3da; } [data-tier="sunfire"] { --tier-tint: #fde0b4; } [data-tier="starlight"] { --tier-tint: #d6f4f8; }
[data-tier="rainbow"] { --tier-tint: #f3e3fb; }
.mc-medal { overflow: visible; }
.mc-medal-rays { transform-box: view-box; transform-origin: 50% 47%; animation: mc-medal-spin 28s linear infinite; }
.mc-medal-aura { transform-box: fill-box; transform-origin: center; animation: mc-medal-breathe 3s ease-in-out infinite; }
.mc-medal-sheen { animation: mc-medal-sheen 3.6s ease-in-out infinite; }
.mc-medal-twinkle { transform-box: fill-box; transform-origin: center; animation: mc-medal-twinkle 2.4s ease-in-out infinite; }
.mc-medal-twinkle.t2 { animation-delay: .8s; } .mc-medal-twinkle.t3 { animation-delay: 1.5s; }
@keyframes mc-medal-spin { to { transform: rotate(360deg); } }
@keyframes mc-medal-breathe { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes mc-medal-sheen { 0%, 58% { transform: translateX(10px); } 100% { transform: translateX(150px); } }
@keyframes mc-medal-twinkle { 0%, 100% { transform: scale(.35) rotate(0deg); opacity: .1; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
@container game (max-height: 520px) {
  .mc-rank-badge { top: -9px; left: -9px; width: 32px; height: 32px; }
  .mc-rank-badge svg { width: 100%; height: 100%; }
  .mc-rank-big svg { width: 84px; height: 84px; }
  .mc-rank-item { min-height: 56px; } .mc-rank-item-rank { min-width: 52px; } .mc-rank-item-rank svg { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-medal-rays, .mc-medal-aura, .mc-medal-twinkle { animation: none; }
  .mc-medal-sheen { animation: none; opacity: 0; }
}

/* The match HUD stays laid out (but invisible and inert) while the menu is
   open. Hiding it with display:none made the browser lay the whole HUD out
   from scratch at the moment Play was pressed: a 35-100 ms hitch on the
   first frames of every match. */
#mc-hud[hidden] { display: block !important; visibility: hidden !important; pointer-events: none !important; }

/* Privacy link and "delete my data" in Settings. */
.mc-settings-legal { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #c6ccb0; }
.mc-settings-legal a { color: #405449; font-size: 12px; font-weight: 800; text-decoration: underline; }

/* Phones and other short screens: Settings (top right) and Account (top left)
   sit compactly in the strip above the menu card instead of overlapping its
   corners. Buttons stay comfortably tappable (32-34 px). */
@container game (max-height: 520px) {
  #mc-menu-overlay { padding-top: 46px; }
  .mc-corner-bar { top: 4px; right: 6px; padding: 2px 4px; gap: 4px; box-shadow: 0 2px 0 #879678; }
  .mc-corner-bar .mc-settings-trigger { min-height: 32px; padding: 0 9px; font-size: 11px; border-width: 1.5px; border-radius: 11px; }
  .mc-corner-bar #mc-fullscreen-btn { width: 32px; height: 32px; min-height: 32px; }
  #acct-btn { top: 4px !important; bottom: auto !important; left: 6px !important; min-height: 34px !important;
    padding: 4px 11px !important; font-size: 11px !important; box-shadow: 0 2px 0 #879678; }
}
@container game (max-height: 340px) {
  #mc-menu-overlay { padding-top: 43px; }
  .mc-corner-bar { top: 3px; }
  .mc-corner-bar .mc-settings-trigger { min-height: 30px; }
  .mc-corner-bar #mc-fullscreen-btn { width: 30px; height: 30px; min-height: 30px; }
  #acct-btn { top: 3px !important; min-height: 32px !important; }
}

/* Rank dialog: "see all ranks" and the full road to the top. */
.mc-rank-all-btn {
  display: block; width: 100%; margin: 10px 0 0; padding: 9px 12px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 900;
  color: #35483f; background: #fffdf3; border: 2px dashed #879678; border-radius: 12px;
}
.mc-rank-all-btn:hover { background: #f3f1e0; }
.mc-rank-all-btn:focus-visible { outline: 3px solid #ae4c37; outline-offset: 3px; }
.mc-rank-ladder { margin-top: 8px; }
.mc-rank-ladder .mc-rank-item { min-height: 50px; padding: 1px 12px 1px 6px; }
.mc-rank-ladder .mc-rank-item-rank { min-width: 46px; filter: none; }
.mc-rank-ladder .mc-rank-item-text, .mc-rank-ladder .mc-rank-item-coins { font-size: 13px; }
/* 50 animated medals would be heavy on phones: the full list stays still. */
.mc-rank-ladder .mc-medal * { animation: none !important; }
.mc-rank-ladder .mc-medal-sheen { opacity: 0; }
.mc-rank-item.is-reached { opacity: .55; background: #f1f0e4; }
.mc-rank-item.is-here { border-color: var(--mc-ink); box-shadow: 0 3px 0 var(--mc-ink); opacity: 1; }
.mc-rank-item.is-here .mc-rank-item-text { font-weight: 900; }

/* Quick in-match visual reactions (emoticons) next to Menu */
.mc-hud-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}
.mc-emote-bar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  background: rgba(255, 253, 243, 0.92);
  border: 1.5px solid #82966b;
  border-radius: 999px;
  box-shadow: 0 2px 0 #82966b;
  pointer-events: auto;
}
.mc-emote-btn {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.12s ease, opacity 0.12s ease;
}
.mc-emote-btn:hover { background: #e3ebcf; transform: scale(1.1); }
.mc-emote-btn:active { transform: scale(0.92); }
.mc-emote-bar.is-cooling .mc-emote-btn { opacity: 0.45; }
@media (pointer: coarse), (max-width: 820px) {
  .mc-hud-top-left { max-width: 155px; }
  .mc-hud-top-row { max-width: 155px; gap: 4px; }
  .mc-emote-btn { width: 23px; height: 23px; font-size: 13px; }
}
@container game (orientation: portrait) {
  .mc-emote-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-emote-btn { transition: none; }
}
