/* MOROZWAY home layout refinements — works with style.css */

.home-topbar {
  grid-template-columns: 46px 1fr 46px;
  gap: 12px;
  margin: 0 0 6px;
}

.topbar-button {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.hero {
  min-height: 300px;
  margin: 0;
  align-items: flex-end;
  overflow: visible;
}

.hero-mascots {
  width: min(100%, 380px);
  max-height: 340px;
  object-fit: contain;
  object-position: center bottom;
}

.balance {
  width: 200px;
  min-height: 86px;
  margin: -48px auto 18px;
  padding: 14px 18px 13px;
  border-radius: 24px;
  z-index: 4;
}

.stats {
  margin: 0 0 16px;
  min-height: 100px;
  padding: 8px 4px;
  border-radius: 24px;
}

.stat {
  min-height: 88px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tile,
.task-tile {
  min-height: 128px;
  padding: 18px 16px;
  border-radius: 26px;
}

.tile-arrow {
  display: none;
}

.links {
  margin-top: 4px;
  padding: 0 4px;
  border-radius: 24px;
}

.links button {
  min-height: 64px;
}

.footer {
  margin-top: 12px;
}

#notice {
  min-height: 18px;
}

@media (max-width: 380px) {
  .hero { min-height: 270px; }
  .hero-mascots { max-height: 300px; }
  .balance { margin-top: -42px; }
  .tile, .task-tile { min-height: 118px; padding: 14px; }
  .home-topbar { grid-template-columns: 42px 1fr 42px; }
  .topbar-button { width: 42px; height: 42px; border-radius: 14px; }
}

/* MOROZWAY COMPACT GLASS BUTTONS */
button { -webkit-tap-highlight-color: transparent; }

.topbar-button {
  width: 41px; height: 41px; border-radius: 11px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.links { border-radius: 17px; }
.links button { min-height: 54px; padding: 10px 13px; }
.link-icon { width: 36px; height: 36px; border-radius: 10px; }

.btn-primary, .case-spin {
  min-height: 46px; border-radius: 11px;
  background: rgba(255,255,255,.09);
  color: #f0f3ff;
  border: 1px solid rgba(255,255,255,.17);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 14px; font-weight: 700;
}
.btn-ghost {
  min-height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.withdraw-amount {
  min-height: 48px; border-radius: 11px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
}
.withdraw-custom-input { min-height: 46px; border-radius: 11px; }
.withdraw-history-link { padding: 9px; border-radius: 10px; }
#morozwayTaskList button {
  min-height: 42px; border-radius: 10px; font-size: 13px;
}
.task-item { padding: 14px; border-radius: 16px; }
.task-item-icon { width: 42px; height: 42px; border-radius: 12px; }

@media (max-width: 380px) {
  .topbar-button { width: 39px; height: 39px; }
  .links button { min-height: 51px; padding: 9px 11px; }
}
/* END COMPACT GLASS BUTTONS */


/* MOROZWAY — PREMIUM POLISH */
:root {
  --bg: #030408;
  --bg-deep: #010205;
  --line: rgba(225,232,248,.12);
  --line-strong: rgba(235,240,255,.22);
  --text: #f5f7fc;
  --text-secondary: #b9c1d2;
  --text-muted: #858da0;
}

/* Deeper background, controlled accent */
body {
  background-image:
    radial-gradient(ellipse 120% 48% at 50% -12%, rgba(var(--accent-rgb),.19), transparent 66%),
    radial-gradient(ellipse 80% 42% at 50% 112%, rgba(var(--accent-rgb),.09), transparent 70%),
    radial-gradient(ellipse 65% 38% at 90% 30%, rgba(80,90,130,.10), transparent 62%),
    linear-gradient(180deg,#020307 0%,#080a12 52%,#030408 100%) !important;
}

/* Statistics: no outer card and no inner cards */
.stats {
  min-height: 78px !important;
  margin: 0 0 12px !important;
  padding: 5px 0 !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.stats .stat,
.stats .stat.card {
  min-height: 70px !important;
  padding: 5px 3px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.stats .stat-icon {
  color: rgba(225,232,248,.78) !important;
  filter: drop-shadow(0 0 7px rgba(var(--accent-rgb),.22)) !important;
}
.stats .stat b {
  color: #f7f8fc !important;
  font-size: 22px !important;
}
.stats .stat small {
  color: rgba(190,199,216,.68) !important;
}

/* Compact home tiles to fit the first screen */
.tiles {
  gap: 10px !important;
  margin-bottom: 12px !important;
}
.tiles .tile {
  min-height: 112px !important;
  padding: 14px 14px !important;
  gap: 9px !important;
  border-radius: 21px !important;
  background: linear-gradient(145deg,rgba(255,255,255,.075),rgba(17,19,29,.82)) !important;
  border-color: rgba(225,232,248,.13) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10),0 10px 26px rgba(0,0,0,.28) !important;
}
.tiles .tile-icon {
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb),.20));
}

/* Softer neon buttons with a little more height */
.btn-primary,
.case-spin,
.withdraw-amount,
.withdraw-custom-input,
#morozwayTaskList button {
  min-height: 50px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(var(--accent-rgb),.32) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    0 0 13px rgba(var(--accent-rgb),.10),
    0 8px 22px rgba(0,0,0,.24) !important;
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.btn-primary:active,
.case-spin:active,
.withdraw-amount:active,
#morozwayTaskList button:active {
  transform: translateY(1px) scale(.98);
  box-shadow: 0 0 19px rgba(var(--accent-rgb),.20) !important;
}
.btn-primary {
  background: linear-gradient(110deg,rgba(var(--accent-rgb),.17),rgba(255,255,255,.075)) !important;
  color: #f7f8fc !important;
}

