/* Consolidated UI refinement layers. Original cascade order preserved. */

/* ===== Former phase23.css ===== */
/* Phase 23 — final clean UX foundation */
html,
body {
  overscroll-behavior: none;
}

body {
  overflow: hidden;
}

.app-shell {
  height: var(--tg-viewport-height);
  min-height: var(--tg-viewport-height);
  overflow: hidden;
}

.page-container {
  height: calc(
    var(--tg-viewport-height) - var(--status-header-height) -
      var(--bottom-nav-height) - var(--safe-top) - var(--safe-bottom)
  );
  min-height: 0;
  padding: 14px calc(13px + var(--safe-right)) 20px
    calc(13px + var(--safe-left));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.page-container::-webkit-scrollbar {
  display: none;
}
.route-page {
  padding-bottom: 12px;
}
.page-header {
  margin-bottom: 13px;
}
.page-subtitle {
  max-width: 30rem;
}
.section-heading {
  margin: 16px 0 9px;
}

/* Home: one visual focus, no redundant cards */
.phase23-home {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 0;
}

.phase23-lion-stage {
  position: relative;
  isolation: isolate;
  width: min(72vw, 320px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: visible;
  border: 1px solid rgb(255 255 255 / 28%);
  background:
    radial-gradient(
      circle at 35% 24%,
      rgb(255 255 255 / 72%) 0 5%,
      transparent 22%
    ),
    radial-gradient(
      circle at 48% 38%,
      #d8dde7 0%,
      #a7afbd 48%,
      #697485 76%,
      #3b4657 100%
    );
  box-shadow:
    inset 0 18px 28px rgb(255 255 255 / 22%),
    inset 0 -24px 32px rgb(6 14 32 / 38%),
    0 24px 34px rgb(0 0 0 / 42%),
    0 5px 0 rgb(255 255 255 / 10%);
  transform: perspective(700px) rotateX(1.5deg);
}

.phase23-lion-stage::before {
  position: absolute;
  z-index: -2;
  inset: 7%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(
    circle at 42% 35%,
    rgb(255 255 255 / 22%),
    transparent 65%
  );
  box-shadow: inset 0 0 24px rgb(255 255 255 / 16%);
}

.phase23-lion-stage::after {
  position: absolute;
  z-index: -3;
  right: 12%;
  bottom: -7%;
  left: 12%;
  height: 15%;
  content: "";
  border-radius: 50%;
  background: rgb(0 0 0 / 48%);
  filter: blur(13px);
}

.phase23-lion-surface {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: none;
}

.phase23-lion-image {
  width: 96%;
  max-height: 96%;
  object-fit: contain;
  filter: drop-shadow(0 13px 10px rgb(0 0 0 / 30%));
}

.phase23-lion-level {
  position: absolute;
  z-index: 4;
  bottom: 4%;
  left: 50%;
  padding: 7px 14px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  background: rgb(5 17 42 / 86%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 7px 18px rgb(0 0 0 / 28%);
  transform: translateX(-50%);
  backdrop-filter: blur(9px);
}

/* Play / Games menus */
.phase23-menu-page {
  max-width: 560px;
  margin: 0 auto;
}

.phase23-menu-list {
  display: grid;
  gap: 11px;
}

.phase23-menu-card,
.phase23-game-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 102px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgb(255 255 255 / 10%),
    rgb(255 255 255 / 4%)
  );
  color: #f5f8ff;
  text-align: left;
  box-shadow: 0 12px 25px rgb(0 0 0 / 18%);
  cursor: pointer;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.phase23-menu-card:active,
.phase23-game-card:active {
  transform: scale(0.975);
}
.phase23-menu-card.tone-daily {
  border-color: rgb(74 222 128 / 24%);
}
.phase23-menu-card.tone-wheel {
  border-color: rgb(241 196 15 / 30%);
}
.phase23-menu-card.tone-games,
.phase23-game-card {
  border-color: rgb(255 79 225 / 24%);
}

.phase23-menu-icon,
.phase23-game-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  font-size: 1.55rem;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 24%);
}

.tone-daily .phase23-menu-icon {
  background: rgb(74 222 128 / 13%);
  color: #62e795;
}
.tone-wheel .phase23-menu-icon {
  background: rgb(241 196 15 / 14%);
  color: #ffd54f;
}
.tone-games .phase23-menu-icon,
.phase23-game-icon {
  background: rgb(255 79 225 / 12%);
  color: #ff72e9;
}
.phase23-menu-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.phase23-menu-title {
  font-size: 0.94rem;
}
.phase23-menu-description {
  color: #cbd5e7;
  font-size: 0.72rem;
  line-height: 1.35;
}
.phase23-menu-meta {
  color: var(--color-muted);
  font-size: 0.65rem;
}
.phase23-menu-arrow {
  color: var(--color-muted);
  font-size: 1.05rem;
}
.phase23-menu-badge {
  justify-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.59rem;
  font-weight: 850;
}
.phase23-menu-badge.tone-success {
  background: rgb(74 222 128 / 13%);
  color: #86efac;
}
.phase23-menu-badge.tone-accent {
  background: rgb(241 196 15 / 13%);
  color: #fcd34d;
}

