/* V1.36Beta-home-actions-unified6: one reset, clipped scene layer beneath one ornamental frame. */
:root {
  --home-action-unified-frame: url("assets/ui/skill-inspect-frame-icegold-v1.png?v=V1.36Beta-home-actions-unified1");
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .mode-select {
  width: min(900px, 100%) !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  gap: clamp(9px, 1.25vw, 15px) !important;
  overflow: visible !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .lobby-actions {
  width: min(900px, 100%) !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(7px, 1vw, 12px) !important;
  overflow: visible !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .mode-select button[data-mode="1v1"] {
  --home-action-scene: url("assets/ui/main-4k/mode-1v1-cover-crystal-clean-4k-v1.webp?v=V1.36Beta-home-actions-unified1");
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .mode-select button[data-mode="2v2"] {
  --home-action-scene: url("assets/ui/main-4k/mode-2v2-cover-crystal-clean-4k-v1.webp?v=V1.36Beta-home-actions-unified1");
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .mode-select button[data-mode="3v3"] {
  --home-action-scene: url("assets/ui/main-4k/mode-3v3-cover-crystal-clean-4k-v1.webp?v=V1.36Beta-home-actions-unified1");
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .mode-select button[data-mode="identity"] {
  --home-action-scene: url("assets/ui/main-4k/mode-identity-cover-crystal-clean-4k-v1.webp?v=V1.36Beta-home-actions-unified1");
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .lobby-actions > #createBotRoom {
  --home-action-scene: url("assets/ui/main-4k/home-action-bot-practice-semantic-4k-v2.webp?v=V1.36Beta-home-actions-unified1");
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .lobby-actions > #showRules {
  --home-action-scene: url("assets/ui/main-4k/home-action-rules-semantic-4k-v2.webp?v=V1.36Beta-home-actions-unified1");
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .lobby-actions > #showGameCodex {
  --home-action-scene: url("assets/ui/main-4k/home-action-codex-semantic-4k-v2.webp?v=V1.36Beta-home-actions-unified1");
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  :is(
    .mode-select button[data-mode],
    .lobby-actions > #createBotRoom,
    .lobby-actions > #showRules,
    .lobby-actions > #showGameCodex
  ) {
  position: relative !important;
  isolation: isolate !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1835 / 857 !important;
  padding: 8% 7% 7% !important;
  display: grid !important;
  align-content: center !important;
  justify-items: center !important;
  gap: clamp(2px, 0.35vw, 5px) !important;
  overflow: visible !important;
  clip-path: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  opacity: 1 !important;
  image-rendering: auto !important;
  text-rendering: geometricPrecision !important;
  transition: transform 150ms ease !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  :is(
    .mode-select button[data-mode],
    .lobby-actions > #createBotRoom,
    .lobby-actions > #showRules,
    .lobby-actions > #showGameCodex
  )::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: 12.2% 4.8% 8.8% !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 8.5% / 19% !important;
  clip-path: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(249, 253, 255, 0.5), rgba(221, 241, 255, 0.14) 46%, rgba(12, 54, 91, 0.08) 100%),
    var(--home-action-scene) center / cover no-repeat !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    inset 0 -12px 24px rgba(30, 83, 126, 0.08) !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  :is(
    .mode-select button[data-mode],
    .lobby-actions > #createBotRoom,
    .lobby-actions > #showRules,
    .lobby-actions > #showGameCodex
  )::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  visibility: visible !important;
  border: 0 !important;
  outline: 0 !important;
  background: var(--home-action-unified-frame) center / 100% 100% no-repeat !important;
  clip-path: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  :is(
    .mode-select button[data-mode],
    .lobby-actions > #createBotRoom,
    .lobby-actions > #showRules,
    .lobby-actions > #showGameCodex
  ) > :is(span, small) {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #113f62 !important;
  -webkit-text-fill-color: currentColor !important;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .mode-select button[data-mode] > span {
  font-size: clamp(27px, 2.65vw, 39px) !important;
  font-weight: 950 !important;
  line-height: 0.96 !important;
  text-shadow: 0 1px 0 #ffffff, 0 2px 2px rgba(11, 42, 67, 0.26) !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .mode-select button[data-mode] > small {
  font-size: clamp(12px, 1.05vw, 15px) !important;
  font-weight: 850 !important;
  line-height: 1.05 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.94) !important;
}

/* Scene art belongs exclusively to ::after. Painting it on the button itself
   bypasses the frame aperture and leaks through the transparent outer corners. */

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .lobby-actions > :is(#createBotRoom, #showRules, #showGameCodex)::after {
  background:
    linear-gradient(90deg, rgba(250, 253, 255, 0.84) 0%, rgba(240, 249, 255, 0.66) 43%, rgba(223, 242, 255, 0.12) 78%),
    var(--home-action-scene) center / cover no-repeat !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .lobby-actions > :is(#createBotRoom, #showRules, #showGameCodex) > :is(span, small) {
  width: 68% !important;
  justify-self: start !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .lobby-actions > :is(#createBotRoom, #showRules, #showGameCodex) > span {
  font-size: clamp(18px, 1.55vw, 25px) !important;
  font-weight: 950 !important;
  line-height: 0.98 !important;
  text-shadow: 0 1px 0 #ffffff, 0 2px 2px rgba(11, 42, 67, 0.22) !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .lobby-actions > :is(#createBotRoom, #showRules, #showGameCodex) > small {
  font-size: clamp(10px, 0.82vw, 13px) !important;
  font-weight: 850 !important;
  line-height: 1.05 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.94) !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  :is(
    .mode-select button[data-mode],
    .lobby-actions > #createBotRoom,
    .lobby-actions > #showRules,
    .lobby-actions > #showGameCodex
  ):is(:hover, :focus-visible):not(:disabled) {
  transform: translateY(-2px) !important;
  filter: none !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  :is(
    .mode-select button[data-mode],
    .lobby-actions > #createBotRoom,
    .lobby-actions > #showRules,
    .lobby-actions > #showGameCodex
  ):active:not(:disabled) {
  transform: translateY(1px) !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
  .mode-select button[data-mode].selected::after {
  box-shadow:
    inset 0 0 0 2px rgba(96, 178, 231, 0.7),
    inset 0 0 26px rgba(137, 210, 255, 0.25),
    0 5px 14px rgba(24, 79, 119, 0.18) !important;
}

@media (max-width: 720px) {
  html body:not(.maintenance-mode)
    #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
    :is(.mode-select, .lobby-actions) {
    width: min(94vw, 540px) !important;
  }

  html body:not(.maintenance-mode)
    #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
    .mode-select button[data-mode] > span {
    font-size: clamp(23px, 7vw, 30px) !important;
  }

  html body:not(.maintenance-mode)
    #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
    .mode-select button[data-mode] > small {
    font-size: clamp(11px, 3.2vw, 14px) !important;
  }

  html body:not(.maintenance-mode)
    #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
    .lobby-actions > :is(#createBotRoom, #showRules, #showGameCodex) {
    padding-inline: 4.5% !important;
  }

  html body:not(.maintenance-mode)
    #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
    .lobby-actions > :is(#createBotRoom, #showRules, #showGameCodex) > span {
    font-size: clamp(14px, 4.1vw, 17px) !important;
  }

  html body:not(.maintenance-mode)
    #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
    .lobby-actions > :is(#createBotRoom, #showRules, #showGameCodex) > small {
    font-size: clamp(8px, 2.35vw, 10px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body:not(.maintenance-mode)
    #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.solo.solo
    :is(
      .mode-select button[data-mode],
      .lobby-actions > #createBotRoom,
      .lobby-actions > #showRules,
      .lobby-actions > #showGameCodex
    ) {
    transition: none !important;
  }
}