/* Theme-colored stars */
.topbar-balance > span:last-child,
.balance .amount span,
.profile-stat-row b .star,
.ref-reward-value .star,
.withdraw-balance-value .star {
  color: var(--accent) !important;
  filter: drop-shadow(0 0 7px rgba(var(--accent-rgb),.30)) !important;
}

/* Remove old yellow ambient glow */
.app {
  filter: drop-shadow(0 0 9px rgba(var(--accent-rgb),.10)) !important;
}

/* Snow stays subtle and never blocks interaction */
#snowfield {
  opacity: .78;
  pointer-events: none !important;
}

@media (max-width: 380px) {
  .tiles { gap: 8px !important; }
  .tiles .tile {
    min-height: 102px !important;
    padding: 12px !important;
  }
  .stats .stat b { font-size: 20px !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary {
    animation: softNeonPulse 4.8s ease-in-out infinite;
  }
  @keyframes softNeonPulse {
    0%,100% { box-shadow: 0 0 10px rgba(var(--accent-rgb),.07), inset 0 1px 0 rgba(255,255,255,.13); }
    50% { box-shadow: 0 0 17px rgba(var(--accent-rgb),.16), inset 0 1px 0 rgba(255,255,255,.17); }
  }
}

/* MOROZWAY — PRECISE HOME LAYOUT FIX */
#notice { display: none !important; }

/* One shared stats panel; its three indicators stay transparent */
.stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  min-height: 76px !important;
  margin: 0 0 10px !important;
  padding: 5px 4px !important;
  gap: 0 !important;
  border: 1px solid rgba(220,230,255,.16) !important;
  border-radius: 21px !important;
  background: linear-gradient(145deg,rgba(255,255,255,.085),rgba(17,20,31,.82)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12),0 10px 26px rgba(0,0,0,.24) !important;
}
.stats .stat,
.stats .stat.card {
  min-height: 64px !important;
  padding: 4px 2px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.stats .stat-icon {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.stats .stat-icon svg { width: 18px !important; height: 18px !important; }
.stats .stat b { font-size: 19px !important; }
.stats .stat small { font-size: 10px !important; }

/* Compact first screen */
.home-topbar { margin-bottom: 0 !important; }
.hero {
  min-height: 185px !important;
  height: 185px !important;
  margin: 0 !important;
}
.hero-mascots {
  width: min(90%,320px) !important;
  max-height: 215px !important;
}
.balance {
  width: 178px !important;
  min-height: 68px !important;
  margin: -34px auto 10px !important;
  padding: 9px 14px !important;
  border-radius: 19px !important;
}
.balance .amount { font-size: 30px !important; }
.balance-head { font-size: 10px !important; }
.tiles {
  gap: 8px !important;
  margin: 0 0 9px !important;
}
.tiles .tile {
  min-height: 91px !important;
  padding: 10px 12px !important;
  gap: 7px !important;
  border-radius: 19px !important;
}
.tiles .tile-icon {
  width: 35px !important;
  height: 35px !important;
  border-radius: 12px !important;
}
.tiles .tile-icon svg { width: 19px !important; height: 19px !important; }
.tiles .tile-copy { gap: 2px !important; }
.tiles .tile-copy b { font-size: 15px !important; }
.tiles .tile-copy small { font-size: 10px !important; }
.links {
  margin-top: 0 !important;
  padding: 0 3px !important;
}
.links button {
  min-height: 47px !important;
  padding: 7px 10px !important;
}
.footer { margin-top: 5px !important; }

/* Short screens: tighten the hero and vertical rhythm further */
@media (max-height: 760px) {
  .hero { min-height: 150px !important; height: 150px !important; }
  .hero-mascots { max-height: 180px !important; width: min(86%,285px) !important; }
  .balance { margin-top: -28px !important; min-height: 62px !important; }
  .stats { min-height: 68px !important; margin-bottom: 8px !important; }
  .stats .stat, .stats .stat.card { min-height: 58px !important; }
  .tiles .tile { min-height: 82px !important; }
  .links button { min-height: 43px !important; }
  .footer { display: none !important; }
}

/* Theme picker: centered compact dialog, no page scrolling */
.theme-sheet {
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}
.theme-sheet-panel {
  width: min(390px,100%) !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-y: auto !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 24px !important;
  padding: 15px !important;
  background: linear-gradient(150deg,rgba(31,35,49,.98),rgba(9,11,18,.99)) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.58) !important;
}
.theme-sheet-handle { display: none !important; }
.theme-sheet-header { margin-bottom: 12px !important; }
.theme-options { gap: 8px !important; }
.theme-dot {
  gap: 5px !important;
  padding: 8px 4px !important;
  border-radius: 14px !important;
}
.theme-swatch { width: 25px !important; height: 25px !important; }
.theme-label { font-size: 10px !important; }

/* Actual withdrawal submit button */
#withdrawSubmit {
  min-height: 60px !important;
  height: 60px !important;
  padding: 0 22px !important;
  border-radius: 15px !important;
}

