/* Flickshot FC meta layer (meta.js): the Home dock, the Daily sheet (rewards, missions, trophies, spin),
   reward popups, flying coins and toasts. Uses the tokens from style.css (--gold-*, --font-display ...). */

/* ---------- Home dock: four round buttons just above the mode cards ---------- */
.mt-dock { position: relative; z-index: 3; flex: 0 0 auto; margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; animation: fadeUp 0.45s var(--ease-out) both; }
.mt-dock + .home-modes { margin-top: 0; padding-top: 12px; }
.mt-dock-side { display: flex; gap: 8px; pointer-events: auto; }
.mt-db {
  position: relative; width: 62px; height: 68px; min-height: 0; padding: 5px 0 6px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  border-radius: 18px; color: #fff; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.2), transparent 62%), linear-gradient(180deg, #243462 0%, #121b36 60%, #0b1124 100%);
  border: 1.5px solid rgba(255, 200, 61, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 0 #03050b, 0 10px 20px rgba(0, 0, 0, 0.55);
  font: 800 10.5px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
}
.mt-db:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 0 #03050b; }
.mt-db-ic { width: 38px; height: 38px; display: grid; place-items: center; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }
.mt-db-ic svg { width: 36px; height: 36px; display: block; }
.mt-db-l { white-space: nowrap; color: var(--gold-200); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
.mt-db.hot { border-color: var(--gold-300); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 0 #03050b, 0 0 0 3px rgba(255, 200, 61, 0.18), 0 0 20px rgba(255, 200, 61, 0.45); }
.mt-db.hot .mt-db-ic { animation: mtWiggle 2.4s ease-in-out infinite; }
.mt-badge {
  position: absolute; top: -7px; right: -7px; z-index: 2; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  font: 800 12px/1 var(--font-display); font-style: normal; letter-spacing: 0.02em; color: #fff; background: #ef4444;
  box-shadow: 0 0 0 2px #0b1124, 0 0 10px rgba(239, 68, 68, 0.7); animation: mtPulse 1.6s ease-in-out infinite;
}

/* ---------- the sheet ---------- */
.sheet.mt-sheet { position: relative; display: flex; flex-direction: column; height: 92%; max-height: 92%; padding: 8px 0 0; overflow: hidden; }
.mt-grab { flex: 0 0 auto; width: 44px; height: 5px; margin: 0 auto 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); }
.mt-head { flex: 0 0 auto; gap: 8px; padding: 0 14px; margin-bottom: 10px; }
.mt-head h3 { flex: 1 1 auto; min-width: 0; }
.mt-head .sheet-x svg { width: 20px; height: 20px; }
.mt-coins {
  position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; height: 32px; margin-left: 12px; padding: 0 11px 0 24px; border-radius: 999px;
  background: linear-gradient(180deg, #1c2745, #0d1428); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 10px rgba(0, 0, 0, 0.4);
  font: 800 17px/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mt-coins .mt-coins-ic { position: absolute; left: -12px; top: 50%; width: 34px; height: 34px; object-fit: contain; transform: translateY(-50%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }
.mt-bump { animation: mtBump 0.45s var(--ease-pop); }

.mt-tabs { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.mt-tab {
  position: relative; min-width: 0; min-height: 56px; padding: 5px 2px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 14px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); box-shadow: none;
  font: 800 12.5px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase;
}
.mt-tab:active { transform: scale(0.96); box-shadow: none; }
.mt-tab-ic { width: 26px; height: 26px; display: grid; place-items: center; }
.mt-tab-ic svg { width: 26px; height: 26px; display: block; }
.mt-tab.on { color: var(--gold-ink); background: linear-gradient(180deg, #ffe58a 0%, #f7b800 60%, #e39c00 100%); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 3px 0 #9a6a00; }
.mt-tab .mt-badge { top: -6px; right: -4px; animation: none; }

.mt-dev { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(214, 0, 122, 0.12); border-bottom: 1px solid rgba(214, 0, 122, 0.4); overflow-x: auto; scrollbar-width: none; }
.mt-dev span { font: 800 11px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: #f7a8d8; }
.mt-dev button { flex: 0 0 auto; min-height: 34px; padding: 0 10px; border-radius: 10px; color: #fff; background: #2a1636; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: none; font: 700 12px/1 var(--font-ui); white-space: nowrap; }

.mt-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; padding: 12px 14px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
.mt-body::-webkit-scrollbar { width: 0; height: 0; }
.mt-body > * { flex: 0 0 auto; }
.mt-sec { margin: 8px 2px 0; font: 800 12px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.mt-sec.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mt-sec.row > span:first-child { color: var(--gold-300); font-size: 15px; letter-spacing: 0.1em; }
.mt-cd { display: inline-flex; align-items: center; gap: 4px; font: 700 12px/1 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--text-3); white-space: nowrap; }
.mt-cd svg { width: 14px; height: 14px; }
.mt-cd b { color: var(--text); font-variant-numeric: tabular-nums; }
.mt-foot { margin-top: 4px; padding: 0 4px; font-size: 12px; line-height: 1.4; color: var(--text-3); text-align: center; }
button.mt-big { width: 100%; min-height: 54px; font: 800 italic 20px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
button.mt-big:disabled { filter: grayscale(0.85) brightness(0.6); }

/* progress bars + reward chips */
.mt-bar { display: block; position: relative; height: 9px; margin-top: 6px; border-radius: 999px; overflow: hidden; background: #070b16; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07); }
.mt-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10b981, #6ee7b7); box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); transition: width 0.5s var(--ease-out); }
.mt-bar.gold i { background: linear-gradient(90deg, #f2b100, #ffe08a); box-shadow: 0 0 8px rgba(255, 200, 61, 0.55); }
.mt-rws { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.mt-rw { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 7px 0 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.1); font: 800 13px/1 var(--font-display); color: var(--gold-200); white-space: nowrap; }
.mt-rw img, .mt-rw svg { width: 19px; height: 19px; object-fit: contain; display: block; }
.mt-got { display: inline-flex; align-items: center; gap: 3px; font: 800 13px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--em-300); }
.mt-got svg { width: 16px; height: 16px; }
button.mt-claim { min-height: 44px; padding: 0 16px; font: 800 italic 17px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; animation: mtPulseBtn 1.4s ease-in-out infinite; }

/* ---------- Rewards: streak, calendar, extras, Star signing ---------- */
.mt-streak { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: radial-gradient(90% 120% at 0% 50%, rgba(255, 106, 19, 0.28), transparent 60%), linear-gradient(180deg, #1c2745, #111a30); border: 1px solid rgba(255, 150, 60, 0.4); }
.mt-streak.cold { background: linear-gradient(180deg, #1c2745, #111a30); border-color: var(--line-2); }
.mt-streak.cold .mt-flame svg { filter: grayscale(1) brightness(0.8); }
.mt-flame { position: relative; flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; }
.mt-flame svg { width: 50px; height: 50px; filter: drop-shadow(0 0 8px rgba(255, 106, 19, 0.6)); animation: mtFlicker 1.8s ease-in-out infinite; transform-origin: 50% 90%; }
.mt-flame b { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font: 800 18px/1 var(--font-display); color: #fff; text-shadow: 0 1px 0 #7a2400, 0 0 6px rgba(0, 0, 0, 0.6); }
.mt-st-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mt-st-txt b { font: 800 italic 21px/1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; color: #fff; }
.mt-st-txt small { font: 600 12px/1.25 var(--font-ui); color: var(--text-2); }
.mt-st-cd { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font: 700 10.5px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.mt-st-cd b { font: 800 16px/1 var(--font-display); letter-spacing: 0.02em; color: var(--gold-300); font-variant-numeric: tabular-nums; }

.mt-cal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.mt-day {
  position: relative; min-width: 0; min-height: 104px; padding: 7px 3px 8px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 3px;
  border-radius: 16px; text-align: center; background: linear-gradient(180deg, #1f2b4f, #121a31); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 0 rgba(0, 0, 0, 0.35);
}
.mt-day-k { font: 800 11px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.mt-day-ic { flex: 0 0 auto; width: 44px; height: 44px; display: block; text-align: center; }
.mt-day-ic > img, .mt-day-ic > svg { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
.mt-day-v { display: flex; flex-direction: column; gap: 2px; font: 800 14px/1.05 var(--font-display); letter-spacing: 0.02em; color: var(--gold-200); }
.mt-day-v small { font: 600 10.5px/1.1 var(--font-ui); color: var(--text-3); letter-spacing: 0; }
.mt-day.d7 { grid-column: span 2; flex-direction: row; justify-content: center; gap: 10px; padding: 8px 10px; background: radial-gradient(90% 90% at 30% 50%, rgba(255, 213, 79, 0.28), transparent 65%), linear-gradient(160deg, #4c1d95, #2a0f5c 70%); border-color: rgba(255, 213, 79, 0.55); }
.mt-day.d7 .mt-day-k { position: absolute; top: 7px; left: 0; right: 0; color: var(--gold-300); }
.mt-day.d7 .mt-day-ic { width: 60px; height: 72px; margin-top: 10px; }
.mt-day.d7 .mt-day-v { margin-top: 12px; text-align: left; font-size: 17px; text-transform: uppercase; }
.mt-starcard { position: relative; display: inline-block; height: 100%; vertical-align: top; }
.mt-starcard > img:first-child { display: block; height: 100%; width: auto; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5)); }
.mt-starcard > img.mt-starcard-s { position: absolute; left: 22%; top: 50%; width: 56%; height: auto; margin-top: -28%; animation: mtBob 1.6s ease-in-out infinite; }
.mt-day.done { opacity: 0.55; }
.mt-day.done .mt-day-ic { filter: grayscale(0.4); }
.mt-day-done { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; display: grid; place-items: center; color: #04170f; background: var(--em-400); box-shadow: 0 0 0 3px rgba(5, 8, 15, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5); }
.mt-day-done svg { width: 20px; height: 20px; }
.mt-day.d7 .mt-day-done { left: 22%; top: 58%; }
.mt-day.today { cursor: pointer; border: 2px solid var(--gold-300); background: radial-gradient(90% 70% at 50% 35%, rgba(255, 213, 79, 0.35), transparent 70%), linear-gradient(180deg, #2a3766, #151f3d); animation: mtGlow 1.4s ease-in-out infinite; }
.mt-day.today .mt-day-ic { animation: mtBob 1.2s ease-in-out infinite; }
.mt-day.d7.today { background: radial-gradient(90% 90% at 30% 50%, rgba(255, 213, 79, 0.45), transparent 65%), linear-gradient(160deg, #5b21b6, #2a0f5c 70%); }
.mt-day-tap { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 999px; font: 800 10px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.mt-day-tap.nx { color: var(--text); background: #2a3350; }
.mt-cal + .mt-big { margin-top: 6px; }

.mt-xlist { display: flex; flex-direction: column; gap: 8px; }
.mt-x { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); }
.mt-x-ic, .mt-x > img { flex: 0 0 auto; width: 38px; height: 38px; object-fit: contain; display: grid; place-items: center; }
.mt-x-ic svg { width: 36px; height: 36px; }
.mt-x-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mt-x-t b { font: 800 16px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.mt-x-t small { font: 500 12px/1.3 var(--font-ui); color: var(--text-2); }
.mt-x button { flex: 0 0 auto; min-height: 42px; }
.mt-x.bank { border-color: rgba(255, 200, 61, 0.4); background: rgba(255, 200, 61, 0.07); }

.mt-offer { padding: 10px; border-radius: 18px; background: radial-gradient(90% 60% at 50% 0%, rgba(255, 213, 79, 0.25), transparent 70%), linear-gradient(180deg, #2a1f55, #151028); border: 1.5px solid rgba(255, 213, 79, 0.6); box-shadow: 0 0 24px rgba(255, 200, 61, 0.2); animation: fadeUp 0.4s var(--ease-out) both; }
.mt-offer-k { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mt-offer-k b { display: block; font: 800 italic 22px/1 var(--font-display); text-transform: uppercase; color: var(--gold-300); }
.mt-offer-k small { font: 500 12px/1.3 var(--font-ui); color: var(--text-2); }
.mt-offer-ic { width: 40px; height: 40px; object-fit: contain; }
.mt-offer-card .pcard { margin: 0; }
.mt-offer-why { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.45); color: #ffd6d2; font-size: 12.5px; line-height: 1.35; }
.mt-offer-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mt-offer-btns button { min-height: 50px; padding: 8px 6px; font-size: 15px; }

/* ---------- Missions ---------- */
.mt-mlist { display: flex; flex-direction: column; gap: 8px; }
.mt-mis { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 9px 10px; border-radius: 16px; background: linear-gradient(180deg, #1c2745, #121a30); border: 1px solid var(--line-2); }
.mt-mis-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.1); }
.mt-mis-ic > img, .mt-mis-ic > svg { display: block; width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.mt-mis-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.mt-mis-main b { font: 700 14px/1.2 var(--font-ui); color: var(--text); }
.mt-mis-main small { margin-top: 4px; font: 700 11.5px/1 var(--font-ui); color: var(--text-3); font-variant-numeric: tabular-nums; }
.mt-mis-side { flex: 0 0 auto; max-width: 104px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.mt-mis.ready { border-color: rgba(255, 200, 61, 0.7); background: radial-gradient(80% 90% at 100% 50%, rgba(255, 200, 61, 0.18), transparent 70%), linear-gradient(180deg, #232f55, #141d38); }
.mt-mis.ready .mt-bar i { background: linear-gradient(90deg, #f2b100, #ffe08a); }
.mt-mis.claimed { opacity: 0.6; }
.mt-mis.claimed .mt-rws { display: none; }
.mt-mis.claimed .mt-mis-main b { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.35); }

.mt-chestrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 6px; border-radius: 18px; background: linear-gradient(180deg, #2a2140, #16122a); border: 1px dashed rgba(255, 200, 61, 0.35); }
.mt-chestrow.weekly { background: linear-gradient(160deg, #35196e, #1a0d3b); }
.mt-chestrow.ready { border: 2px solid var(--gold-300); animation: mtGlow 1.4s ease-in-out infinite; }
.mt-chestrow.ready .mt-chest { animation: mtShakeIdle 2s ease-in-out infinite; }
.mt-chestrow.opened { opacity: 0.6; border-style: solid; }
.mt-chestrow-art { flex: 0 0 auto; width: 70px; height: 62px; display: grid; place-items: center; }
.mt-chestrow-art .mt-chest { width: 70px; height: 62px; }
.mt-chestrow-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mt-chestrow-main b { font: 800 italic 19px/1 var(--font-display); text-transform: uppercase; color: var(--gold-300); letter-spacing: 0.03em; }
.mt-chestrow-main small { font: 500 12px/1.3 var(--font-ui); color: var(--text-2); }
.mt-chestrow-side { flex: 0 0 auto; max-width: 110px; display: flex; flex-direction: column; align-items: flex-end; }
.mt-pips { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.mt-pips i { width: 14px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.mt-pips i.on { background: var(--gold-400); box-shadow: 0 0 6px rgba(255, 200, 61, 0.6); }
.mt-pips em { margin-left: 4px; font: 800 12px/1 var(--font-display); font-style: normal; color: var(--text-3); }

/* ---------- Trophy Cabinet ---------- */
.mt-cab { padding: 12px 12px 12px; border-radius: 20px; background: radial-gradient(100% 70% at 50% 0%, rgba(255, 200, 61, 0.2), transparent 70%), linear-gradient(180deg, #2a2140, #151028); border: 1px solid rgba(255, 200, 61, 0.35); }
.mt-cab-shelf { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding-bottom: 8px; }
.mt-cab-shelf::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 8px; border-radius: 4px; background: linear-gradient(180deg, #8a5a2b, #4a2b10); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); }
.mt-cab-c { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mt-cab-c svg { width: 52px; height: 52px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.mt-cab-c.big svg { width: 72px; height: 72px; }
.mt-cab-c b { font: 800 22px/1 var(--font-display); color: #fff; }
.mt-cab-c small { font: 800 10px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.mt-cab-sum { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; font: 800 13px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.mt-cab-sum b { font-size: 18px; color: var(--gold-300); letter-spacing: 0.02em; }
.mt-cab .mt-big { margin-top: 10px; }
.mt-alist { display: flex; flex-direction: column; gap: 8px; }
.mt-ach { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 9px 10px 9px 8px; border-radius: 16px; background: linear-gradient(180deg, #1c2745, #121a30); border: 1px solid var(--line-2); }
.mt-ach.ready { border-color: rgba(255, 200, 61, 0.7); background: radial-gradient(80% 90% at 100% 50%, rgba(255, 200, 61, 0.18), transparent 70%), linear-gradient(180deg, #232f55, #141d38); }
.mt-ach.max { background: linear-gradient(180deg, #2b2610, #17140a); border-color: rgba(255, 200, 61, 0.35); }
.mt-ach-cup { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; }
.mt-ach-cup svg { width: 48px; height: 48px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
.mt-ach-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.mt-ach-main b { font: 800 16px/1.05 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.mt-ach-main small { margin-top: 2px; font: 500 12px/1.2 var(--font-ui); color: var(--text-2); }
.mt-ach-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; font: 700 11.5px/1.1 var(--font-ui); color: var(--text-3); font-variant-numeric: tabular-nums; }
.mt-tiers { flex: 0 0 auto; display: inline-flex; gap: 3px; }
.mt-tiers i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.mt-tiers i.reached { box-shadow: inset 0 0 0 2px var(--gold-400); }
.mt-tiers i.on.bronze { background: #d38a4f; } .mt-tiers i.on.silver { background: #d9e0ec; } .mt-tiers i.on.gold { background: var(--gold-400); box-shadow: 0 0 6px rgba(255, 200, 61, 0.7); }
.mt-ach-side { flex: 0 0 auto; max-width: 104px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.mt-max { padding: 5px 9px; border-radius: 999px; font: 800 12px/1 var(--font-display); letter-spacing: 0.12em; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); }
.mt-cup-lock { opacity: 0.9; }

/* ---------- Lucky spin ---------- */
.mt-spin { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.mt-wheel-wrap { position: relative; width: min(300px, 76vw); height: min(300px, 76vw); margin: 16px auto 0; border-radius: 50%; box-shadow: 0 0 0 6px rgba(5, 8, 15, 0.9), 0 0 0 8px rgba(255, 200, 61, 0.35), 0 18px 40px rgba(0, 0, 0, 0.6); }
.mt-wheel-wrap.can { box-shadow: 0 0 0 6px rgba(5, 8, 15, 0.9), 0 0 0 8px rgba(255, 200, 61, 0.55), 0 0 40px rgba(255, 200, 61, 0.35), 0 18px 40px rgba(0, 0, 0, 0.6); }
.mt-wheel { position: absolute; inset: 0; border-radius: 50%; will-change: transform; }
.mt-wheel svg { width: 100%; height: 100%; display: block; }
.mt-wt { font: 800 12.5px/1 var(--font-display); fill: #fff; letter-spacing: 0.04em; paint-order: stroke; stroke: rgba(0, 0, 0, 0.5); stroke-width: 2.6px; }
.mt-wt.jack { fill: #3b1d00; stroke: rgba(255, 255, 255, 0.55); font-size: 11.5px; }
.mt-bulb { fill: #fff6cf; animation: mtBulb 0.9s steps(1) infinite; }
.mt-bulb.b2 { animation-delay: 0.45s; }
.mt-pointer { position: absolute; z-index: 3; top: -18px; left: 50%; width: 38px; height: 48px; margin-left: -19px; transform-origin: 50% 32%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.55)); }
.mt-pointer.flick { animation: mtFlick 0.14s ease-out; }
button.mt-hub {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 29%; height: 29%; min-height: 0; margin: 0; padding: 0; transform: translate(-50%, -50%); border-radius: 50%;
  color: var(--gold-ink); background: radial-gradient(circle at 50% 30%, #fff1b8, #ffc83d 55%, #c68a00); border: 3px solid #5c3b00;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #6b4700, 0 8px 18px rgba(0, 0, 0, 0.55); font: 800 italic 21px/1 var(--font-display); letter-spacing: 0.06em;
}
button.mt-hub:active { transform: translate(-50%, -46%); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.5), 0 1px 0 #6b4700; }
button.mt-hub:disabled { filter: grayscale(0.7) brightness(0.7); opacity: 1; }
.mt-wheel-wrap.can button.mt-hub:not(:disabled) { animation: mtHub 1.3s ease-in-out infinite; }
.mt-spin-st { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font: 600 14px/1.3 var(--font-ui); color: var(--text-2); }
.mt-spin-st > b { font: 800 italic 22px/1 var(--font-display); text-transform: uppercase; color: var(--gold-300); letter-spacing: 0.03em; }
.mt-spin-st span { display: inline-flex; align-items: center; gap: 5px; }
.mt-spin-st span svg { width: 16px; height: 16px; }
.mt-spin-st span b { color: var(--text); font-variant-numeric: tabular-nums; }
.mt-spin-st small { font: 700 12px/1 var(--font-ui); color: var(--em-300); }
.mt-prizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mt-prizes span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.mt-prizes img { width: 26px; height: 26px; object-fit: contain; }
.mt-prizes b { font: 800 12px/1 var(--font-display); letter-spacing: 0.04em; color: var(--text); white-space: nowrap; }
.mt-prizes .jack { border-color: rgba(255, 200, 61, 0.55); background: rgba(255, 200, 61, 0.12); }
.mt-prizes .jack b { color: var(--gold-300); }

/* ---------- reward popup ---------- */
.mt-pop { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; overflow: hidden; background: rgba(3, 5, 10, 0.8); animation: fadeIn 0.2s both; transition: opacity 0.2s; }
.mt-pop.out { opacity: 0; pointer-events: none; }
.mt-pop-card {
  position: relative; z-index: 1; width: min(340px, 100%); max-height: 100%; overflow-y: auto; scrollbar-width: none; padding: 20px 16px 16px; border-radius: 26px; text-align: center; isolation: isolate;
  background: radial-gradient(100% 60% at 50% 0%, rgba(255, 200, 61, 0.22), transparent 70%), linear-gradient(180deg, #202c52, #0e1428);
  border: 1.5px solid rgba(255, 200, 61, 0.55); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 0 5px rgba(255, 200, 61, 0.08);
  animation: mtPopIn 0.5s var(--ease-pop) both;
}
.mt-rays { position: absolute; z-index: -1; left: 50%; top: 96px; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 90, 0.2) 0deg 9deg, transparent 9deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 12%, transparent 60%); mask: radial-gradient(circle, #000 12%, transparent 60%); animation: mtSpin 16s linear infinite; }
.mt-pop-k { font: 800 12px/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-400); }
.mt-pop-t { margin-top: 6px; font: 800 italic 32px/0.95 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 0 22px rgba(255, 200, 61, 0.35); }
.mt-pop-items { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 14px 0 12px; }
.mt-pop-items.n2 { grid-template-columns: 1fr 1fr; }
.mt-pop-items.n3, .mt-pop-items.n4 { grid-template-columns: 1fr 1fr; }
.mt-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 10px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); animation: mtItemIn 0.45s var(--ease-pop) both; animation-delay: calc(0.18s + var(--i) * 0.12s); }
.mt-pop-items.n1 .mt-item { padding: 12px 10px 14px; }
.mt-item-ic { flex: 0 0 auto; width: 60px; height: 60px; display: block; text-align: center; }
.mt-pop-items.n1 .mt-item-ic { width: 84px; height: 84px; }
.mt-item-ic > img, .mt-item-ic > svg { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.mt-item b { font: 800 24px/1 var(--font-display); letter-spacing: 0.02em; color: var(--gold-200); }
.mt-pop-items.n1 .mt-item b { font-size: 34px; }
.mt-item small { font: 600 12px/1.25 var(--font-ui); color: var(--text-2); }
.mt-item.star { border-color: rgba(255, 213, 79, 0.6); background: radial-gradient(circle at 50% 30%, rgba(255, 213, 79, 0.25), rgba(0, 0, 0, 0.3)); }
.mt-pop-note { margin: -2px 0 12px; font: 600 12.5px/1.35 var(--font-ui); color: var(--gold-200); }
button.mt-collect { width: 100%; min-height: 54px; font: 800 italic 22px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; animation: mtItemIn 0.4s var(--ease-pop) both; animation-delay: 0.45s; }
.mt-pop.is-chest .mt-item { animation-delay: calc(1s + var(--i) * 0.14s); }
.mt-pop.is-chest button.mt-collect { animation-delay: 1.3s; }
.mt-pop.is-chest .mt-pop-k, .mt-pop.is-chest .mt-pop-t { animation: mtItemIn 0.4s var(--ease-pop) both; animation-delay: 0.85s; }
.mt-pop.k-jackpot .mt-pop-card, .mt-pop.k-big .mt-pop-card { border-color: var(--gold-300); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 0 5px rgba(255, 200, 61, 0.2), 0 0 60px rgba(255, 200, 61, 0.35); }
.mt-pop.k-jackpot .mt-pop-t { color: var(--gold-300); font-size: 38px; }

.mt-pop-chest { position: relative; width: 150px; height: 130px; margin: 22px auto 4px; }
.mt-pop-chest .mt-chest { position: relative; z-index: 1; width: 150px; height: 130px; animation: mtShake 0.75s ease-in-out both; }
.mt-chest-glow { position: absolute; left: 50%; top: 45%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 241, 184, 0.95), rgba(255, 200, 61, 0.45) 35%, transparent 68%); transform: scale(0); animation: mtBurst 0.7s 0.72s var(--ease-out) both; }
.mt-pop-chest .mt-chest-lid { transform-box: fill-box; transform-origin: 0% 100%; animation: mtLid 0.5s 0.72s var(--ease-pop) both; }
.mt-chest-lid, .mt-chest-body { transform-box: fill-box; }

.mt-trophy-hero { position: relative; width: 120px; height: 120px; margin: 0 auto 6px; }
.mt-trophy-hero svg { width: 120px; height: 120px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55)); animation: mtTrophy 0.8s var(--ease-pop) both; }

.mt-conf { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.mt-conf i { position: absolute; top: -16px; left: var(--x); width: 7px; height: 12px; border-radius: 2px; background: var(--c); opacity: 0; animation: mtConf var(--t) var(--d) linear forwards; }

.mt-fly { position: fixed; z-index: 10002; width: 28px; height: 28px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }

/* ---------- toasts ---------- */
.mt-toast {
  position: fixed; z-index: 10001; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); max-width: min(92vw, 420px); display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px;
  border-radius: 18px; color: #fff; pointer-events: none; background: linear-gradient(180deg, #223063, #0e1428); border: 1.5px solid rgba(255, 200, 61, 0.65);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 200, 61, 0.25); transform: translate(-50%, calc(-100% - 20px)); transition: transform 0.38s var(--ease-pop);
}
.mt-toast.show { transform: translate(-50%, 0); }
.mt-t-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.mt-t-ic.ok { color: #04170f; background: var(--em-400); box-shadow: 0 0 10px rgba(52, 211, 153, 0.6); }
.mt-t-ic.ok svg { width: 22px; height: 22px; }
.mt-t-ic.cup svg, .mt-t-ic.img img { width: 36px; height: 36px; object-fit: contain; }
.mt-t-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mt-t-txt b { font: 800 italic 17px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-300); }
.mt-t-txt small { font: 600 12.5px/1.25 var(--font-ui); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- animation ---------- */
@keyframes mtPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes mtPulseBtn { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 0 #9a6a00, 0 0 0 rgba(255, 200, 61, 0); } 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 0 #9a6a00, 0 0 18px rgba(255, 200, 61, 0.65); } }
@keyframes mtWiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-12deg) scale(1.08); } 82% { transform: rotate(10deg) scale(1.08); } 88% { transform: rotate(-6deg); } 94% { transform: rotate(4deg); } }
@keyframes mtGlow { 0%, 100% { box-shadow: 0 0 0 2px rgba(255, 200, 61, 0.15), 0 0 12px rgba(255, 200, 61, 0.3); } 50% { box-shadow: 0 0 0 4px rgba(255, 200, 61, 0.25), 0 0 26px rgba(255, 200, 61, 0.6); } }
@keyframes mtBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes mtFlicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.06, 1.1) rotate(2deg); } }
@keyframes mtBump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes mtBulb { 0% { fill: #fff6cf; } 50% { fill: #b07a00; } }
@keyframes mtFlick { 0% { transform: rotate(0); } 40% { transform: rotate(-16deg); } 100% { transform: rotate(0); } }
@keyframes mtHub { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.07); } }
@keyframes mtSpin { to { transform: rotate(360deg); } }
@keyframes mtPopIn { 0% { opacity: 0; transform: scale(0.6) translateY(20px); } 100% { opacity: 1; transform: none; } }
@keyframes mtItemIn { 0% { opacity: 0; transform: scale(0.4); } 100% { opacity: 1; transform: none; } }
@keyframes mtShake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-6deg) scale(1.03); } 30% { transform: rotate(6deg) scale(1.05); } 45% { transform: rotate(-5deg) scale(1.07); } 60% { transform: rotate(5deg) scale(1.08); } 80% { transform: rotate(-2deg) scale(1.05); } }
@keyframes mtShakeIdle { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-5deg); } 88% { transform: rotate(5deg); } 92% { transform: rotate(-3deg); } 96% { transform: rotate(2deg); } }
@keyframes mtLid { 0% { transform: none; } 100% { transform: translate(-4px, -18px) rotate(-14deg); } }
@keyframes mtBurst { 0% { transform: scale(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1); opacity: 0.85; } }
@keyframes mtTrophy { 0% { opacity: 0; transform: scale(0.3) rotate(-18deg); } 60% { opacity: 1; transform: scale(1.12) rotate(4deg); } 100% { transform: none; } }
@keyframes mtConf { 0% { opacity: 1; transform: translate(0, 0) rotate(var(--r)); } 100% { opacity: 1; transform: translate(var(--sx), 110vh) rotate(calc(var(--r) + 540deg)); } }

@media (max-height: 740px) {
  .mt-dock { padding-top: 8px; }
  .mt-db { height: 62px; width: 58px; }
  .mt-db-ic, .mt-db-ic svg { width: 32px; height: 32px; }
  .mt-day { min-height: 96px; }
}
@media (max-width: 360px) {
  .mt-db { width: 54px; }
  .mt-dock-side { gap: 6px; }
  .mt-tab { font-size: 11px; }
  .mt-mis-side, .mt-ach-side { max-width: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .mt-db.hot .mt-db-ic, .mt-badge, .mt-day.today, .mt-day.today .mt-day-ic, .mt-flame svg, .mt-rays, .mt-bulb, .mt-chestrow.ready, .mt-chestrow.ready .mt-chest,
  button.mt-claim, .mt-wheel-wrap.can button.mt-hub:not(:disabled), .mt-starcard img.mt-starcard-s { animation: none; }
  .mt-conf { display: none; }
}

/* the Trophy Cabinet's trophy art (trophy cabinet items.png): the tier is the ring and gem; locked is grey */
.mt-tc { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.mt-tc::before { content: ""; position: absolute; inset: 1px; border-radius: 50%; border: 2px solid transparent; background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%); }
.mt-tc.bronze::before { border-color: #c77a3a; box-shadow: 0 0 10px rgba(199, 122, 58, 0.45); }
.mt-tc.silver::before { border-color: #cfd8e6; box-shadow: 0 0 10px rgba(207, 216, 230, 0.4); }
.mt-tc.gold::before { border-color: #ffc83d; box-shadow: 0 0 14px rgba(255, 200, 61, 0.6); }
.mt-tc.lock img { filter: grayscale(1) brightness(0.55); opacity: 0.7; }
.mt-tc-img { position: relative; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5)); }
.mt-tc-gem { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #0a0f1c; }
.mt-tc-gem.bronze { background: linear-gradient(180deg, #e7a26a, #9c5424); }
.mt-tc-gem.silver { background: linear-gradient(180deg, #ffffff, #9aa6b8); }
.mt-tc-gem.gold { background: linear-gradient(180deg, #ffe08a, #e0a100); }
.mt-tc.big { width: 120px; height: 120px; animation: mtTrophy 0.8s var(--ease-pop) both; }
.mt-tc.big::before { border-width: 3px; }
.mt-tc-hero { position: relative; width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55)); }
.mt-tc.big .mt-tc-gem { width: 24px; height: 24px; right: 6px; bottom: 6px; border-width: 3px; }

/* ============================================================ the Daily Rewards screen, owner's design (art to add/daily
   rewards screen): full screen on the stadium picture; the painted panels and buttons are 9-slice borders so they stretch
   without warping their corners */
.mt-bg.dr { align-items: stretch; background: #040817; }
.mt-bg.dr .mt-sheet { position: relative; max-height: none; height: 100%; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 0; border: 0; padding-top: max(10px, env(safe-area-inset-top)); background: linear-gradient(180deg, rgba(4, 8, 23, 0.55) 0%, rgba(4, 8, 23, 0.1) 30%, rgba(4, 8, 23, 0.25) 70%, rgba(4, 8, 23, 0.7) 100%), var(--drbg) center top / cover no-repeat, #0a1233; box-shadow: none; animation: drIn 0.24s ease-out both; }
.mt-bg.dr .mt-grab { display: none; }
.mt-bg.dr .mt-head { margin-bottom: 4px; }
.dr-club { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px; border-style: solid; border-width: 22px; border-image: url("assets/dr_pill_navy.webp") 64 fill / 22px stretch; border-color: transparent; }
.dr-club > * { margin-top: -22px; margin-bottom: -22px; }
.dr-crest { flex: 0 0 auto; width: 40px; height: 44px; display: grid; place-items: center; margin-left: -18px; }
.dr-crest img, .dr-crest svg { width: 40px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.dr-club b { min-width: 0; margin-right: -14px; font: 800 italic 18px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
.mt-bg.dr .mt-coins { height: 44px; padding: 0 4px 0 18px; background: none; border-style: solid; border-width: 22px; border-image: url("assets/dr_pill_navy.webp") 64 fill / 22px stretch; border-color: transparent; }
.mt-bg.dr .mt-coins b { margin: -22px -8px; font: 800 20px/1 var(--font-display); color: #fff; }
.mt-bg.dr .mt-coins .mt-coins-ic { left: -34px; width: 42px; height: 42px; }
.mt-bg.dr .sheet-x { flex: 0 0 auto; width: 46px; height: 46px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: url("assets/dr_sq.webp") center / 100% 100% no-repeat; box-shadow: none; color: #fff; }
.mt-bg.dr .sheet-x svg { width: 22px; height: 22px; stroke-width: 3; }
.dr-title { flex: 0 0 auto; display: flex; justify-content: center; align-items: flex-start; gap: 10px; margin: 2px 0 8px; font: 800 italic 40px/1 var(--font-display); letter-spacing: 0.01em; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 20, 0.45); }
.dr-title em { text-shadow: none; font-style: italic; background: linear-gradient(180deg, #fff4b8 0%, #ffd23f 45%, #f0a500 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(90, 50, 0, 0.55)); }
.dr-title svg { width: 30px; height: 20px; margin: -4px -30px 0 -6px; transform: rotate(18deg); }
/* tabs: navy cards, the chosen one blue; red badges */
.mt-bg.dr .mt-tabs { gap: 6px; padding: 0 10px 8px; border-bottom: 0; }
.mt-bg.dr .mt-tab { min-height: 0; height: 64px; padding: 0; gap: 2px; background: none; box-shadow: none; border-style: solid; border-width: 14px; border-image: url("assets/dr_tab.webp") 48 fill / 14px stretch; border-color: transparent; color: #cfe0ff; font: 800 13px/1 var(--font-display); letter-spacing: 0.04em; }
.mt-bg.dr .mt-tab > span:not(.mt-tab-ic) { margin: -2px -12px -10px; }
.mt-bg.dr .mt-tab.on { color: #fff; border-image: url("assets/dr_tab_on.webp") 52 fill / 14px stretch; filter: drop-shadow(0 0 10px rgba(40, 140, 255, 0.55)); }
.mt-bg.dr .mt-tab-ic { width: 34px; height: 30px; margin: -10px -12px 0; }
.mt-bg.dr .mt-tab-ic img { width: 32px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45)); }
.mt-bg.dr .mt-badge { top: -20px; right: -20px; min-width: 26px; height: 26px; padding: 0 5px; border: 0; border-radius: 0; background: url("assets/dr_badge.webp") center / contain no-repeat; box-shadow: none; font: 800 14px/26px var(--font-display); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
.mt-bg.dr .mt-tab[data-tab="spin"] .mt-badge { min-width: 50px; background: url("assets/dr_badge_pill.webp") center / 100% 100% no-repeat; font-size: 13px; letter-spacing: 0.04em; }
.mt-bg.dr .mt-body { padding-top: 6px; }
/* ---- the Spin tab */
.dr-spin { gap: 8px; align-items: center; }
.dr-ready { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0; margin: 2px auto 0; border-style: solid; border-width: 19px; border-image: url("assets/dr_pill_teal.webp") 80 fill / 19px stretch; border-color: transparent; font: 800 16px/1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; color: #bfffe9; }
.dr-ready > * { margin-top: -19px; margin-bottom: -19px; }
.dr-ready svg { width: 20px; height: 20px; flex: 0 0 auto; color: #5ff3c8; }
.dr-ready:not(.on) { color: #d8e6ff; font-size: 14px; text-transform: none; letter-spacing: 0; }
.dr-ready.on { animation: drGlow 1.6s ease-in-out infinite; }
.dr-slogan { display: flex; flex-direction: column; align-items: center; margin: 6px 0 0; font: 800 italic 36px/0.95 var(--font-display); text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 30, 0.5); transform: rotate(-3deg); }
.dr-slogan em { text-shadow: none; font-style: italic; background: linear-gradient(180deg, #fff4b8 0%, #ffd23f 45%, #f0a500 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(90, 50, 0, 0.55)); }
/* the wheel: stand behind, the face turning inside the rim, the ball hub, the pointer on top */
.mt-bg.dr .dr-wheel-wrap { position: relative; width: min(340px, 86vw); height: auto; aspect-ratio: 810 / 783; margin: 18px auto 34px; border-radius: 0; box-shadow: none; }
.mt-bg.dr .dr-wheel-wrap.can { box-shadow: none; }
.dr-stand { position: absolute; left: -4%; width: 108%; bottom: -15%; z-index: 0; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6)); }
.mt-bg.dr .dr-face { position: absolute; inset: auto; left: 9.5%; top: 9.9%; width: 81%; height: auto; aspect-ratio: 1; border-radius: 50%; z-index: 1; }
.dr-face-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dr-rim { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); }
.mt-bg.dr .dr-wheel-wrap.can .dr-rim { filter: drop-shadow(0 0 16px rgba(255, 200, 61, 0.45)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); }
.dr-sl { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; transform: translate(-50%, -50%); pointer-events: none; }
.dr-sl img { width: clamp(34px, 11vw, 46px); height: clamp(34px, 11vw, 46px); object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45)); }
.dr-sl b { font: 800 clamp(15px, 4.6vw, 20px)/1 var(--font-display); color: #fff; letter-spacing: 0.02em; white-space: nowrap; -webkit-text-stroke: 1px rgba(0, 0, 20, 0.6); paint-order: stroke fill; text-shadow: 0 2px 0 rgba(0, 0, 20, 0.55); }
.mt-bg.dr .dr-hub { position: absolute; left: 50%; top: 50%; width: 28%; height: auto; aspect-ratio: 1; min-height: 0; padding: 0; margin: 0; z-index: 3; border: 0; border-radius: 50%; background: none; box-shadow: none; transform: translate(-50%, -50%); }
.mt-bg.dr .dr-hub:active { transform: translate(-50%, -47%); box-shadow: none; }
.mt-bg.dr .dr-hub img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.55)); }
.mt-bg.dr .dr-wheel-wrap.can .dr-hub:not(:disabled) { animation: mtHub 1.3s ease-in-out infinite; }
.mt-bg.dr .dr-hub:disabled { opacity: 1; filter: none; }
.mt-bg.dr .dr-pointer { position: absolute; left: 50%; top: -2.5%; width: 13%; height: auto; margin-left: -6.5%; z-index: 4; transform-origin: 50% 30%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.55)); }
.dr-pointer img { width: 100%; display: block; }
/* the big button */
.dr-go { width: min(100%, 440px); height: 68px; min-height: 0; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0; border-radius: 0; background: none; box-shadow: none; border-style: solid; border-width: 34px; border-image: url("assets/dr_btn_gold.webp") 68 fill / 34px stretch; border-color: transparent; color: #1c1300; font: 800 italic 30px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.dr-go > * { margin-top: -34px; margin-bottom: -34px; }
.dr-go svg { width: 34px; height: 34px; flex: 0 0 auto; }
.dr-go:active { transform: translateY(3px); }
.dr-go:disabled { opacity: 1; filter: saturate(0.2) brightness(0.7) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); font-size: 24px; }
.dr-note { font: 600 15px/1.3 var(--font-ui); color: #d6e3ff; text-align: center; text-shadow: 0 1px 2px #000; }
.dr-note b { color: #5ff3c8; }
/* in the wheel: a navy panel of eight cards, the jackpot in gold */
.dr-panel { width: 100%; margin-top: 8px; padding: 0; border-style: solid; border-width: 18px; border-image: url("assets/dr_panel.webp") 52 fill / 18px stretch; border-color: transparent; }
.dr-panel > * { margin-left: -8px; margin-right: -8px; }
.dr-ph { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: -6px; margin-bottom: 10px; }
.dr-ph b { font: 800 italic 20px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: #cfe0ff; }
.dr-ph i { flex: 0 1 70px; height: 2px; background: linear-gradient(90deg, transparent, #2f7dff); }
.dr-ph i:last-child { background: linear-gradient(90deg, #2f7dff, transparent); }
.dr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: -6px; }
.dr-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; aspect-ratio: 1.3; padding: 4px 2px; background: url("assets/dr_tab.webp") center / 100% 100% no-repeat; }
.dr-card img { width: 38px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45)); }
.dr-card b { font: 800 16px/1 var(--font-display); color: #fff; letter-spacing: 0.02em; }
.dr-card.jack { background-image: url("assets/dr_card_jack.webp"); justify-content: flex-start; padding-top: 5px; }
.dr-card.jack b { color: #ffe38a; font-size: 17px; }
.dr-card.jack small { position: absolute; left: 0; right: 0; bottom: 6%; font: 800 12px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: #2b1800; text-align: center; }
.dr-foot { display: flex; align-items: center; gap: 12px; margin-top: 4px; font: 600 14px/1.3 var(--font-ui); color: #d6e3ff; text-shadow: 0 1px 2px #000; }
.dr-foot img { width: 58px; height: 50px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
/* the other tabs on the stadium picture: solid navy cards like the painted ones, the painted gold buttons */
.mt-bg.dr .mt-x, .mt-bg.dr .mt-mis, .mt-bg.dr .mt-day:not(.today):not(.d7), .mt-bg.dr .mt-streak.cold { background: linear-gradient(180deg, #17306f 0%, #0c1c4c 100%); border: 2px solid #2d56b0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 3px 0 rgba(0, 0, 20, 0.45); }
.mt-bg.dr .mt-sec { color: #cfe0ff; text-shadow: 0 1px 2px #000; }
.mt-bg.dr .mt-foot { color: #cfdcf5; text-shadow: 0 1px 2px #000; }
.mt-bg.dr .mt-big:not(.dr-go) { height: 58px; border-radius: 0; background: none; border-style: solid; border-width: 29px; border-image: url("assets/dr_btn_gold.webp") 68 fill / 29px stretch; border-color: transparent; box-shadow: none; padding: 0; }
.mt-bg.dr .mt-big:not(.dr-go) > * { margin-top: -29px; margin-bottom: -29px; }
@keyframes drIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes drGlow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(60, 255, 200, 0.4)); } 50% { filter: drop-shadow(0 0 12px rgba(60, 255, 200, 0.9)); } }