/* Daily Reward */
.phase23-reward-page {
  max-width: 600px;
  margin: 0 auto;
}
.phase23-daily-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgb(74 222 128 / 24%);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgb(74 222 128 / 11%),
    rgb(255 255 255 / 4%)
  );
}
.phase23-daily-current {
  display: grid;
  min-width: 92px;
  gap: 3px;
  place-items: center;
}
.phase23-daily-current-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgb(74 222 128 / 14%);
  color: #86efac;
  font-size: 1.3rem;
}
.phase23-daily-current span {
  color: var(--color-muted);
  font-size: 0.66rem;
}
.phase23-daily-current strong {
  color: #f8fbff;
  font-size: 0.86rem;
}
.phase23-daily-copy {
  color: #cdd7e8;
  font-size: 0.72rem;
  line-height: 1.5;
}
.phase23-daily-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}
.phase23-daily-day {
  display: grid;
  min-height: 50px;
  padding: 6px 3px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgb(255 255 255 / 4%);
  color: var(--color-muted);
  font-size: 0.59rem;
}
.phase23-daily-day strong {
  color: #d8e1ef;
  font-size: 0.63rem;
}
.phase23-daily-day.is-claimed {
  border-color: rgb(74 222 128 / 32%);
  background: rgb(74 222 128 / 9%);
}
.phase23-daily-day.is-available {
  border-color: #f1c40f;
  background: rgb(241 196 15 / 13%);
  color: #fcd34d;
  box-shadow: 0 0 18px rgb(241 196 15 / 16%);
}
.phase23-main-action {
  width: 100%;
}

/* Lucky Wheel — inspired by original production interaction */
.phase23-wheel-page {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.phase23-wheel-stage {
  position: relative;
  width: min(76vw, 330px);
  aspect-ratio: 1;
  margin: 8px auto 15px;
}
.phase23-wheel-pointer {
  position: absolute;
  z-index: 5;
  top: -3px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-top: 31px solid #fff;
  filter: drop-shadow(0 4px 4px rgb(0 0 0 / 35%));
  transform: translateX(-50%);
}
.phase23-wheel {
  position: absolute;
  inset: 8px;
  overflow: hidden;
  border: 9px solid #f8d35b;
  border-radius: 50%;
  background: conic-gradient(
    #f05252 0deg 30deg,
    #3167d8 30deg 60deg,
    #f5b82e 60deg 90deg,
    #2ea66f 90deg 120deg,
    #9b59b6 120deg 150deg,
    #e76f51 150deg 180deg,
    #2d9cdb 180deg 210deg,
    #d64550 210deg 240deg,
    #f2c94c 240deg 270deg,
    #27ae60 270deg 300deg,
    #8e5cc7 300deg 330deg,
    #ed6a5a 330deg 360deg
  );
  box-shadow:
    inset 0 0 0 5px rgb(255 255 255 / 22%),
    inset 0 0 24px rgb(0 0 0 / 26%),
    0 18px 28px rgb(0 0 0 / 34%);
  transform: rotate(var(--wheel-angle, 0deg));
  will-change: transform;
}
.phase23-wheel::after {
  position: absolute;
  inset: 8%;
  content: "";
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  pointer-events: none;
}
.phase23-wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  margin-left: -26px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
  text-align: center;
  text-shadow: 0 2px 4px rgb(0 0 0 / 55%);
  transform: rotate(calc(var(--slice) * 30deg + 15deg)) translateY(-118px)
    rotate(calc((var(--slice) * -30deg) - 15deg));
  transform-origin: 26px 0;
}
.phase23-wheel-label.is-jackpot {
  color: #fff6a9;
  font-size: 0.76rem;
}
.phase23-wheel-hub {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 5px solid #f7dd74;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e8b92f 55%, #9d6810);
  color: #653c00;
  font-size: 1.45rem;
  box-shadow:
    inset 0 4px 8px rgb(255 255 255 / 55%),
    0 5px 12px rgb(0 0 0 / 38%);
  transform: translate(-50%, -50%);
}
.phase23-wheel.is-spinning {
  animation: phase23-wheel-loop 0.7s linear infinite;
}
.phase23-wheel.is-settling {
  transition: transform 4.6s cubic-bezier(0.08, 0.72, 0.08, 1);
  transform: rotate(var(--wheel-angle));
}
.phase23-wheel.is-settled {
  transform: rotate(var(--wheel-angle));
}
@keyframes phase23-wheel-loop {
  to {
    transform: rotate(360deg);
  }
}
.phase23-wheel-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}
.phase23-wheel-counters span {
  padding: 8px 5px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgb(255 255 255 / 5%);
  color: #dce5f3;
  font-size: 0.65rem;
  font-weight: 800;
}
.phase23-wheel-result {
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid rgb(74 222 128 / 30%);
  border-radius: 12px;
  background: rgb(74 222 128 / 8%);
  color: #86efac;
  font-weight: 900;
}
.phase23-wheel-result.is-jackpot {
  border-color: rgb(241 196 15 / 45%);
  background: rgb(241 196 15 / 13%);
  color: #ffe27a;
}
.phase23-wheel-spin {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.phase23-wheel-note {
  margin: 8px 5px 0;
  color: var(--color-muted);
  font-size: 0.63rem;
  line-height: 1.45;
}

/* Earn: only current-Level content, compact cards */
.phase23-earn-page {
  max-width: 570px;
  margin: 0 auto;
}
.phase23-ad-list {
  display: grid;
  gap: 9px;
}
.phase23-ad-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgb(74 222 128 / 20%);
  border-radius: 15px;
  background: linear-gradient(
    145deg,
    rgb(26 135 63 / 15%),
    rgb(255 255 255 / 4%)
  );
  box-shadow: 0 8px 20px rgb(0 0 0 / 15%);
}
.phase23-ad-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: rgb(74 222 128 / 13%);
  color: #64e291;
  font-size: 1.25rem;
}
.phase23-ad-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.phase23-ad-title {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phase23-ad-reward {
  color: #f7d36d;
  font-size: 0.66rem;
  font-weight: 800;
}
.phase23-ad-action {
  min-width: 78px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgb(255 255 255 / 6%);
  color: var(--color-muted);
  font-size: 0.65rem;
  font-weight: 850;
}
.phase23-ad-action.is-ready {
  border-color: rgb(74 222 128 / 35%);
  background: #1d8a45;
  color: #fff;
  cursor: pointer;
}
.phase23-provider-status {
  grid-column: 2 / -1;
  min-height: 0;
  margin: -2px 0 0;
  font-size: 0.61rem;
}
.phase23-tads-click-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: #f7d36d;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
}
.phase23-ad-card .provider-host {
  grid-column: 1 / -1;
}
.phase23-internal-ad {
  border-color: rgb(77 156 255 / 22%);
  background: linear-gradient(
    145deg,
    rgb(77 156 255 / 12%),
    rgb(255 255 255 / 4%)
  );
}

