:root {
  color-scheme: dark;
  --mt2-bg: #050505;
  --mt2-panel: #111111;
  --mt2-panel-strong: #171717;
  --mt2-line: rgba(255, 255, 255, .12);
  --mt2-muted: rgba(255, 255, 255, .58);
  --mt2-blue: #1688f8;
  --mt2-white: #f8f8f5;
  --mt2-danger: #ee5e62;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--mt2-bg); }
body.mt2-body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--mt2-bg);
  color: var(--mt2-white);
  font-family: Montserrat, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; }

.mt2-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  gap: 18px;
  min-height: 100dvh;
  background: var(--mt2-white);
  color: #060606;
  text-align: center;
  transition: opacity .35s ease, visibility .35s ease;
}
.mt2-loader.is-done { opacity: 0; visibility: hidden; }
.mt2-loader-brand, .mt2-drawer-brand, .mt2-brand { display: grid; line-height: .9; font-weight: 900; letter-spacing: 0; }
.mt2-loader-brand { font-size: 36px; }
.mt2-loader-brand span, .mt2-drawer-brand span, .mt2-brand span { color: var(--mt2-blue); }
.mt2-loader-brand strong, .mt2-drawer-brand strong, .mt2-brand strong { color: inherit; }
.mt2-loader-bars { display: flex; align-items: end; justify-content: center; gap: 8px; height: 70px; }
.mt2-loader-bars i { display: block; width: 28px; background: var(--mt2-blue); animation: mt2-load .85s ease-in-out infinite alternate; }
.mt2-loader-bars i:nth-child(1) { height: 42px; animation-delay: .15s; }
.mt2-loader-bars i:nth-child(2) { height: 68px; }
.mt2-loader-bars i:nth-child(3) { height: 28px; animation-delay: .3s; }
.mt2-loader p { margin: 0; color: #555; font-size: 12px; font-weight: 800; }
@keyframes mt2-load { to { transform: translateY(-7px); } }

.mt2-app { width: min(100%, 430px); min-height: 100dvh; margin: 0 auto; background: var(--mt2-bg); }
.mt2-header {
  position: fixed;
  z-index: 50;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  display: grid;
  grid-template-columns: 52px 1fr 100px;
  align-items: center;
  width: min(calc(100vw - 20px), 410px);
  height: 66px;
  padding: 7px;
  border: 1px solid var(--mt2-line);
  border-radius: 18px;
  background: #080808;
  transform: translateX(-50%);
}
.mt2-icon-button, .mt2-close, .mt2-sheet-head button {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--mt2-white);
  background: transparent;
}
.mt2-icon-button { gap: 5px; width: 52px; height: 52px; padding: 0; }
.mt2-icon-button span { display: block; width: 25px; height: 3px; border-radius: 10px; background: var(--mt2-white); }
.mt2-brand { justify-self: center; border: 0; padding: 0; background: transparent; color: var(--mt2-white); text-align: center; }
.mt2-brand span { font-size: 18px; }
.mt2-brand strong { font-size: 23px; }
.mt2-wallet { min-width: 94px; height: 48px; border: 0; border-radius: 14px; background: var(--mt2-white); color: #070707; font-size: 12px; font-weight: 900; }
.mt2-wallet.is-connected { background: var(--mt2-blue); color: #fff; }

.mt2-main { min-height: 100dvh; padding: calc(max(10px, env(safe-area-inset-top)) + 82px) 12px calc(max(16px, env(safe-area-inset-bottom)) + 88px); }
.mt2-page { animation: none; }
.mt2-page.is-entering { animation: mt2-page-in .26s ease both; }
@keyframes mt2-page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.mt2-eyebrow { margin: 0 0 5px; color: var(--mt2-blue); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.mt2-title { margin: 0; color: var(--mt2-white); font-size: 28px; line-height: 1.02; letter-spacing: 0; }
.mt2-copy { margin: 9px 0 0; color: var(--mt2-muted); font-size: 12px; line-height: 1.45; }
.mt2-section { margin-top: 18px; }
.mt2-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.mt2-section-head h2 { margin: 0; font-size: 17px; letter-spacing: 0; }
.mt2-section-head span { color: var(--mt2-muted); font-size: 11px; font-weight: 800; }
.mt2-panel, .mt2-card { border: 1px solid var(--mt2-line); border-radius: 16px; background: var(--mt2-panel); }
.mt2-card { padding: 14px; }
.mt2-card + .mt2-card { margin-top: 9px; }
.mt2-empty { padding: 34px 18px; border: 1px dashed var(--mt2-line); border-radius: 16px; color: var(--mt2-muted); text-align: center; font-size: 13px; font-weight: 700; line-height: 1.5; }

.mt2-hero-image { display: block; width: 100%; aspect-ratio: 1.3; border: 0; object-fit: contain; background: #090909; }
.mt2-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.mt2-stat { min-width: 0; padding: 7px 2px; text-align: center; }
.mt2-stat span { display: block; overflow: hidden; color: var(--mt2-muted); font-size: 8px; font-weight: 900; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.mt2-stat strong { display: block; margin-top: 5px; color: var(--mt2-white); font-size: 21px; line-height: 1; }
.mt2-stat strong.is-blue { color: var(--mt2-blue); }
.mt2-stage-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.mt2-stage { min-height: 56px; padding: 9px; border: 0; border-radius: 12px; background: var(--mt2-blue); color: #fff; text-align: left; }
.mt2-stage b, .mt2-stage small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt2-stage b { font-size: 12px; }
.mt2-stage small { margin-top: 5px; font-size: 9px; font-weight: 800; }

.mt2-match { padding: 14px; }
.mt2-match-top { display: grid; grid-template-columns: minmax(0, 1fr) 45px minmax(0, 1fr); align-items: center; gap: 9px; }
.mt2-team { min-width: 0; text-align: center; }
.mt2-team-logo { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 8px; overflow: hidden; border: 1px solid var(--mt2-line); border-radius: 50%; background: #090909; color: var(--mt2-white); font-size: 11px; font-weight: 900; }
.mt2-team-logo img { width: 100%; height: 100%; object-fit: cover; }
.mt2-team b { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.mt2-team small { display: block; margin-top: 4px; color: var(--mt2-muted); font-size: 10px; font-weight: 800; }
.mt2-versus { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--mt2-white); color: #080808; font-size: 12px; font-weight: 900; }
.mt2-meter { display: grid; grid-template-columns: var(--value, 50%) 1fr; height: 8px; margin: 14px 0 8px; overflow: hidden; border-radius: 8px; background: #2b2b2b; }
.mt2-meter i { background: var(--mt2-blue); }
.mt2-match-meta { display: flex; justify-content: space-between; color: var(--mt2-muted); font-size: 10px; font-weight: 800; }
.mt2-match-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mt2-primary, .mt2-secondary, .mt2-quiet, .mt2-small-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 12px; padding: 0 14px; font-size: 13px; font-weight: 900; text-decoration: none; transition: transform .16s ease, background-color .16s ease, color .16s ease; }
.mt2-primary { border: 0; background: var(--mt2-blue); color: #fff; }
.mt2-secondary { border: 0; background: var(--mt2-white); color: #050505; }
.mt2-quiet { border: 1px solid var(--mt2-line); background: var(--mt2-panel); color: var(--mt2-white); }
.mt2-small-btn { min-height: 36px; padding: 0 10px; border: 1px solid var(--mt2-line); background: transparent; color: var(--mt2-white); font-size: 11px; }
.mt2-primary:active, .mt2-secondary:active, .mt2-quiet:active, .mt2-small-btn:active { transform: scale(.97); }

.mt2-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; min-height: 48px; padding: 4px; border: 1px solid var(--mt2-line); border-radius: 14px; background: var(--mt2-panel); }
.mt2-tabs button { min-width: 0; border: 0; border-radius: 10px; background: transparent; color: var(--mt2-muted); font-size: 11px; font-weight: 900; white-space: nowrap; }
.mt2-tabs button.is-active { background: var(--mt2-white); color: #080808; }
.mt2-tier-tabs { overflow-x: auto; scrollbar-width: none; }
.mt2-tier-tabs::-webkit-scrollbar { display: none; }
.mt2-tier-tabs button { min-width: 86px; }
.mt2-bracket-list { display: grid; gap: 9px; margin-top: 12px; }
.mt2-bracket-card { padding: 13px; }
.mt2-bracket-card.is-active { border-color: rgba(22, 136, 248, .7); }
.mt2-bracket-head, .mt2-token-row, .mt2-list-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.mt2-bracket-head { margin-bottom: 10px; color: var(--mt2-muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.mt2-token-row + .mt2-token-row { margin-top: 9px; }
.mt2-token-row > span:first-child { display: flex; align-items: center; min-width: 0; gap: 9px; font-size: 13px; font-weight: 900; }
.mt2-token-row em { min-width: 26px; color: var(--mt2-muted); font-size: 11px; font-style: normal; text-align: right; }
.mt2-token-dot { width: 28px; height: 28px; overflow: hidden; border: 1px solid var(--mt2-line); border-radius: 50%; background: #090909; }
.mt2-token-dot img { width: 100%; height: 100%; object-fit: cover; }
.mt2-token-dot span { display: grid; width: 100%; height: 100%; place-items: center; font-size: 8px; font-weight: 900; }

.mt2-shop-card { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 13px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--mt2-line); }
.mt2-shop-card:last-child { border-bottom: 0; }
.mt2-shop-art { display: grid; place-items: center; width: 82px; height: 82px; border: 1px solid var(--mt2-line); border-radius: 14px; background: #090909; color: var(--mt2-blue); font-size: 30px; }
.mt2-shop-copy { min-width: 0; }
.mt2-shop-copy h3 { margin: 0; font-size: 17px; line-height: 1.1; }
.mt2-shop-copy p { margin: 6px 0 0; color: var(--mt2-muted); font-size: 11px; line-height: 1.4; }
.mt2-shop-copy strong { display: block; margin-top: 10px; color: var(--mt2-blue); font-size: 20px; }
.mt2-shop-action { grid-column: 1 / -1; width: 100%; }
.mt2-form { display: grid; gap: 9px; }
.mt2-field { display: grid; gap: 6px; color: var(--mt2-muted); font-size: 11px; font-weight: 800; }
.mt2-field input, .mt2-field textarea, .mt2-field select { width: 100%; border: 1px solid var(--mt2-line); border-radius: 12px; padding: 13px; outline: 0; background: #0b0b0b; color: var(--mt2-white); font-size: 14px; font-weight: 700; }
.mt2-field textarea { min-height: 110px; resize: vertical; }
.mt2-field input:focus, .mt2-field textarea:focus { border-color: var(--mt2-blue); }
.mt2-form-note { margin: 0; color: var(--mt2-muted); font-size: 10px; line-height: 1.45; }

.mt2-checkin { padding: 16px; }
.mt2-checkin-top { display: flex; align-items: center; gap: 12px; }
.mt2-progress-ring { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; border: 5px solid rgba(255,255,255,.16); border-radius: 50%; color: var(--mt2-white); font-size: 16px; font-weight: 900; }
.mt2-checkin-copy h2 { margin: 0; font-size: 24px; line-height: 1; }
.mt2-checkin-copy p { margin: 5px 0 0; color: var(--mt2-muted); font-size: 11px; font-weight: 700; }
.mt2-day-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 16px 0; }
.mt2-day { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--mt2-line); border-radius: 12px; background: #171717; color: var(--mt2-muted); font-size: 16px; font-weight: 900; }
.mt2-day.is-done { background: var(--mt2-blue); border-color: var(--mt2-blue); color: #fff; }
.mt2-day.is-today { border-color: var(--mt2-white); color: var(--mt2-white); }
.mt2-reward-list { display: grid; gap: 9px; }
.mt2-reward { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--mt2-line); }
.mt2-reward:last-child { border-bottom: 0; }
.mt2-reward b { display: block; font-size: 13px; }
.mt2-reward small { display: block; margin-top: 4px; color: var(--mt2-muted); font-size: 10px; }

.mt2-task { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 11px; padding: 13px; }
.mt2-task-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mt2-white); color: #050505; font-size: 19px; }
.mt2-task-copy h3 { margin: 0; font-size: 14px; line-height: 1.25; }
.mt2-task-copy p { margin: 5px 0 0; color: var(--mt2-muted); font-size: 10px; line-height: 1.4; }
.mt2-task-foot { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.mt2-reward-chip { display: inline-flex; align-items: center; min-height: 25px; border-radius: 20px; padding: 0 8px; background: var(--mt2-white); color: #050505; font-size: 10px; font-weight: 900; }

.mt2-roulette-stage { position: relative; height: 240px; margin: 12px 0; overflow: hidden; border: 1px solid var(--mt2-line); border-radius: 16px; background: #090909; }
.mt2-roulette-stage::after { position: absolute; z-index: 2; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--mt2-blue); content: ''; transform: translateX(-50%); }
.mt2-roulette-pointer { position: absolute; z-index: 3; top: 12px; left: 50%; width: 0; height: 0; border-right: 10px solid transparent; border-left: 10px solid transparent; border-top: 15px solid var(--mt2-blue); transform: translateX(-50%); }
.mt2-roulette-track { position: absolute; top: 53px; left: 50%; display: flex; gap: 10px; width: max-content; transform: translateX(-50%); transition: transform 3.8s cubic-bezier(.08,.75,.11,1); }
.mt2-roulette-track.is-spinning { transform: translateX(calc(-50% - 620px)); }
.mt2-prize { display: grid; place-items: center; width: 128px; height: 132px; padding: 12px; border: 1px solid var(--mt2-line); border-radius: 18px; background: var(--mt2-panel-strong); color: var(--mt2-white); text-align: center; }
.mt2-prize b { font-size: 18px; line-height: 1.05; }
.mt2-prize small { margin-top: 8px; color: var(--mt2-muted); font-size: 10px; font-weight: 800; }
.mt2-ticket-line { display: flex; align-items: center; justify-content: space-between; min-height: 45px; border-bottom: 1px solid var(--mt2-line); color: var(--mt2-muted); font-size: 13px; font-weight: 800; }
.mt2-ticket-line strong { color: var(--mt2-blue); font-size: 24px; }
.mt2-lottery { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 13px; }
.mt2-lottery-image { width: 42px; height: 42px; overflow: hidden; border: 1px solid var(--mt2-line); border-radius: 50%; background: #090909; }
.mt2-lottery-image img { width: 100%; height: 100%; object-fit: cover; }
.mt2-lottery h3 { margin: 0; font-size: 14px; }
.mt2-lottery p { margin: 4px 0 0; color: var(--mt2-muted); font-size: 10px; }
.mt2-lottery .mt2-small-btn { grid-column: 1 / -1; }

.mt2-forum-top { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 8px; align-items: center; }
.mt2-forum-top .mt2-tabs { grid-column: 1; }
.mt2-square { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--mt2-blue); color: #fff; font-size: 23px; font-weight: 700; }
.mt2-square.is-quiet { border: 1px solid var(--mt2-line); background: var(--mt2-panel); color: var(--mt2-white); font-size: 18px; }
.mt2-post { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--mt2-line); }
.mt2-post-logo { width: 42px; height: 42px; overflow: hidden; border: 1px solid var(--mt2-line); border-radius: 50%; background: #090909; }
.mt2-post-logo img { width: 100%; height: 100%; object-fit: cover; }
.mt2-post-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mt2-post-head b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mt2-post-head small { flex: 0 0 auto; color: var(--mt2-muted); font-size: 9px; }
.mt2-post-text { margin: 7px 0 0; color: var(--mt2-white); font-size: 12px; font-weight: 600; line-height: 1.48; overflow-wrap: anywhere; }
.mt2-post-text a { color: var(--mt2-blue); text-decoration: none; }
.mt2-post-media { display: block; width: 100%; max-height: 280px; margin-top: 9px; border: 1px solid var(--mt2-line); border-radius: 12px; object-fit: contain; background: #090909; }
.mt2-post-actions { display: flex; gap: 7px; margin-top: 10px; }
.mt2-post-actions a, .mt2-post-actions button { min-height: 34px; padding: 0 11px; border: 1px solid var(--mt2-line); border-radius: 10px; background: transparent; color: var(--mt2-white); font-size: 10px; font-weight: 900; text-decoration: none; }
.mt2-post-actions a { display: inline-flex; align-items: center; }
.mt2-token-profile { text-align: center; }
.mt2-token-profile .mt2-post-logo { width: 86px; height: 86px; margin: 0 auto 12px; }
.mt2-token-profile h2 { margin: 0; font-size: 23px; }
.mt2-token-profile p { margin: 9px 0 0; color: var(--mt2-muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.mt2-token-buttons { display: grid; gap: 8px; margin-top: 12px; }

.mt2-profile-top { display: grid; place-items: center; padding: 24px 16px 18px; text-align: center; }
.mt2-avatar { display: grid; place-items: center; width: 78px; height: 78px; overflow: hidden; border: 1px solid var(--mt2-line); border-radius: 50%; background: var(--mt2-blue); color: #fff; font-size: 28px; font-weight: 900; }
.mt2-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mt2-profile-top h1 { margin: 12px 0 0; font-size: 23px; }
.mt2-profile-top p { margin: 5px 0 0; color: var(--mt2-muted); font-size: 12px; }
.mt2-balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mt2-balance { min-height: 102px; padding: 14px; border: 1px solid var(--mt2-line); border-radius: 14px; background: var(--mt2-panel); }
.mt2-balance strong { display: block; overflow: hidden; color: var(--mt2-white); font-size: 28px; text-overflow: ellipsis; white-space: nowrap; }
.mt2-balance:nth-child(2) strong { color: var(--mt2-blue); }
.mt2-balance span { display: block; margin-top: 8px; color: var(--mt2-muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.mt2-bottom-nav { position: fixed; z-index: 45; bottom: max(9px, env(safe-area-inset-bottom)); left: 50%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; width: min(calc(100vw - 20px), 410px); min-height: 66px; padding: 6px; border: 1px solid var(--mt2-line); border-radius: 18px; background: #080808; transform: translateX(-50%); }
.mt2-bottom-nav button { display: grid; place-items: center; align-content: center; gap: 3px; min-width: 0; border: 0; border-radius: 12px; background: transparent; color: var(--mt2-muted); }
.mt2-bottom-nav button b { font-size: 21px; font-weight: 700; line-height: 1; }
.mt2-bottom-nav button span { overflow: hidden; max-width: 100%; font-size: 7px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.mt2-bottom-nav button.is-active { background: var(--mt2-white); color: #050505; }

.mt2-drawer { position: fixed; z-index: 90; inset: 0; pointer-events: none; }
.mt2-drawer.is-open { pointer-events: auto; }
.mt2-drawer-backdrop { position: absolute; inset: 0; opacity: 0; background: rgba(0,0,0,.72); transition: opacity .32s ease; }
.mt2-drawer-panel { position: relative; width: min(86vw, 340px); min-height: 100dvh; padding: calc(max(16px, env(safe-area-inset-top)) + 6px) 16px calc(max(16px, env(safe-area-inset-bottom)) + 18px); overflow-y: auto; border-right: 1px solid var(--mt2-line); border-radius: 0 22px 22px 0; background: #090909; transform: translateX(-103%); transition: transform .36s cubic-bezier(.2,.85,.25,1); }
.mt2-drawer.is-open .mt2-drawer-backdrop { opacity: 1; }
.mt2-drawer.is-open .mt2-drawer-panel { transform: translateX(0); }
.mt2-drawer-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 16px; }
.mt2-drawer-brand { color: var(--mt2-white); font-size: 25px; }
.mt2-close { width: 48px; height: 48px; border-radius: 50%; background: var(--mt2-white); color: #050505; font-size: 30px; line-height: 1; }
.mt2-drawer-nav { display: grid; gap: 8px; }
.mt2-drawer-nav > :is(button, a) { display: flex; align-items: center; min-height: 52px; gap: 12px; border: 0; border-radius: 13px; padding: 0 14px; background: #181818; color: var(--mt2-white); font-size: 13px; font-weight: 900; text-align: left; text-decoration: none; }
.mt2-drawer-nav > :is(button, a):active { background: var(--mt2-blue); }
.mt2-drawer-nav b { width: 20px; color: var(--mt2-white); font-size: 18px; text-align: center; }

.mt2-sheet { position: fixed; z-index: 100; inset: 0; pointer-events: none; }
.mt2-sheet.is-open { pointer-events: auto; }
.mt2-sheet-backdrop { position: absolute; inset: 0; opacity: 0; background: rgba(0,0,0,.72); transition: opacity .24s ease; }
.mt2-sheet-panel { position: absolute; right: 0; bottom: 0; left: 0; width: min(100%, 430px); max-height: min(78dvh, 720px); margin: 0 auto; padding: 8px 16px calc(max(16px, env(safe-area-inset-bottom)) + 14px); overflow-y: auto; border: 1px solid var(--mt2-line); border-bottom: 0; border-radius: 22px 22px 0 0; background: #101010; transform: translateY(104%); transition: transform .32s cubic-bezier(.2,.85,.25,1); }
.mt2-sheet.is-open .mt2-sheet-backdrop { opacity: 1; }
.mt2-sheet.is-open .mt2-sheet-panel { transform: translateY(0); }
.mt2-sheet-handle { width: 40px; height: 4px; margin: 1px auto 12px; border-radius: 3px; background: rgba(255,255,255,.3); }
.mt2-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mt2-sheet-head h2 { margin: 0; font-size: 20px; }
.mt2-sheet-head button { width: 38px; height: 38px; border-radius: 50%; background: var(--mt2-white); color: #050505; font-size: 25px; }
.mt2-toast { position: fixed; z-index: 150; right: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 88px); left: 16px; width: min(calc(100% - 32px), 398px); margin: auto; padding: 13px 15px; border: 1px solid var(--mt2-line); border-radius: 13px; background: var(--mt2-white); color: #050505; font-size: 12px; font-weight: 800; line-height: 1.4; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.mt2-toast.is-show { opacity: 1; transform: translateY(0); }
.mt2-toast.is-error { background: var(--mt2-danger); color: #fff; }

@media (min-width: 621px) {
  body.mt2-body { background: #0d0d0d; }
  .mt2-app { box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
}

@media (max-width: 360px) {
  .mt2-header { grid-template-columns: 48px 1fr 86px; }
  .mt2-wallet { min-width: 84px; font-size: 11px; }
  .mt2-brand span { font-size: 16px; }
  .mt2-brand strong { font-size: 20px; }
  .mt2-bottom-nav button span { display: none; }
}

/* Mobile shell v3: Telegram fullscreen, safe areas and animated controls. */
:root {
  --mt2-safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
  --mt2-safe-right: max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px), var(--tg-content-safe-area-inset-right, 0px));
  --mt2-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  --mt2-safe-left: max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px), var(--tg-content-safe-area-inset-left, 0px));
  --mt2-app-height: 100dvh;
}

html,
body.mt2-body { min-height: var(--mt2-app-height); overscroll-behavior-y: none; }
body.mt2-body { touch-action: pan-y; }
.mt2-app { width: min(100%, 430px); min-height: var(--mt2-app-height); }
.mt2-loader { min-height: var(--mt2-app-height); padding: var(--mt2-safe-top) var(--mt2-safe-right) var(--mt2-safe-bottom) var(--mt2-safe-left); }

.mt2-header {
  top: var(--mt2-safe-top);
  grid-template-columns: 48px minmax(0, 1fr) 96px;
  width: min(100%, 430px);
  height: 70px;
  padding: 8px max(10px, var(--mt2-safe-right)) 8px max(10px, var(--mt2-safe-left));
  border: 0;
  border-bottom: 1px solid var(--mt2-line);
  border-radius: 0;
  background: rgba(5, 5, 5, .98);
}
.mt2-icon-button { width: 48px; height: 48px; border-radius: 8px; }
.mt2-icon-button svg { width: 30px; height: 30px; stroke-width: 2.25; }
.mt2-brand span { font-size: 19px; }
.mt2-brand strong { font-size: 24px; }
.mt2-wallet { justify-self: end; min-width: 88px; height: 46px; border-radius: 8px; }
.mt2-main {
  min-height: var(--mt2-app-height);
  padding-top: calc(var(--mt2-safe-top) + 86px);
  padding-right: max(12px, var(--mt2-safe-right));
  padding-bottom: calc(var(--mt2-safe-bottom) + 92px);
  padding-left: max(12px, var(--mt2-safe-left));
}

svg.lucide { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
button:focus { outline: none; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: 2px solid var(--mt2-white); outline-offset: 2px; }

.mt2-panel,
.mt2-card,
.mt2-empty { border-radius: 8px; }
.mt2-primary,
.mt2-secondary,
.mt2-quiet,
.mt2-small-btn,
.mt2-stage,
.mt2-wallet,
.mt2-field input,
.mt2-field textarea,
.mt2-field select { border-radius: 8px; }
.mt2-primary,
.mt2-secondary,
.mt2-quiet,
.mt2-small-btn { gap: 7px; }

.mt2-tabs {
  --tab-count: 2;
  --tab-index: 0;
  position: relative;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
}
.mt2-tabs::before {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / var(--tab-count));
  border-radius: 6px;
  background: var(--mt2-white);
  content: '';
  transform: translateX(calc(var(--tab-index) * 100%));
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.mt2-tabs button { position: relative; z-index: 1; border-radius: 6px; transition: color .2s ease; }
.mt2-tabs button.is-active { background: transparent; color: #080808; }
.mt2-tier-tabs { overflow: hidden; }
.mt2-tier-tabs button { min-width: 0; }

.mt2-match-carousel { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mt2-match-carousel::-webkit-scrollbar { display: none; }
.mt2-match-carousel .mt2-match { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.mt2-carousel-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.mt2-carousel-arrow { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--mt2-line); border-radius: 50%; background: #0c0c0c; color: var(--mt2-white); }
.mt2-carousel-arrow:disabled { opacity: .3; }
.mt2-carousel-dots { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 48px; }
.mt2-carousel-dot { width: 6px; height: 6px; border: 0; border-radius: 50%; padding: 0; background: #4a4a4a; transition: width .25s ease, border-radius .25s ease, background-color .25s ease; }
.mt2-carousel-dot.is-active { width: 18px; border-radius: 8px; background: var(--mt2-blue); }

.mt2-market { padding: 14px; overflow: hidden; background: #0c0c0c; }
.mt2-market-head { display: flex; align-items: center; gap: 11px; }
.mt2-market-logo { display: grid; width: 50px; height: 50px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 8px; background: #080808 url('/assets/brand/memethrone-pepe.jpg') 72% 27% / 225% no-repeat; color: #fff; font-size: 17px; font-weight: 900; }
.mt2-market-logo img { width: 100%; height: 100%; object-fit: cover; }
.mt2-market-name { min-width: 0; flex: 1; }
.mt2-market-name h3 { margin: 0; font-size: 17px; }
.mt2-market-name p { margin: 4px 0 0; color: var(--mt2-muted); font-size: 10px; font-weight: 800; }
.mt2-market-price { text-align: right; }
.mt2-market-price strong,
.mt2-market-price small { display: block; }
.mt2-market-price strong { font-size: 16px; }
.mt2-market-price small { margin-top: 4px; color: var(--mt2-muted); font-size: 10px; font-weight: 900; }
.mt2-market-price small.is-positive { color: #5fd48f; }
.mt2-market-price small.is-negative { color: var(--mt2-danger); }
.mt2-market-chart { display: block; width: 100%; height: 112px; margin-top: 12px; overflow: visible; }
.mt2-market-chart path { vector-effect: non-scaling-stroke; }
.mt2-market-chart .mt2-chart-line { fill: none; stroke: var(--mt2-blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.mt2-market-chart .mt2-chart-fill { fill: rgba(22, 136, 248, .12); stroke: none; }
.mt2-market-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.mt2-market-stat { min-width: 0; padding: 10px 8px; border-radius: 6px; background: #151515; }
.mt2-market-stat span,
.mt2-market-stat strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt2-market-stat span { color: var(--mt2-muted); font-size: 8px; font-weight: 900; }
.mt2-market-stat strong { margin-top: 5px; font-size: 12px; }
.mt2-market-actions { display: grid; grid-template-columns: 1fr 46px; gap: 8px; margin-top: 11px; }
.mt2-market-actions .mt2-square { width: 46px; height: 46px; }
.mt2-shop-art svg { width: 31px; height: 31px; }
.mt2-task-icon svg { width: 22px; height: 22px; }
.mt2-square svg { width: 20px; height: 20px; }

.mt2-bottom-nav {
  --nav-index: 0;
  bottom: calc(var(--mt2-safe-bottom) + 8px);
  width: min(calc(100vw - var(--mt2-safe-left) - var(--mt2-safe-right) - 16px), 414px);
  min-height: 68px;
  overflow: hidden;
  border-radius: 16px;
  background: #050505;
}
.mt2-bottom-nav::before {
  position: absolute;
  z-index: 0;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 22px) / 6);
  border-radius: 12px;
  background: var(--mt2-white);
  content: '';
  transform: translateX(calc(var(--nav-index) * (100% + 2px)));
  transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.mt2-bottom-nav.is-context-route::before { opacity: 0; }
.mt2-bottom-nav button { position: relative; z-index: 1; border-radius: 10px; transition: color .2s ease; }
.mt2-bottom-nav button svg { width: 22px; height: 22px; }
.mt2-bottom-nav button.is-active { background: transparent; color: #050505; }

.mt2-drawer-panel {
  min-height: var(--mt2-app-height);
  padding-top: calc(var(--mt2-safe-top) + 12px);
  padding-right: max(16px, var(--mt2-safe-right));
  padding-bottom: calc(var(--mt2-safe-bottom) + 18px);
  padding-left: max(16px, var(--mt2-safe-left));
  border-radius: 0;
  transition-duration: .48s;
}
.mt2-drawer-backdrop { transition-duration: .42s; }
.mt2-close svg,
.mt2-sheet-head button svg { width: 22px; height: 22px; }
.mt2-drawer-nav > :is(button, a) { border-radius: 8px; }
.mt2-drawer-nav > :is(button, a).is-active { background: var(--mt2-blue); color: #fff; }
.mt2-drawer-nav svg { width: 20px; height: 20px; flex: 0 0 auto; }
.mt2-sheet-panel { max-height: calc(var(--mt2-app-height) - var(--mt2-safe-top) - 12px); padding-bottom: calc(var(--mt2-safe-bottom) + 14px); }
.mt2-toast { bottom: calc(var(--mt2-safe-bottom) + 88px); }

@media (max-width: 360px) {
  .mt2-header { grid-template-columns: 44px minmax(0, 1fr) 84px; }
  .mt2-icon-button { width: 44px; }
  .mt2-wallet { min-width: 80px; }
  .mt2-brand span { font-size: 16px; }
  .mt2-brand strong { font-size: 20px; }
  .mt2-market-stats { gap: 5px; }
  .mt2-market-stat { padding: 9px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .mt2-tabs::before,
  .mt2-bottom-nav::before,
  .mt2-drawer-panel,
  .mt2-drawer-backdrop { transition-duration: .01ms; }
  .mt2-match-carousel { scroll-behavior: auto; }
}

/* Mobile shell v4: roomier safe areas and a balanced phone-first layout. */
:root {
  --mt2-shell-top-gap: 14px;
  --mt2-shell-side-gap: 12px;
  --mt2-shell-bottom-gap: 12px;
  --mt2-header-height: 72px;
  --mt2-nav-height: 70px;
}

.mt2-header {
  top: calc(var(--mt2-safe-top) + var(--mt2-shell-top-gap));
  grid-template-columns: 92px minmax(0, 1fr) 92px;
  width: min(calc(100vw - var(--mt2-safe-left) - var(--mt2-safe-right) - (var(--mt2-shell-side-gap) * 2)), 406px);
  height: var(--mt2-header-height);
  padding: 8px;
  border: 1px solid var(--mt2-line);
  border-radius: 16px;
  background: #070707;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}
.mt2-icon-button { justify-self: start; }
.mt2-brand { min-width: 0; }
.mt2-wallet { width: 88px; min-width: 0; }

.mt2-main {
  padding-top: calc(var(--mt2-safe-top) + var(--mt2-shell-top-gap) + var(--mt2-header-height) + 18px);
  padding-right: max(14px, calc(var(--mt2-safe-right) + 10px));
  padding-bottom: calc(var(--mt2-safe-bottom) + var(--mt2-shell-bottom-gap) + var(--mt2-nav-height) + 20px);
  padding-left: max(14px, calc(var(--mt2-safe-left) + 10px));
}

.mt2-title { font-size: 29px; line-height: 1.04; }
.mt2-copy { margin-top: 7px; font-size: 12px; line-height: 1.5; }
.mt2-section { margin-top: 22px; }
.mt2-section-head { margin-bottom: 12px; }
.mt2-panel,
.mt2-card { border-color: rgba(255, 255, 255, .13); background: #0e0e0e; }

.mt2-primary,
.mt2-secondary,
.mt2-quiet,
.mt2-small-btn,
.mt2-square,
.mt2-carousel-arrow,
.mt2-icon-button,
.mt2-wallet,
.mt2-bottom-nav button {
  touch-action: manipulation;
  transition: transform .16s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.mt2-square:active,
.mt2-carousel-arrow:active,
.mt2-icon-button:active,
.mt2-wallet:active,
.mt2-bottom-nav button:active { transform: scale(.95); }

.mt2-bottom-nav {
  bottom: calc(var(--mt2-safe-bottom) + var(--mt2-shell-bottom-gap));
  width: min(calc(100vw - var(--mt2-safe-left) - var(--mt2-safe-right) - (var(--mt2-shell-side-gap) * 2)), 406px);
  min-height: var(--mt2-nav-height);
  padding: 7px;
  border-radius: 18px;
  background: #070707;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .24);
}
.mt2-bottom-nav::before { top: 7px; bottom: 7px; left: 7px; }
.mt2-bottom-nav button { min-height: 54px; }
.mt2-bottom-nav button span { font-size: 8px; }
.mt2-bottom-nav button svg { transition: transform .2s ease; }
.mt2-bottom-nav button.is-active svg { transform: scale(1.06); }

.mt2-drawer-panel {
  padding-top: calc(var(--mt2-safe-top) + var(--mt2-shell-top-gap) + 6px);
  padding-right: max(18px, calc(var(--mt2-safe-right) + 12px));
  padding-bottom: calc(var(--mt2-safe-bottom) + 24px);
  padding-left: max(18px, calc(var(--mt2-safe-left) + 12px));
}
.mt2-sheet-panel {
  max-height: calc(var(--mt2-app-height) - var(--mt2-safe-top) - var(--mt2-shell-top-gap));
  padding-right: max(16px, calc(var(--mt2-safe-right) + 10px));
  padding-bottom: calc(var(--mt2-safe-bottom) + 20px);
  padding-left: max(16px, calc(var(--mt2-safe-left) + 10px));
}
.mt2-toast { bottom: calc(var(--mt2-safe-bottom) + var(--mt2-shell-bottom-gap) + var(--mt2-nav-height) + 12px); }

.mt2-tabs { min-height: 50px; }
.mt2-tabs button { font-size: 11px; }
.mt2-carousel-nav { margin-top: 12px; }
.mt2-carousel-arrow { width: 40px; height: 40px; }

.mt2-roulette-stage {
  height: 224px;
  margin: 14px 0 12px;
  border-radius: 8px;
}
.mt2-roulette-track { top: 47px; }
.mt2-prize { width: 126px; height: 126px; border-radius: 8px; }
.mt2-roulette-spin { width: 100%; min-height: 50px; }

@media (max-width: 360px) {
  :root { --mt2-shell-side-gap: 10px; }
  .mt2-header { grid-template-columns: 80px minmax(0, 1fr) 80px; }
  .mt2-wallet { width: 80px; font-size: 10px; }
  .mt2-brand span { font-size: 16px; }
  .mt2-brand strong { font-size: 20px; }
  .mt2-main {
    padding-right: max(12px, calc(var(--mt2-safe-right) + 8px));
    padding-left: max(12px, calc(var(--mt2-safe-left) + 8px));
  }
  .mt2-title { font-size: 27px; }
  .mt2-bottom-nav button span { font-size: 7px; }
}

/* Mobile shell v5: seamless hero and borderless surfaces. */
:root { --mt2-bg: #000; }

html,
body.mt2-body,
.mt2-app,
.mt2-main { background: #000; }

body.mt2-body::before {
  position: fixed;
  z-index: 49;
  top: 0;
  right: 0;
  left: 0;
  height: calc(var(--mt2-safe-top) + var(--mt2-shell-top-gap));
  background: #000;
  content: '';
  pointer-events: none;
}

.mt2-header,
.mt2-bottom-nav {
  border: 0;
  background: #000;
  box-shadow: none;
}

.mt2-hero-image { background: #000; }

.mt2-panel,
.mt2-card,
.mt2-empty,
.mt2-tabs,
.mt2-roulette-stage,
.mt2-prize,
.mt2-shop-art,
.mt2-day,
.mt2-token-dot,
.mt2-lottery-image,
.mt2-post-logo,
.mt2-post-media,
.mt2-carousel-arrow,
.mt2-quiet,
.mt2-small-btn,
.mt2-square.is-quiet,
.mt2-field input,
.mt2-field textarea,
.mt2-field select,
.mt2-post-actions a,
.mt2-post-actions button,
.mt2-drawer-panel,
.mt2-sheet-panel { border: 0; }

.mt2-field input:focus,
.mt2-field textarea:focus,
.mt2-field select:focus {
  outline: 2px solid var(--mt2-blue);
  outline-offset: 1px;
}

/* Mobile shell v6: restored podium loader from the previous production UI. */
.mt2-loader {
  --loader-progress: 0%;
  --loader-throne-clip: 100%;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: minmax(92px, .72fr) auto minmax(26px, .08fr) auto minmax(96px, 1fr);
  place-content: normal;
  align-content: stretch;
  justify-content: stretch;
  justify-items: center;
  align-items: center;
  gap: 0;
  width: 100vw;
  height: var(--mt2-app-height, 100dvh);
  min-height: 100dvh;
  padding: calc(var(--mt2-safe-top) + 30px) 20px calc(var(--mt2-safe-bottom) + 30px);
  overflow: hidden;
  contain: layout paint style;
  background: #fff;
  color: #050607;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition: none;
}

.mt2-loader.is-done {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  animation: mt2-loader-curtain-up .96s cubic-bezier(.22, .76, .18, 1) forwards;
}

.mt2-loader-brand {
  position: relative;
  z-index: 6;
  grid-row: 2;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
  width: min(82vw, 340px);
  margin: 0 0 20px;
  padding: 0;
  line-height: 1;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(.965);
  animation: mt2-loader-logo-in .7s cubic-bezier(.2, .9, .2, 1) 1.86s forwards;
}

.mt2-loader-brand span,
.mt2-loader-brand strong {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}
.mt2-loader-brand span { color: #0a84ff; font-size: clamp(42px, 13vw, 62px); line-height: .84; }
.mt2-loader-brand strong {
  position: relative;
  color: #050607;
  font-size: clamp(52px, 16vw, 78px);
  line-height: .84;
  isolation: isolate;
}
.mt2-loader-brand strong::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  color: #fff;
  content: attr(data-loader-throne);
  clip-path: inset(var(--loader-throne-clip) 0 0 0);
  pointer-events: none;
  transition: clip-path 70ms linear;
}

.mt2-loader-podium {
  position: relative;
  z-index: 4;
  grid-row: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 3vw, 16px);
  width: min(82vw, 326px);
  height: min(38dvh, 296px);
  min-height: 238px;
}
.mt2-loader-column {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  width: clamp(60px, 17vw, 78px);
  overflow: hidden;
  border-radius: 25px 25px 10px 10px;
  background: #0a84ff;
  color: #fff;
  opacity: 0;
  transform: translate3d(0, 50px, 0) scaleY(.025);
  transform-origin: 50% 100%;
  animation: mt2-loader-column-rise .82s cubic-bezier(.18, .9, .18, 1) forwards;
}
.mt2-loader-column b {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font: 900 19px/1 Montserrat, Arial, sans-serif;
}
.mt2-loader-column-2 { height: 156px; animation-delay: .22s; }
.mt2-loader-column-1 { height: 226px; animation-delay: .72s; }
.mt2-loader-column-3 { height: 114px; animation-delay: 1.22s; }

.mt2-loader-wave {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  height: var(--loader-progress);
  overflow: visible;
  background: #000;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: height 28ms linear, opacity .16s ease;
  will-change: height;
}
.mt2-loader[data-loader-phase="wave"] .mt2-loader-wave,
.mt2-loader[data-loader-phase="complete"] .mt2-loader-wave,
.mt2-loader[data-loader-phase="reveal"] .mt2-loader-wave { opacity: 1; }
.mt2-loader-wave::before {
  position: absolute;
  top: -80px;
  left: -8vw;
  display: block;
  width: 116vw;
  height: 120px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 80 C300 10 900 10 1200 80 V120 H0 Z'/%3E%3C/svg%3E") 50% 100% / 100% 100% no-repeat;
  content: '';
  pointer-events: none;
}

.mt2-loader-percent {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: calc(var(--mt2-safe-bottom) + 26px);
  left: 0;
  display: block;
  margin: 0;
  color: #fff;
  font: 900 20px/1 Montserrat, Arial, sans-serif;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .18s ease, transform .18s ease;
}
.mt2-loader[data-loader-phase="wave"] .mt2-loader-percent,
.mt2-loader[data-loader-phase="complete"] .mt2-loader-percent,
.mt2-loader[data-loader-phase="reveal"] .mt2-loader-percent { opacity: 1; transform: translate3d(0, 0, 0); }

body.mt2-body.is-app-revealing .mt2-header,
body.mt2-body.is-app-revealing .mt2-main,
body.mt2-body.is-app-revealing .mt2-bottom-nav {
  animation: mt2-app-rise .9s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes mt2-loader-column-rise {
  0% { opacity: 0; transform: translate3d(0, 50px, 0) scaleY(.025); }
  64% { opacity: 1; transform: translate3d(0, -5px, 0) scaleY(1.025); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scaleY(1); }
}
@keyframes mt2-loader-logo-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.965); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes mt2-loader-curtain-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -104%, 0); }
}
@keyframes mt2-app-rise {
  from { opacity: .96; transform: translate3d(0, 34px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 370px) {
  .mt2-loader { grid-template-rows: minmax(82px, .62fr) auto minmax(18px, .06fr) auto minmax(82px, 1fr); }
  .mt2-loader-podium { width: min(86vw, 300px); min-height: 216px; }
  .mt2-loader-column-2 { height: 142px; }
  .mt2-loader-column-1 { height: 204px; }
  .mt2-loader-column-3 { height: 104px; }
  .mt2-loader-brand span { font-size: clamp(38px, 12vw, 52px); }
  .mt2-loader-brand strong { font-size: clamp(46px, 15vw, 66px); }
}

@media (prefers-reduced-motion: reduce) {
  .mt2-loader-brand,
  .mt2-loader-column,
  .mt2-loader.is-done,
  body.mt2-body.is-app-revealing .mt2-header,
  body.mt2-body.is-app-revealing .mt2-main,
  body.mt2-body.is-app-revealing .mt2-bottom-nav {
    animation-duration: .01ms;
    animation-delay: 0s;
  }
  .mt2-loader-wave,
  .mt2-loader-brand strong::after,
  .mt2-loader-percent { transition-duration: .01ms; }
}

/* Mobile shell v7: bottom navigation is flush with the viewport edge. */
.mt2-bottom-nav {
  bottom: 0;
  width: min(100vw, 430px);
  min-height: calc(var(--mt2-nav-height) + var(--mt2-safe-bottom));
  padding-top: 7px;
  padding-right: max(10px, calc(var(--mt2-safe-right) + 8px));
  padding-bottom: calc(7px + var(--mt2-safe-bottom));
  padding-left: max(10px, calc(var(--mt2-safe-left) + 8px));
  border-radius: 18px 18px 0 0;
}
.mt2-bottom-nav::before {
  top: 7px;
  bottom: calc(7px + var(--mt2-safe-bottom));
  left: max(10px, calc(var(--mt2-safe-left) + 8px));
  width: calc((100% - max(20px, calc(var(--mt2-safe-left) + var(--mt2-safe-right) + 16px)) - 10px) / 6);
}
.mt2-main {
  padding-bottom: calc(var(--mt2-safe-bottom) + var(--mt2-nav-height) + 20px);
}
.mt2-toast { bottom: calc(var(--mt2-safe-bottom) + var(--mt2-nav-height) + 12px); }