/* Softer, visually narrower Stars glyph */
.topbar-balance > span:last-child,
.balance .amount span,
.withdraw-balance-value .star {
  display: inline-block !important;
  font-family: "Segoe UI Symbol","Noto Sans Symbols 2",sans-serif !important;
  font-weight: 500 !important;
  transform: scaleX(.88) !important;
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb),.24)) !important;
}

/* MOROZWAY: final home and referral spacing */

/* Home: use more of the available screen */
.hero {
  min-height: 184px !important;
  height: 184px !important;
}
.hero-mascots {
  width: min(94%, 350px) !important;
  max-height: 245px !important;
  translate: 0 14px;
}
.tiles .tile {
  min-height: 105px !important;
  padding: 12px 14px !important;
}
.links button {
  min-height: 54px !important;
  padding: 9px 12px !important;
}

/* Short mobile screens */
@media (max-height: 760px) {
  .hero {
    min-height: 170px !important;
    height: 170px !important;
  }
  .hero-mascots {
    width: min(92%, 330px) !important;
    max-height: 230px !important;
    translate: 0 13px;
  }
  .tiles .tile {
    min-height: 96px !important;
  }
  .links button {
    min-height: 50px !important;
  }
}

/* Stats: one outer glass panel, absolutely no inner cards */
.stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 8px 5px !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  background: var(--glass-base) !important;
  box-shadow: var(--shadow-glass) !important;
}
.stats > .stat,
.stats > .stat.card {
  min-width: 0 !important;
  min-height: 68px !important;
  padding: 5px 3px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.stats > .stat::before,
.stats > .stat::after,
.stats > .stat.card::before,
.stats > .stat.card::after {
  content: none !important;
  display: none !important;
}
.stats > .stat .stat-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Referral page: compact dimensions like the home screen */
#referralScreen.case-screen {
  box-sizing: border-box !important;
  padding: 14px 16px 18px !important;
  overflow-y: auto !important;
}
#referralScreen .screen-header {
  min-height: 42px !important;
  margin-bottom: 10px !important;
}
#referralScreen .ref-reward-hero {
  padding: 19px 14px 15px !important;
  margin-bottom: 10px !important;
  border-radius: 22px !important;
}
#referralScreen .ref-reward-label {
  font-size: 12px !important;
  margin-bottom: 8px !important;
}
#referralScreen .ref-reward-value {
  font-size: 44px !important;
  gap: 6px !important;
}
#referralScreen .ref-reward-value .star {
  font-size: 34px !important;
}
#referralScreen .ref-link-box {
  margin-top: 12px !important;
  padding: 10px 12px !important;
  font-size: 11px !important;
  border-radius: 13px !important;
}
#referralScreen .ref-mini-stats {
  margin-bottom: 10px !important;
  border-radius: 20px !important;
}
#referralScreen .ref-mini-stat {
  padding: 11px 5px !important;
}
#referralScreen .ref-mini-stat b {
  font-size: 21px !important;
  margin-bottom: 2px !important;
}
#referralScreen .ref-mini-stat small {
  font-size: 10px !important;
}
#referralScreen .ref-top {
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  border-radius: 20px !important;
}
#referralScreen .ref-top-title {
  font-size: 13px !important;
  margin-bottom: 8px !important;
}
#referralScreen .ref-top-list {
  margin-bottom: 8px !important;
}
#referralScreen .ref-top-list li {
  padding: 7px 0 !important;
  font-size: 12px !important;
}
#referralScreen .ref-top-note {
  font-size: 10px !important;
  line-height: 1.35 !important;
}
#referralScreen .ref-actions {
  flex-direction: row !important;
  gap: 9px !important;
  margin-bottom: 8px !important;
}
#referralScreen .ref-actions button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 49px !important;
  padding: 8px 10px !important;
  border-radius: 15px !important;
  font-size: 14px !important;
}

/* ===== FINAL VISUAL TUNE ===== */

/* Mascots: move slightly lower */
.hero-mascots {
  translate: 0 25px !important;
}

@media (max-height: 760px) {
  .hero-mascots {
    translate: 0 21px !important;
  }
}

/* Theme picker: a little below exact center */
.theme-sheet {
  align-items: center !important;
  justify-content: center !important;
}

.theme-sheet-panel {
  translate: 0 24px !important;
}

/* Case screen: compact layout, isolated from other pages */
#caseScreen {
  padding: 12px 14px 24px !important;
}