/* Clean shared pages without hiding required content */
.metrics-grid {
  gap: 8px;
}
.metric-card {
  padding: 11px;
}
.info-banner {
  padding: 11px 12px;
}
.action-card {
  min-height: 72px;
  padding: 11px 12px;
}
.settings-list {
  gap: 8px;
}
.definition-row {
  padding: 9px 11px;
}

@media (max-height: 680px) {
  .phase23-lion-stage {
    width: min(60vw, 260px);
  }
  .phase23-menu-card,
  .phase23-game-card {
    min-height: 86px;
    padding: 11px;
  }
  .phase23-menu-icon,
  .phase23-game-icon {
    width: 46px;
    height: 46px;
  }
  .phase23-wheel-stage {
    width: min(62vw, 275px);
  }
  .phase23-wheel-label {
    transform: rotate(calc(var(--slice) * 30deg + 15deg)) translateY(-96px)
      rotate(calc((var(--slice) * -30deg) - 15deg));
  }
}

@media (max-width: 370px) {
  .phase23-menu-card,
  .phase23-game-card {
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    gap: 9px;
  }
  .phase23-menu-icon,
  .phase23-game-icon {
    width: 46px;
    height: 46px;
  }
  .phase23-daily-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .phase23-ad-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .phase23-ad-action {
    grid-column: 1 / -1;
    width: 100%;
  }
  .phase23-provider-status {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-container {
    scroll-behavior: auto;
  }
  .phase23-wheel.is-spinning {
    animation-duration: 1.3s;
  }
  .phase23-wheel.is-settling {
    transition-duration: 0.01ms;
  }
}

/* ===== Former lion-refinement.css ===== */
/* Phase 23 refinement — Lion interaction and Settings contact cleanup */

.lion-tap-target {
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition:
    transform 110ms ease,
    filter 110ms ease,
    box-shadow 110ms ease;
}

.lion-tap-target[aria-busy="true"] {
  cursor: progress;
}

.lion-tap-target.is-lion-pressed {
  transform: perspective(700px) rotateX(3deg) scale(0.955);
  filter: brightness(0.96) saturate(1.05);
  box-shadow:
    inset 0 11px 22px rgb(255 255 255 / 16%),
    inset 0 -16px 23px rgb(6 14 32 / 48%),
    0 13px 20px rgb(0 0 0 / 34%);
}

.lion-tap-target.is-lion-pressed .phase23-lion-surface {
  transform: scale(0.985);
  box-shadow: none;
}

.lion-tap-target.is-lion-pressed .phase23-lion-image {
  transform: translateY(4px) scale(0.965);
  filter: drop-shadow(0 7px 6px rgb(0 0 0 / 25%));
}

.phase23-lion-surface,
.phase23-lion-image {
  transition:
    transform 110ms ease,
    filter 110ms ease,
    box-shadow 110ms ease;
}

.lion-effect-layer {
  position: absolute;
  z-index: 8;
  inset: 0;
  overflow: visible;
  border-radius: 50%;
  pointer-events: none;
}

.lion-float-effect {
  position: absolute;
  z-index: 30;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

.lion-float-effect.is-heart {
  top: 22%;
  left: calc(50% - 13px);
  color: #ff5275;
  font-family: Arial, sans-serif;
  font-size: 1.75rem;
  line-height: 1;
  text-shadow:
    0 2px 0 rgb(255 255 255 / 30%),
    0 7px 12px rgb(95 0 23 / 44%);
  animation: lion-heart-rise 1s cubic-bezier(0.18, 0.7, 0.32, 1) forwards;
}

.lion-float-effect.is-global {
  position: fixed;
  transform: translate(-50%, -50%);
}

.lion-float-effect.is-coin {
  min-width: 54px;
  padding: 7px 10px;
  border: 1px solid rgb(255 236 142 / 70%);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgb(255 226 94 / 98%),
    rgb(224 151 20 / 98%)
  );
  color: #4d2c00;
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow:
    inset 0 2px 2px rgb(255 255 255 / 58%),
    inset 0 -3px 5px rgb(116 60 0 / 24%),
    0 10px 20px rgb(0 0 0 / 32%);
  animation: lion-coin-rise 1.3s cubic-bezier(0.16, 0.72, 0.28, 1) forwards;
}

.lion-float-coin-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 2px solid #9b6208;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff3a4, #f1b72e 56%, #b86c08);
  color: transparent;
  box-shadow:
    inset 0 1px 2px rgb(255 255 255 / 65%),
    0 2px 3px rgb(92 47 0 / 32%);
}

@keyframes lion-heart-rise {
  0% {
    opacity: 0;
    transform: translate3d(var(--float-x, 0), 18px, 0) scale(0.55) rotate(-8deg);
  }
  18% {
    opacity: 1;
    transform: translate3d(var(--float-x, 0), 0, 0) scale(1.08) rotate(5deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--float-x, 0), -128px, 0) scale(1.3)
      rotate(-6deg);
  }
}

@keyframes lion-coin-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, -35%) scale(0.6) rotate(-8deg);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -62%) scale(1.08) rotate(4deg);
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -185%) scale(1.15) rotate(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lion-tap-target,
  .phase23-lion-surface,
  .phase23-lion-image {
    transition-duration: 0.01ms;
  }

  .lion-float-effect.is-heart,
  .lion-float-effect.is-coin {
    animation-duration: 0.45s;
  }
}

/* Phase 23_3 — contextual email copy notices */

.phase23-email-notice {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgb(77 156 255 / 22%);
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgb(77 156 255 / 9%),
    rgb(255 255 255 / 4%)
  );
  box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
}

.phase23-email-notice-title {
  color: #f1f6ff;
  font-size: 0.77rem;
  font-weight: 900;
}

.phase23-email-notice-copy {
  margin: 0;
  color: #cbd6ea;
  font-size: 0.69rem;
  line-height: 1.6;
}

.phase23-email-copy-button {
  display: inline;
  margin: 0 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #65b8ff;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgb(101 184 255 / 46%);
  text-underline-offset: 3px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.phase23-email-copy-button:active {
  color: #9bd2ff;
  transform: translateY(1px);
}

.phase23-email-copy-button:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgb(101 184 255 / 70%);
  outline-offset: 3px;
}

.phase23-email-copy-button:disabled {
  opacity: 0.72;
  cursor: default;
}

.phase23-email-copy-status {
  min-height: 1em;
  color: var(--color-muted);
  font-size: 0.61rem;
  line-height: 1.35;
}

.phase23-email-notice[data-copy-state="success"] {
  border-color: rgb(74 222 128 / 34%);
}

.phase23-email-notice[data-copy-state="success"] .phase23-email-copy-status {
  color: #86efac;
}

.phase23-email-notice[data-copy-state="error"] {
  border-color: rgb(255 93 111 / 34%);
}

.phase23-email-notice[data-copy-state="error"] .phase23-email-copy-status {
  color: #ff9baa;
}

.phase23-advertising-email {
  margin-top: 14px;
  border-color: rgb(241 196 15 / 25%);
  background: linear-gradient(
    145deg,
    rgb(241 196 15 / 9%),
    rgb(255 255 255 / 4%)
  );
}

.phase23-advertising-email .phase23-email-copy-button {
  color: #f5cf54;
  text-decoration-color: rgb(245 207 84 / 48%);
}

.phase23-advertising-email .phase23-email-copy-button:active {
  color: #ffe485;
}

/* ===== Former phase23_5.css ===== */
/* Phase 23_5 — focused refinements on the Phase 23_3 baseline */

/* ---------- Loading and original-style money rain ---------- */