#caseScreen .screen-header {
  margin-bottom: 8px !important;
}

#caseScreen .case-brand {
  margin: 4px 0 5px !important;
  font-size: 13px !important;
}

#caseScreen .case-balance {
  margin: 4px 0 !important;
  font-size: 23px !important;
}

#caseScreen .case-cost {
  margin: 3px 0 10px !important;
  font-size: 12px !important;
}

#caseScreen .case-roulette {
  height: 108px !important;
  margin: 10px 0 14px !important;
}

#caseScreen .case-prize {
  width: 66px !important;
  height: 66px !important;
  border-radius: 15px !important;
  font-size: 25px !important;
  filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), .28));
}

#caseScreen .case-odds {
  gap: 6px !important;
  margin-bottom: 12px !important;
}

#caseScreen .case-odds > div {
  padding: 8px 5px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), .18));
}

#caseScreen .case-odds b {
  margin-top: 3px !important;
  font-size: 11px !important;
}

#caseScreen .case-spin {
  min-height: 46px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
}

#caseScreen #caseResult {
  min-height: 17px !important;
  margin: 5px 0 !important;
}

#caseScreen h3 {
  margin-top: 12px !important;
  margin-bottom: 8px !important;
  font-size: 14px !important;
}

#caseScreen .case-history {
  margin-top: 7px !important;
}

#caseScreen .history-item {
  padding: 8px 0 !important;
  font-size: 13px !important;
}


/* ===== MOROZWAY LAYOUT V2 ===== */

/* Home: slightly larger mascots and a little more vertical space */
.hero {
  height: 190px !important;
  min-height: 190px !important;
}

.hero-mascots {
  width: min(96%, 360px) !important;
  max-height: 255px !important;
  translate: 0 6px !important;
}

/* Home cards and buttons: compact, with a calmer rhythm */
.tiles {
  gap: 9px !important;
  margin-top: 3px !important;
}

.tiles .tile {
  min-height: 98px !important;
  padding: 10px 12px !important;
  border-radius: 17px !important;
}

.tiles .tile-icon {
  width: 33px !important;
  height: 33px !important;
}

.tiles .tile-copy b {
  font-size: 14px !important;
}

.links {
  margin-top: 3px !important;
}

.links button {
  min-height: 48px !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
}

/* Short screens */
@media (max-height: 760px) {
  .hero {
    height: 176px !important;
    min-height: 176px !important;
  }

  .hero-mascots {
    width: min(94%, 340px) !important;
    max-height: 235px !important;
    translate: 0 5px !important;
  }

  .tiles .tile {
    min-height: 88px !important;
  }

  .links button {
    min-height: 45px !important;
  }
}

/* Withdraw screen */
#withdrawScreen {
  box-sizing: border-box !important;
  padding: 14px 16px 20px !important;
}

#withdrawScreen .screen-header {
  margin-bottom: 8px !important;
}

#withdrawScreen .withdraw-balance-block {
  padding: 20px 14px 16px !important;
  margin-bottom: 12px !important;
}

#withdrawScreen .withdraw-balance-label {
  margin-bottom: 7px !important;
  font-size: 11px !important;
}

#withdrawScreen .withdraw-balance-value {
  font-size: 44px !important;
}

#withdrawScreen .withdraw-balance-value .star {
  font-size: 32px !important;
}

#withdrawScreen .withdraw-grid {
  gap: 9px !important;
  margin-bottom: 13px !important;
}

#withdrawScreen .withdraw-amount {
  min-height: 50px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
}

#withdrawScreen .withdraw-custom-row {
  gap: 8px !important;
  margin-bottom: 11px !important;
}

#withdrawScreen .withdraw-custom-input {
  min-height: 46px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}

#withdrawScreen #withdrawSubmit {
  min-height: 52px !important;
  height: 52px !important;
  border-radius: 13px !important;
}

#withdrawScreen .withdraw-note {
  margin: 10px 0 12px !important;
  font-size: 11px !important;
}

#withdrawScreen .withdraw-history-link {
  padding: 9px !important;
  font-size: 13px !important;
}

/* Referral screen */
#referralScreen .ref-reward-hero {
  padding: 16px 12px 13px !important;
  margin-bottom: 9px !important;
  border-radius: 19px !important;
}

#referralScreen .ref-reward-label {
  margin-bottom: 6px !important;
  font-size: 11px !important;
}

#referralScreen .ref-reward-value {
  font-size: 40px !important;
}

#referralScreen .ref-reward-value .star {
  font-size: 30px !important;
}

#referralScreen .ref-link-box {
  margin-top: 9px !important;
  padding: 9px 10px !important;
  font-size: 10px !important;
}

#referralScreen .ref-mini-stats {
  margin-bottom: 9px !important;
}

#referralScreen .ref-mini-stat {
  padding: 9px 4px !important;
}

#referralScreen .ref-mini-stat b {
  font-size: 19px !important;
}

#referralScreen .ref-mini-stat small {
  font-size: 9px !important;
}

#referralScreen .ref-top {
  padding: 12px 13px !important;
  margin-bottom: 10px !important;
}