.boot-screen {
  position: relative;
  isolation: isolate;
  min-height: var(--tg-viewport-height);
  overflow: hidden;
  background: linear-gradient(180deg, #081636 0%, #184295 100%);
}

.boot-mark,
.boot-title,
.boot-message,
.boot-progress-track {
  position: relative;
  z-index: 3;
}

.money-rain {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.money-note {
  position: absolute;
  top: -42px;
  left: var(--note-left, 50%);
  display: grid;
  width: 40px;
  height: 23px;
  place-items: center;
  border: 2px solid #1d7a31;
  border-radius: 5px;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgb(255 255 255 / 20%) 0 18%,
      transparent 19%
    ),
    linear-gradient(145deg, #69d477, #2d9f48);
  color: #f4fff5;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.86;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 35%),
    0 6px 10px rgb(0 0 0 / 18%);
  transform: rotate(var(--note-rotate, 0deg));
  animation: phase23_5-money-fall var(--note-duration, 5.4s) linear
    var(--note-delay, 0s) infinite;
  will-change: transform, opacity;
}

.money-note::before,
.money-note::after {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 4px;
  content: "";
  border: 1px solid rgb(236 255 239 / 40%);
  border-radius: 2px;
}

.money-note::before {
  left: 4px;
}
.money-note::after {
  right: 4px;
}

@keyframes phase23_5-money-fall {
  0% {
    opacity: 0;
    transform: translate3d(-8px, -45px, 0) rotate(var(--note-rotate, 0deg));
  }
  10% {
    opacity: 0.88;
  }
  50% {
    transform: translate3d(12px, 52vh, 0)
      rotate(calc(var(--note-rotate, 0deg) + 185deg));
  }
  100% {
    opacity: 0.32;
    transform: translate3d(-10px, 112vh, 0)
      rotate(calc(var(--note-rotate, 0deg) + 370deg));
  }
}

/* ---------- Header and XP: keep Phase 23_3 proportions ---------- */

.xp-track {
  max-width: 100%;
}

.xp-fill {
  max-width: 100%;
}

.coin-status-button {
  min-width: 0;
}

.coin-balance {
  font-weight: 900;
}

/* ---------- Better rounded Back control ---------- */

.page-back-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 196 52 / 44%);
  border-radius: 50%;
  background: linear-gradient(145deg, rgb(28 66 130 / 96%), rgb(7 25 61 / 96%));
  color: #fff2b3;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 18%),
    0 7px 15px rgb(0 0 0 / 25%);
  transition:
    transform 110ms ease,
    border-color 110ms ease,
    box-shadow 110ms ease;
}

.page-back-button .icon {
  width: 25px;
  height: 25px;
}

.page-back-button:active {
  border-color: #ffcf40;
  box-shadow:
    inset 0 2px 4px rgb(0 0 0 / 20%),
    0 3px 8px rgb(0 0 0 / 22%);
  transform: scale(0.92);
}

/* ---------- Larger primary navigation icons and labels ---------- */

:root {
  --bottom-nav-height: 82px;
}

.bottom-nav {
  padding-top: 6px;
}

.nav-button {
  grid-template-rows: 35px auto;
  gap: 3px;
  padding: 5px 1px 7px;
}

.nav-icon {
  width: 34px;
  height: 34px;
  font-size: 1.82rem;
}

.nav-label {
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.05;
}

@media (max-width: 360px) {
  .nav-icon {
    width: 31px;
    height: 31px;
    font-size: 1.68rem;
  }

  .nav-label {
    font-size: 0.61rem;
  }
}

/* ---------- Lion: continuous interaction and smoother effects ---------- */

.lion-tap-target[aria-busy="true"] {
  cursor: pointer;
}

.lion-float-effect.is-heart {
  top: 20%;
  left: calc(50% - 16px);
  color: initial;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 2rem;
  line-height: 1;
  text-shadow:
    0 2px 0 rgb(255 255 255 / 24%),
    0 9px 16px rgb(84 0 24 / 34%);
  animation: phase23_5-heart-rise 1.9s cubic-bezier(0.18, 0.68, 0.22, 1)
    forwards;
}

.lion-float-effect.is-coin {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffe070;
  font-size: 1rem;
  font-weight: 950;
  filter: drop-shadow(0 8px 10px rgb(0 0 0 / 30%));
  box-shadow: none;
  animation: phase23_5-coin-rise 1.75s cubic-bezier(0.18, 0.7, 0.25, 1) forwards;
}

.lion-float-coin-value {
  color: #ffe070;
  font-size: 1.05rem;
  font-weight: 950;
  text-shadow: 0 2px 4px rgb(78 43 0 / 45%);
}

.lion-float-coin-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 3px solid #a96d08;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 26%,
    #fff8bd 0 8%,
    #ffd85c 28%,
    #e2a51d 70%,
    #a86705 100%
  );
  color: #fff9d2;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    inset 0 2px 3px rgb(255 255 255 / 66%),
    inset 0 -3px 4px rgb(91 46 0 / 25%),
    0 5px 9px rgb(0 0 0 / 28%);
}

@keyframes phase23_5-heart-rise {
  0% {
    opacity: 0;
    transform: translate3d(var(--heart-offset, 0), 18px, 0) scale(0.62)
      rotate(var(--heart-tilt, 0deg));
  }
  14% {
    opacity: 1;
    transform: translate3d(calc(var(--heart-offset, 0) + 4px), 0, 0) scale(1.02)
      rotate(calc(var(--heart-tilt, 0deg) + 4deg));
  }
  35% {
    transform: translate3d(calc(var(--heart-offset, 0) + 18px), -46px, 0)
      scale(1.18) rotate(calc(var(--heart-tilt, 0deg) + 8deg));
  }
  58% {
    opacity: 0.76;
    transform: translate3d(calc(var(--heart-offset, 0) - 13px), -92px, 0)
      scale(1.08) rotate(calc(var(--heart-tilt, 0deg) - 6deg));
  }
  80% {
    opacity: 0.36;
    transform: translate3d(calc(var(--heart-offset, 0) + 10px), -137px, 0)
      scale(0.96) rotate(calc(var(--heart-tilt, 0deg) + 4deg));
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--heart-offset, 0) - 7px), -178px, 0)
      scale(0.78) rotate(calc(var(--heart-tilt, 0deg) - 5deg));
  }
}

@keyframes phase23_5-coin-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.7) rotate(-8deg);
  }
  18% {
    opacity: 1;
    transform: translate(-42%, -62%) scale(1.06) rotate(4deg);
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(24px, -205px) scale(0.65) rotate(18deg);
  }
}

/* ---------- Wheel: stable DOM and JS-driven smooth motion ---------- */

.wheel-visual-spinning .toast {
  opacity: 0 !important;
  pointer-events: none;
}

.phase23-wheel-experience {
  display: grid;
}

.phase23-wheel.is-spinning,
.phase23-wheel.is-settling {
  animation: none !important;
  transition: none !important;
}

.phase23-wheel-result {
  min-height: 42px;
}

.phase23-wheel-result.is-spinning-result {
  border-color: rgb(74 207 255 / 30%);
  background: rgb(74 207 255 / 8%);
  color: #9de7ff;
}

.phase23-wheel-result.is-error {
  border-color: rgb(251 113 133 / 38%);
  background: rgb(251 113 133 / 10%);
  color: #ffadba;
}

/* ---------- Account cleanup ---------- */

.account-admin-entry-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 13px;
  align-items: center;
  border: 1px solid rgb(167 139 250 / 34%);
  border-radius: 15px;
  background: linear-gradient(
    145deg,
    rgb(124 58 237 / 18%),
    rgb(255 255 255 / 5%)
  );
  color: #ede9fe;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(0 0 0 / 16%);
}

.account-admin-entry-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgb(167 139 250 / 14%);
  color: #c4b5fd;
}

.account-admin-entry-icon .icon {
  width: 21px;
  height: 21px;
}

.account-admin-entry-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.account-admin-entry-copy strong {
  font-size: 0.9rem;
  font-weight: 900;
}

.account-admin-entry-copy span {
  color: #c4b5fd;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.35;
}

.phase23_5-account-metrics {
  margin-bottom: 18px;
}

.phase23_5-delete-open {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.phase23_5-delete-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgb(255 93 111 / 34%);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgb(153 24 47 / 22%),
    rgb(255 255 255 / 4%)
  );
  box-shadow: 0 12px 26px rgb(0 0 0 / 20%);
}

.phase23_5-delete-title {
  margin: 0;
  color: #fff3f5;
  font-size: 1rem;
}

.phase23_5-delete-copy,
.phase23_5-delete-remaining {
  margin: 0;
  color: #d7deeb;
  font-size: 0.76rem;
  line-height: 1.6;
}

.phase23_5-delete-remaining {
  color: #ffd56e;
  font-weight: 800;
}