#referralScreen .ref-top-title {
  font-size: 12px !important;
  margin-bottom: 7px !important;
}

#referralScreen .ref-top-list li {
  padding: 6px 0 !important;
  font-size: 11px !important;
}

#referralScreen .ref-top-note {
  font-size: 9px !important;
}

#referralScreen .ref-actions {
  gap: 8px !important;
}

#referralScreen .ref-actions button {
  min-height: 45px !important;
  padding: 7px 8px !important;
  border-radius: 13px !important;
  font-size: 12px !important;
}

/* ===== MOROZWAY HOME LAYOUT V3 ===== */

/* Characters and balance */
.hero {
  height: 205px !important;
  min-height: 205px !important;
  margin: 0 !important;
  overflow: visible !important;
}

.hero-mascots {
  width: min(100%, 385px) !important;
  max-height: 270px !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  translate: 0 12px !important;
}

.balance {
  width: 178px !important;
  min-height: 66px !important;
  margin: -20px auto 10px !important;
  padding: 8px 13px !important;
  border-radius: 18px !important;
}

/* Keep statistics unchanged */
.stats {
  margin-bottom: 10px !important;
}

/* Compact task and case tiles */
.tiles {
  gap: 9px !important;
  margin: 0 0 10px !important;
}

.tiles .tile {
  min-height: 88px !important;
  padding: 9px 11px !important;
  gap: 6px !important;
  border-radius: 17px !important;
}

.tiles .tile-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 11px !important;
}

.tiles .tile-icon svg {
  width: 19px !important;
  height: 19px !important;
}

.tiles .tile-copy b {
  font-size: 14px !important;
}

.tiles .tile-copy small {
  font-size: 10px !important;
}

/* Withdraw and referrals buttons */
.links {
  margin-top: 0 !important;
  padding: 0 3px !important;
  border-radius: 17px !important;
}

.links button {
  min-height: 46px !important;
  padding: 6px 10px !important;
  gap: 10px !important;
}

.link-icon {
  width: 31px !important;
  height: 31px !important;
  border-radius: 9px !important;
}

.link-icon svg {
  width: 19px !important;
  height: 19px !important;
}

/* Smaller screens */
@media (max-height: 760px) {
  .hero {
    height: 190px !important;
    min-height: 190px !important;
  }

  .hero-mascots {
    width: min(100%, 355px) !important;
    max-height: 250px !important;
    translate: 0 10px !important;
  }

  .balance {
    margin-top: -18px !important;
  }

  .tiles .tile {
    min-height: 82px !important;
  }

  .links button {
    min-height: 43px !important;
  }
}

/* ===== END HOME LAYOUT V3 ===== */

/* ===== MOROZWAY HOME LAYOUT V5 ===== */

/* Mascots lower, balance card lower */
.hero {
  height: 230px !important;
  min-height: 230px !important;
  overflow: visible !important;
}

.hero-mascots {
  position: relative !important;
  top: 20px !important;
  width: min(100%, 385px) !important;
  max-height: 280px !important;
  object-position: center bottom !important;
}

.balance {
  margin: -6px auto 10px !important;
}

/* Statistics intentionally untouched */

/* Smaller task and case tiles, with more space above */
.tiles {
  margin-top: 12px !important;
  gap: 9px !important;
}

.tiles .tile {
  min-height: 76px !important;
  padding: 8px 10px !important;
  gap: 6px !important;
  border-radius: 16px !important;
}

.tiles .tile-icon {
  width: 29px !important;
  height: 29px !important;
  border-radius: 9px !important;
}

.tiles .tile-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.tiles .tile-copy b {
  font-size: 13px !important;
}

.tiles .tile-copy small {
  font-size: 9px !important;
}

/* Compact withdraw and referral rows */
.links {
  margin-top: 8px !important;
  padding: 0 3px !important;
  border-radius: 16px !important;
}

.links button {
  min-height: 42px !important;
  padding: 5px 9px !important;
  gap: 9px !important;
}

.link-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
}

.link-icon svg {
  width: 17px !important;
  height: 17px !important;
}

/* Keep the same proportions on short screens */
@media (max-height: 760px) {
  .hero {
    height: 220px !important;
    min-height: 220px !important;
  }

  .hero-mascots {
    top: 18px !important;
  }

  .balance {
    margin-top: -6px !important;
  }

  .tiles .tile {
    min-height: 74px !important;
  }

  .links button {
    min-height: 40px !important;
  }
}

/* ===== END V5 ===== */

/* ===== MOROZWAY HOME COMPLETE DESIGN V6 ===== */

/* BALANCE */
.balance {
  box-sizing: border-box !important;
  width: 176px !important;
  min-height: 76px !important;
  margin: -6px auto 12px !important;
  padding: 10px 14px !important;
  border-radius: 20px !important;
  z-index: 5 !important;
}

.balance-head {
  margin-bottom: 2px !important;
}

.balance-head span {
  font-size: 9px !important;
}

.balance .amount {
  font-size: 31px !important;
  line-height: 1.05 !important;
}