.phase23_5-delete-form {
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.phase23_5-delete-label {
  font-size: 0.75rem;
}

/* ---------- Support and advertising email sections ---------- */

.phase23-email-notice {
  gap: 8px;
  padding: 15px 16px;
}

.phase23-email-notice-title {
  margin: 0;
  color: #f7f9ff;
  font-size: 1rem;
  font-weight: 900;
}

.phase23-email-notice-copy {
  color: #d6deec;
  font-size: 0.79rem;
  line-height: 1.65;
}

.phase23-email-copy-button {
  font-size: 0.82rem;
}

.phase23-email-copy-status {
  min-height: 0;
  font-size: 0.66rem;
}

.phase23-email-copy-status:empty {
  display: none;
}

.phase23-support-email {
  border-color: rgb(77 156 255 / 30%);
  background: linear-gradient(
    145deg,
    rgb(77 156 255 / 13%),
    rgb(255 255 255 / 4%)
  );
}

.phase23-advertising-email {
  gap: 10px;
  padding: 18px;
  border-color: rgb(245 207 84 / 38%);
  background:
    radial-gradient(circle at 90% 8%, rgb(255 220 92 / 16%), transparent 34%),
    linear-gradient(145deg, rgb(111 76 11 / 32%), rgb(255 255 255 / 4%));
}

.phase23-advertising-email .phase23-email-notice-title {
  color: #ffe27a;
  font-size: 1.08rem;
}

.phase23-advertising-email .phase23-email-notice-copy {
  font-size: 0.82rem;
}

.phase23-advertising-email .phase23-email-copy-button {
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */

@media (max-height: 650px) {
  .money-note {
    width: 35px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .money-note {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    opacity: 0.22;
  }

  .lion-float-effect.is-heart,
  .lion-float-effect.is-coin {
    animation-duration: 0.5s !important;
  }
}

/* ===== Former phase23_6.css ===== */
/* Phase 23_6 — stable page updates and five focused refinements */

/* -------------------------------------------------------------------------- */
/* Loading: 10 fa-money-bill + 10 fa-money-bill-wave icons                   */
/* -------------------------------------------------------------------------- */

.money-rain {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.money-rain i {
  position: absolute;
  top: -2rem;
  display: block;
  width: 1.8rem;
  height: 1.25rem;
  color: #4caf50;
  font-size: 1.8rem;
  font-style: normal;
  opacity: 0.8;
  animation: fall linear infinite;
  filter: drop-shadow(0 4px 5px rgb(0 0 0 / 20%));
  will-change: transform, opacity;
}

/*
 * Local Font Awesome-compatible silhouettes.
 * The class names remain fa-money-bill and fa-money-bill-wave, but no
 * external CDN is required during the Telegram loading screen.
 */

.money-rain i:nth-child(1) {
  left: 10%;
  animation-duration: 4s;
  animation-delay: 0s;
}
.money-rain i:nth-child(2) {
  left: 25%;
  animation-duration: 5s;
  animation-delay: 0.25s;
}
.money-rain i:nth-child(3) {
  left: 40%;
  animation-duration: 6s;
  animation-delay: 0.5s;
}
.money-rain i:nth-child(4) {
  left: 55%;
  animation-duration: 4.5s;
  animation-delay: 0.75s;
}
.money-rain i:nth-child(5) {
  left: 70%;
  animation-duration: 5.5s;
  animation-delay: 1s;
}
.money-rain i:nth-child(6) {
  left: 85%;
  animation-duration: 6.5s;
  animation-delay: 1.25s;
}
.money-rain i:nth-child(7) {
  left: 5%;
  animation-duration: 5.2s;
  animation-delay: 1.5s;
}
.money-rain i:nth-child(8) {
  left: 20%;
  animation-duration: 4.3s;
  animation-delay: 1.75s;
}
.money-rain i:nth-child(9) {
  left: 35%;
  animation-duration: 6.1s;
  animation-delay: 2s;
}
.money-rain i:nth-child(10) {
  left: 50%;
  animation-duration: 5.8s;
  animation-delay: 2.25s;
}
.money-rain i:nth-child(11) {
  left: 65%;
  animation-duration: 4.7s;
  animation-delay: 2.5s;
}
.money-rain i:nth-child(12) {
  left: 80%;
  animation-duration: 6.2s;
  animation-delay: 2.8s;
}
.money-rain i:nth-child(13) {
  left: 15%;
  animation-duration: 5.1s;
  animation-delay: 3s;
}
.money-rain i:nth-child(14) {
  left: 30%;
  animation-duration: 4.9s;
  animation-delay: 3.3s;
}
.money-rain i:nth-child(15) {
  left: 45%;
  animation-duration: 6.3s;
  animation-delay: 3.6s;
}
.money-rain i:nth-child(16) {
  left: 60%;
  animation-duration: 5.4s;
  animation-delay: 3.9s;
}
.money-rain i:nth-child(17) {
  left: 75%;
  animation-duration: 4.6s;
  animation-delay: 4.2s;
}
.money-rain i:nth-child(18) {
  left: 90%;
  animation-duration: 6.4s;
  animation-delay: 4.6s;
}
.money-rain i:nth-child(19) {
  left: 12%;
  animation-duration: 5.6s;
  animation-delay: 4.9s;
}
.money-rain i:nth-child(20) {
  left: 37%;
  animation-duration: 4.8s;
  animation-delay: 5.25s;
}

@keyframes fall {
  0% {
    opacity: 0.8;
    transform: translateY(-3rem) rotate(0deg);
  }
  100% {
    opacity: 0.4;
    transform: translateY(110vh) rotate(360deg);
  }
}

/* Keep the loading content above the rain. */
.boot-mark,
.boot-title,
.boot-message,
.boot-progress-track {
  position: relative;
  z-index: 3;
}

/* -------------------------------------------------------------------------- */
/* Header: user name | centered Level/XP | larger Coin balance                */
/* -------------------------------------------------------------------------- */

.status-header {
  grid-template-areas: "user level coin";
  grid-template-columns:
    minmax(72px, 1fr)
    minmax(148px, 1.45fr)
    minmax(88px, 1fr);
  gap: 7px;
}

.user-home-button {
  grid-area: user;
  display: block;
  min-width: 0;
  max-width: 100%;
  justify-self: start;
  padding: 7px 5px;
  overflow: hidden;
  text-align: left;
}

.header-user-name {
  display: block;
  overflow: hidden;
  color: #f7f9ff;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-status-button {
  grid-area: level;
  width: min(100%, 220px);
  justify-self: center;
  text-align: center;
}

.level-status-top {
  justify-content: center;
  padding-left: 0;
}

.coin-status-button {
  grid-area: coin;
  min-width: 0;
  justify-self: end;
  padding: 6px 5px;
}

.coin-status-icon {
  width: 38px;
  height: 38px;
  border-width: 2px;
  font-size: 1.23rem;
}

.coin-status-copy {
  display: block;
  text-align: right;
}

.coin-balance {
  max-width: 94px;
  color: #ffc22e;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1;
}

@media (max-width: 420px) {
  .status-header {
    grid-template-columns:
      minmax(62px, 0.82fr)
      minmax(138px, 1.38fr)
      minmax(79px, 0.9fr);
    gap: 4px;
    padding-right: calc(6px + var(--safe-right));
    padding-left: calc(6px + var(--safe-left));
  }

  .header-user-name {
    font-size: 0.79rem;
  }

  .level-status-button {
    width: 100%;
  }

  .xp-row {
    grid-template-columns: 16px minmax(42px, 1fr) auto;
    gap: 4px;
    padding: 5px 6px;
  }

  .coin-status-icon {
    width: 34px;
    height: 34px;
    font-size: 1.08rem;
  }

  .coin-balance {
    max-width: 66px;
    font-size: 0.94rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Lion effects: restore the softer Phase 23_4 movement                       */
/* -------------------------------------------------------------------------- */

.lion-float-effect {
  position: absolute;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform, opacity;
}

.lion-float-effect.is-heart {
  top: 10%;
  left: 50%;
  color: initial;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 5px rgb(0 0 0 / 25%));
  text-shadow: none;
  animation: phase23_6-float-heart 4s ease-out forwards;
}

@keyframes phase23_6-float-heart {
  0% {
    opacity: 1;
    transform: translate(calc(-50% + var(--heart-offset)), 0)
      rotate(var(--heart-tilt)) scale(1);
  }
  25% {
    opacity: 0.75;
    transform: translate(calc(-50% + var(--heart-offset) + 16px), -50px)
      rotate(calc(var(--heart-tilt) + 5deg)) scale(1.2);
  }
  50% {
    opacity: 0.5;
    transform: translate(calc(-50% + var(--heart-offset) - 12px), -100px)
      rotate(calc(var(--heart-tilt) - 4deg)) scale(1.1);
  }
  75% {
    opacity: 0.25;
    transform: translate(calc(-50% + var(--heart-offset) + 9px), -150px)
      rotate(calc(var(--heart-tilt) + 3deg)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--heart-offset) - 6px), -200px)
      rotate(var(--heart-tilt)) scale(0.8);
  }
}

.lion-float-effect.is-coin.is-global {
  position: fixed;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffb400;
  font-size: 1.65rem;
  font-weight: 900;
  filter: none;
  box-shadow: none;
  text-shadow: 0 2px 4px rgb(0 0 0 / 42%);
  transform: translateX(-50%);
  animation: phase23_6-float-coin 5s ease-out forwards;
}

.lion-float-effect.is-coin .lion-float-coin-icon {
  display: inline;
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: initial;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 1.85rem;
  line-height: 1;
  filter: drop-shadow(0 4px 4px rgb(0 0 0 / 28%));
  box-shadow: none;
}

.lion-float-effect.is-coin strong {
  color: #ffb400;
  font-size: 1.65rem;
  font-weight: 900;
}

@keyframes phase23_6-float-coin {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(calc(-50% + 80px), -220px) scale(0.5);
  }
}

/* The mounted page root is retained during state updates. */
.page-container > .page {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .money-rain i {
    animation-duration: 9s !important;
    animation-iteration-count: infinite !important;
  }

  .lion-float-effect.is-heart,
  .lion-float-effect.is-coin {
    animation-duration: 0.8s !important;
  }
}

/* ===== Former phase23_7.css ===== */
/* Phase 23_7 — final focused visual and preload refinements */

/* Larger loading-money icons while preserving the Phase 23_6 fall pattern. */
.money-rain i {
  top: -2.35rem;
  width: 2.15rem;
  height: 1.5rem;
  font-size: 2.15rem;
}

.money-rain i::after {
  font-size: 0.56em;
}

/* The Level is already visible in the centered status header. */
.phase23-lion-level {
  display: none !important;
}

/* Wheel counters were removed from the page renderer. */
.phase23-wheel-counters {
  display: none !important;
}

.phase23-wheel-experience {
  gap: 10px;
}

/* -------------------------------------------------------------------------- */
/* Minesweeper: a mathematically fixed 9 × 9 square board                     */
/* -------------------------------------------------------------------------- */

.minesweeper-panel {
  width: min(94vw, 430px);
}

.mines-grid {
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(9, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  gap: 4px !important;
  width: min(100%, 360px);
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  overflow: hidden;
}

.mines-cell,
.mines-cell.is-revealed,
.mines-cell.is-mine,
.mines-cell.is-exploded {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-width: 1px !important;
  line-height: 1 !important;
  place-items: center;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.72rem, 3.1vw, 1rem);
  font-variant-numeric: tabular-nums;
  contain: layout paint;
}

/* The redundant safe-cells message below the board no longer exists. */
.mines-message {
  display: none !important;
}

.mines-actions {
  margin-top: 12px;
}

.mines-actions [hidden] {
  display: none !important;
}

.minesweeper-panel.is-complete .mines-grid {
  box-shadow:
    0 0 0 1px rgb(74 222 128 / 28%),
    0 12px 24px rgb(0 0 0 / 24%);
}

.minesweeper-panel.is-lost .mines-grid {
  box-shadow:
    0 0 0 1px rgb(251 113 133 / 30%),
    0 12px 24px rgb(0 0 0 / 24%);
}

@media (max-width: 380px) {
  .mines-grid {
    width: min(100%, 324px);
    max-width: 324px;
    gap: 3px !important;
  }

  .mines-cell,
  .mines-cell.is-revealed,
  .mines-cell.is-mine,
  .mines-cell.is-exploded {
    font-size: clamp(0.66rem, 3vw, 0.9rem);
  }
}