/* STATS: ONE GLASS PANEL, THREE CLEAN COLUMNS */
.stats {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 76px !important;
  margin: 0 0 12px !important;
  padding: 5px 4px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-radius: 19px !important;
}

.stats > .stat,
.stats > .stat.card {
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 5px 2px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.stats > .stat .stat-icon {
  margin: 0 !important;
  font-size: 15px !important;
}

.stats > .stat b {
  font-size: 19px !important;
  line-height: 1.1 !important;
}

.stats > .stat small {
  font-size: 9px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

/* TASKS AND CASE */
.tiles {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

.tiles .tile {
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 72px !important;
  padding: 9px 10px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  border-radius: 17px !important;
}

.tiles .tile-icon {
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
}

.tiles .tile-icon svg {
  width: 17px !important;
  height: 17px !important;
}

.tiles .tile-copy {
  min-width: 0 !important;
  gap: 3px !important;
}

.tiles .tile-copy b {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.tiles .tile-copy small {
  font-size: 9px !important;
  line-height: 1.2 !important;
}

/* WITHDRAW AND REFERRAL */
.links {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  padding: 0 5px !important;
  border-radius: 18px !important;
}

.links button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 46px !important;
  padding: 7px 9px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.link-icon {
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
}

.link-icon svg {
  width: 17px !important;
  height: 17px !important;
}

.link-text {
  min-width: 0 !important;
  gap: 2px !important;
}

.link-text b {
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.link-text small {
  font-size: 9px !important;
  line-height: 1.2 !important;
}

/* SHORT SCREENS */
@media (max-height: 760px) {
  .balance {
    margin-bottom: 10px !important;
  }

  .stats {
    margin-bottom: 10px !important;
  }

  .tiles {
    margin-bottom: 10px !important;
  }

  .tiles .tile {
    min-height: 68px !important;
  }

  .links button {
    min-height: 43px !important;
  }
}

/* NARROW PHONES */
@media (max-width: 380px) {
  .tiles {
    gap: 7px !important;
  }

  .tiles .tile {
    padding: 8px 7px !important;
    gap: 6px !important;
  }

  .tiles .tile-copy b {
    font-size: 11px !important;
  }

  .tiles .tile-copy small {
    font-size: 8px !important;
  }

  .stats > .stat b {
    font-size: 17px !important;
  }
}

/* ===== END V6 ===== */

/* ===== MOROZWAY HOME DESIGN V7 ===== */

/* Balance: larger and lower */
.balance {
  box-sizing: border-box !important;
  width: 192px !important;
  min-height: 84px !important;
  margin: 4px auto 16px !important;
  padding: 12px 16px !important;
  border-radius: 22px !important;
}

.balance-head span {
  font-size: 10px !important;
}

.balance .amount {
  font-size: 35px !important;
}

/* Stats */
.stats {
  min-height: 84px !important;
  margin-bottom: 15px !important;
  padding: 7px 5px !important;
  border-radius: 21px !important;
}

.stats > .stat,
.stats > .stat.card {
  min-height: 72px !important;
  padding: 6px 3px !important;
  gap: 4px !important;
}

.stats > .stat .stat-icon {
  font-size: 17px !important;
}

.stats > .stat b {
  font-size: 21px !important;
}

.stats > .stat small {
  font-size: 10px !important;
}

/* Tasks and case */
.tiles {
  margin-bottom: 15px !important;
  gap: 10px !important;
}

.tiles .tile {
  min-height: 80px !important;
  padding: 10px 11px !important;
  gap: 9px !important;
  border-radius: 18px !important;
}

.tiles .tile-icon {
  flex-basis: 34px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
}

.tiles .tile-icon svg {
  width: 19px !important;
  height: 19px !important;
}

.tiles .tile-copy b {
  font-size: 13px !important;
}

.tiles .tile-copy small {
  font-size: 10px !important;
}

/* Withdraw and referral */
.links {
  margin-bottom: 16px !important;
  padding: 0 6px !important;
  border-radius: 20px !important;
}

.links button {
  min-height: 51px !important;
  padding: 8px 11px !important;
  gap: 11px !important;
}

.link-icon {
  flex-basis: 34px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
}

.link-icon svg {
  width: 19px !important;
  height: 19px !important;
}

.link-text b {
  font-size: 14px !important;
}

.link-text small {
  font-size: 10px !important;
}

/* Narrow phones */
@media (max-width: 380px) {
  .balance {
    width: 184px !important;
  }

  .tiles .tile {
    padding: 9px 8px !important;
    gap: 7px !important;
  }

  .tiles .tile-copy b {
    font-size: 12px !important;
  }

  .tiles .tile-copy small {
    font-size: 9px !important;
  }

  .stats > .stat b {
    font-size: 19px !important;
  }
}

/* ===== END V7 ===== */

/* ===== MOROZWAY FORCE HOME DESIGN V8 ===== */

html body .app > section.balance.card.reveal {
  box-sizing: border-box !important;
  display: block !important;
  width: 205px !important;
  min-height: 92px !important;
  margin: 10px auto 11px !important;
  padding: 14px 18px !important;
  border-radius: 23px !important;
  position: relative !important;
}

html body .app > section.balance .balance-head span {
  font-size: 10px !important;
}

html body .app > section.balance .amount {
  font-size: 39px !important;
  line-height: 1.1 !important;
}

html body .app > section.balance .amount span {
  font-size: 28px !important;
}

html body .app > section.stats.reveal {
  width: 100% !important;
  min-height: 82px !important;
  margin: 0 0 11px !important;
  padding: 6px 5px !important;
  gap: 0 !important;
  border-radius: 20px !important;
}

html body .app > section.stats > .stat,
html body .app > section.stats > .stat.card {
  min-height: 70px !important;
  padding: 5px 3px !important;
  gap: 4px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app > section.stats > .stat b {
  font-size: 21px !important;
}

html body .app > section.stats > .stat small {
  font-size: 10px !important;
}

html body .app > section.tiles.reveal {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  gap: 10px !important;
  margin: 0 0 11px !important;
}

html body .app > section.tiles > button.tile {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  min-height: 86px !important;
  padding: 11px 10px !important;
  gap: 9px !important;
  border-radius: 18px !important;
}

html body .app > section.tiles .tile-icon {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
}

html body .app > section.tiles .tile-icon svg {
  width: 20px !important;
  height: 20px !important;
}

html body .app > section.tiles .tile-copy b {
  font-size: 13px !important;
}

html body .app > section.tiles .tile-copy small {
  font-size: 9px !important;
}

html body .app > section.links.card.reveal {
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 6px !important;
  border-radius: 19px !important;
}

html body .app > section.links button {
  min-height: 54px !important;
  padding: 8px 10px !important;
  gap: 11px !important;
}

html body .app > section.links .link-icon {
  flex: 0 0 35px !important;
  width: 35px !important;
  height: 35px !important;
}

html body .app > section.links .link-text b {
  font-size: 14px !important;
}

html body .app > section.links .link-text small {
  font-size: 10px !important;
}

@media (max-width: 380px) {
  html body .app > section.tiles > button.tile {
    padding: 9px 7px !important;
    gap: 7px !important;
  }

  html body .app > section.tiles .tile-copy b {
    font-size: 12px !important;
  }

  html body .app > section.tiles .tile-copy small {
    font-size: 8px !important;
  }
}

/* ===== END V8 ===== */

/* ===== MOROZWAY HOME FINAL COMPOSITION V9 ===== */

/* Баланс — действительно крупнее */
html body .app > section.balance.card.reveal {
  box-sizing: border-box !important;
  width: 252px !important;
  min-height: 110px !important;
  margin: 16px auto 6px !important;
  padding: 15px 20px !important;
  border-radius: 25px !important;
}

html body .app > section.balance .balance-head span {
  font-size: 11px !important;
  letter-spacing: .24em !important;
}

html body .app > section.balance .amount {
  font-size: 47px !important;
  line-height: 1.08 !important;
}

html body .app > section.balance .amount span {
  font-size: 32px !important;
}

/* Статистика — одна общая панель */
html body .app > section.stats.reveal {
  width: 100% !important;
  min-height: 84px !important;
  margin: 0 0 7px !important;
  padding: 6px 5px !important;
  gap: 0 !important;
  border-radius: 21px !important;
}

html body .app > section.stats > .stat,
html body .app > section.stats > .stat.card {
  min-height: 72px !important;
  padding: 5px 3px !important;
  gap: 4px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app > section.stats > .stat .stat-icon svg {
  width: 20px !important;
  height: 20px !important;
}

html body .app > section.stats > .stat b {
  font-size: 22px !important;
}

html body .app > section.stats > .stat small {
  font-size: 10px !important;
}

/* Задания и кейс — одинаковые аккуратные карточки */
html body .app > section.tiles.reveal {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  gap: 9px !important;
  margin: 0 0 7px !important;
}

html body .app > section.tiles > button.tile {
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 90px !important;
  padding: 10px 9px !important;
  gap: 8px !important;
  border-radius: 19px !important;
}

html body .app > section.tiles .tile-icon {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
}

html body .app > section.tiles .tile-icon svg {
  width: 20px !important;
  height: 20px !important;
}

html body .app > section.tiles .tile-copy b {
  font-size: 13px !important;
}

html body .app > section.tiles .tile-copy small {
  font-size: 9px !important;
}

/* Вывод и рефка */
html body .app > section.links.card.reveal {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  padding: 0 5px !important;
  border-radius: 20px !important;
}

html body .app > section.links button {
  min-height: 58px !important;
  padding: 8px 10px !important;
  gap: 10px !important;
}

html body .app > section.links .link-icon {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
}

html body .app > section.links .link-text b {
  font-size: 14px !important;
}

html body .app > section.links .link-text small {
  font-size: 10px !important;
}

/* Узкие экраны */
@media (max-width: 380px) {
  html body .app > section.balance.card.reveal {
    width: 244px !important;
  }

  html body .app > section.tiles > button.tile {
    padding: 9px 7px !important;
    gap: 7px !important;
  }

  html body .app > section.tiles .tile-copy b {
    font-size: 12px !important;
  }

  html body .app > section.tiles .tile-copy small {
    font-size: 8px !important;
  }
}

/* ===== END V9 ===== */

/* V10 — уменьшаем только карточку баланса */
html body .app > section.balance.card.reveal {
  box-sizing: border-box !important;
  width: 190px !important;
  min-height: 78px !important;
  height: 78px !important;
  margin: 8px auto 7px !important;
  padding: 9px 14px !important;
  border-radius: 20px !important;
}

html body .app > section.balance .balance-head span {
  font-size: 9px !important;
}

html body .app > section.balance .amount {
  font-size: 32px !important;
  line-height: 1 !important;
}

html body .app > section.balance .amount span {
  font-size: 23px !important;
}


/* V11 — баланс ещё компактнее */
html body .app > section.balance.card.reveal {
  width: 174px !important;
  min-height: 70px !important;
  height: 70px !important;
  margin: 7px auto 6px !important;
  padding: 8px 12px !important;
  border-radius: 18px !important;
}

html body .app > section.balance .balance-head span {
  font-size: 8px !important;
}

html body .app > section.balance .amount {
  font-size: 29px !important;
  line-height: 1 !important;
}

html body .app > section.balance .amount span {
  font-size: 21px !important;
}




/* ===== V12 — КОМПАКТНЫЕ КАРТОЧКИ И СДВИГ ВНИЗ ОТ ПЕРСОНАЖЕЙ ===== */
html body .app > section.balance.card.reveal {
  width: 156px !important;
  min-height: 60px !important;
  height: 60px !important;
  margin: 22px auto 8px !important;
  padding: 6px 10px !important;
  border-radius: 16px !important;
}

html body .app > section.balance .balance-head {
  margin-bottom: 1px !important;
}

html body .app > section.balance .balance-head span {
  font-size: 7.5px !important;
  letter-spacing: 0.2em !important;
}

html body .app > section.balance .amount {
  font-size: 25px !important;
  line-height: 1 !important;
}

html body .app > section.balance .amount span {
  font-size: 18px !important;
}

html body .app > section.stats.reveal {
  min-height: 68px !important;
  margin: 0 0 8px !important;
  padding: 4px 4px !important;
  border-radius: 18px !important;
}

html body .app > section.stats > .stat,
html body .app > section.stats > .stat.card {
  min-height: 58px !important;
  padding: 3px 2px !important;
  gap: 2px !important;
}

html body .app > section.stats > .stat .stat-icon svg {
  width: 17px !important;
  height: 17px !important;
}

html body .app > section.stats > .stat b {
  font-size: 19px !important;
}

html body .app > section.stats > .stat small {
  font-size: 9.5px !important;
}

html body .app > section.tiles.reveal {
  gap: 8px !important;
  margin: 0 0 8px !important;
}

html body .app > section.tiles > button.tile {
  min-height: 68px !important;
  padding: 8px 9px !important;
  gap: 8px !important;
  border-radius: 16px !important;
}

html body .app > section.tiles .tile-icon {
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
}

html body .app > section.tiles .tile-icon svg {
  width: 16px !important;
  height: 16px !important;
}

html body .app > section.tiles .tile-copy {
  gap: 2px !important;
}

html body .app > section.tiles .tile-copy b {
  font-size: 12px !important;
}

html body .app > section.tiles .tile-copy small {
  font-size: 8.5px !important;
}

html body .app > section.links.card.reveal {
  margin: 0 0 8px !important;
  padding: 0 4px !important;
  border-radius: 17px !important;
}

html body .app > section.links button {
  min-height: 48px !important;
  padding: 6px 9px !important;
  gap: 9px !important;
}

html body .app > section.links .link-icon {
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
}

html body .app > section.links .link-icon svg {
  width: 16px !important;
  height: 16px !important;
}

html body .app > section.links .link-text b {
  font-size: 12.5px !important;
}

html body .app > section.links .link-text small {
  font-size: 9px !important;
}

@media (max-width: 380px) {
  html body .app > section.balance.card.reveal {
    width: 148px !important;
    min-height: 56px !important;
    height: 56px !important;
    margin-top: 18px !important;
  }

  html body .app > section.tiles > button.tile {
    min-height: 64px !important;
    padding: 7px 7px !important;
  }
}

/* ===== V13 — ПЕРСОНАЖИ ЧУТЬ АККУРАТНЕЕ, БЕЗ НАЛОЖЕНИЯ БАЛАНСА ===== */
html body .app > section.hero {
  min-height: 250px !important;
  margin-bottom: 4px !important;
}

html body .app > section.hero .hero-mascots {
  max-height: 265px !important;
  width: min(100%, 340px) !important;
}

@media (max-width: 380px) {
  html body .app > section.hero {
    min-height: 225px !important;
    margin-bottom: 4px !important;
  }

  html body .app > section.hero .hero-mascots {
    max-height: 238px !important;
    width: min(100%, 310px) !important;
  }
}
