/* Page-specific overrides load after the split base stylesheets. */

#webApp .home-v3--legacy {
  min-height: 100%;
  padding: 0 0 calc(var(--platform-bottom-nav-height, 67px) + var(--web-visual-viewport-bottom-gap, 0px) + 12px);
  color: #f8d665;
  background:
    linear-gradient(180deg, rgba(255, 204, 72, 0.08), transparent 128px),
    #100c09;
}

#webApp .legacy-home {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 100%;
  align-content: start;
  grid-auto-rows: max-content;
  overflow-x: hidden;
}

#webApp .legacy-home__banner {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 640;
  height: auto;
  max-height: none;
  min-height: 0;
  align-self: start;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #090806;
  cursor: pointer;
}

#webApp .legacy-home__banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

#webApp .home-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

#webApp .home-carousel-track > img {
  flex: 0 0 var(--home-carousel-slide-width, 100%) !important;
  width: var(--home-carousel-slide-width, 100%) !important;
  max-width: none !important;
  min-width: 0 !important;
  display: block !important;
  pointer-events: none !important;
}

#webApp .legacy-home__carousel-track {
  position: absolute;
  inset: 0;
}

#webApp .legacy-home__carousel-track > img {
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

#webApp .home-v3__carousel-track {
  height: auto;
  line-height: 0;
}

#webApp .home-v3__carousel-track > img {
  height: auto !important;
  object-fit: contain !important;
}

#webApp .legacy-home__banner--fallback {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 7px;
  padding: 22px;
  color: #ffe172;
  text-align: left;
}

#webApp .legacy-home__banner--fallback span,
#webApp .legacy-home__banner--fallback em {
  color: #fff0a6;
  font-style: normal;
  font-size: 13px;
}

#webApp .legacy-home__banner--fallback strong {
  color: #ffc400;
  font-size: 32px;
  line-height: 1;
}

#webApp .legacy-home__dots {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 22px;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  z-index: 2;
}

#webApp .legacy-home__dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.9;
}

#webApp .legacy-home__dots .legacy-home__dot--active {
  background: #ffc400;
}

#webApp .legacy-home__notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: -10px;
  min-height: 36px;
  padding: 0 14px;
  border-top: 1px solid rgba(255, 220, 116, 0.28);
  border-bottom: 1px solid rgba(255, 220, 116, 0.28);
  background: #17120d;
  overflow: hidden;
}

#webApp .legacy-home__notice span {
  color: #ffd15a;
  font-size: 13px;
  font-weight: 900;
}

#webApp .legacy-home__notice div {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

#webApp .legacy-home__notice strong {
  display: inline-block;
  width: max-content;
  min-width: max-content;
  padding-left: 100%;
  color: #ffc400;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  will-change: transform;
  animation: legacyNoticeMarquee 22s linear infinite;
  animation-play-state: running;
}

@keyframes legacyNoticeMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-100%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #webApp .home-carousel-track {
    transition-duration: 1ms;
  }

  #webApp .legacy-home__notice strong {
    animation-name: legacyNoticeMarquee !important;
    animation-duration: 22s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
  }
}

#webApp .legacy-home__account {
  margin: 0 16px;
  min-height: 108px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 235, 170, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(135deg, #2a211c, #0f0b09 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.22);
}

#webApp .legacy-home__avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #c7ab63;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

#webApp .legacy-home__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#webApp .legacy-home__account-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

#webApp .legacy-home__account-main strong {
  color: #ffc400;
  font-size: 15px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#webApp .legacy-home__account-main span {
  color: #ffc400;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

#webApp .legacy-home__account-actions {
  display: flex;
  gap: 14px;
}

#webApp .legacy-home__account-actions button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 44px;
  border: 0;
  background: transparent;
  color: #ffc400;
  cursor: pointer;
}

#webApp .legacy-home__account-actions b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid #d7a84d;
  border-radius: 50%;
  color: #231812;
  background: #ffe39a;
  font-size: 20px;
  line-height: 1;
}

#webApp .legacy-home__account-actions span {
  font-size: 14px;
  font-weight: 900;
}

#webApp .legacy-home__section-divider {
  display: grid;
  grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 16px;
  color: #8c7133;
}

#webApp .legacy-home__section-divider span {
  height: 1px;
  background: rgba(74, 55, 29, 0.42);
}

#webApp .legacy-home__section-divider strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 24px;
}

#webApp .legacy-home__game-area {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 0 12px 10px;
}

#webApp .legacy-home__category-tabs {
  position: sticky;
  top: 8px;
  display: grid;
  gap: 10px;
}

#webApp .legacy-home__category-tabs button {
  min-height: 50px;
  padding: 0 8px;
  border: 0;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.56);
  background: linear-gradient(180deg, #eef4f9, #cbd6e0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 7px 14px rgba(0, 0, 0, 0.22);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

#webApp .legacy-home__category-tabs .legacy-home__category-tab--active {
  color: #ffc400;
  background: linear-gradient(180deg, #ffffff, #dfe8f0);
}

#webApp .legacy-home__card-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

#webApp .legacy-home__game-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

#webApp .legacy-home__game-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

#webApp .legacy-home__game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

#webApp .legacy-home__card-copy {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 14px;
  display: grid;
  gap: 2px;
}

#webApp .legacy-home__card-copy strong {
  color: #ffc400;
  font-size: 16px;
  font-weight: 950;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

#webApp .legacy-home__card-copy em {
  color: #ffc400;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

#webApp .legacy-home__card-cta {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 10px;
  display: inline-grid;
  place-items: center;
  min-width: 62px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #ff3751, #d5132e);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(159, 10, 31, 0.36);
}

#webApp .legacy-home__empty {
  min-height: 140px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px dashed rgba(255, 214, 111, 0.42);
  border-radius: 12px;
  color: #d6c08a;
  background: #17120d;
  text-align: center;
}

#webApp .room-card__enter-label {
  display: none;
}

#webApp .room-list-modal--legacy {
  top: var(--web-visual-viewport-offset-top, 0px) !important;
  bottom: auto !important;
  height: var(--web-visual-viewport-height, 100dvh) !important;
  align-items: stretch !important;
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.72) !important;
}

#webApp .room-list-modal--legacy .room-list-modal__backdrop {
  background: rgba(0, 0, 0, 0.84) !important;
  backdrop-filter: none !important;
}

#webApp .room-list-modal--legacy .room-list-panel,
#webApp[class] .room-list-modal--legacy .room-list-panel {
  width: 100% !important;
  max-height: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffc400 !important;
  background: #020202 !important;
  box-shadow: none !important;
}

#webApp .room-list-modal--legacy .room-list-panel__head {
  min-height: 84px !important;
  padding: 26px 56px 16px !important;
  border: 0 !important;
  color: #ffc400 !important;
  background: #020202 !important;
  font-size: 23px !important;
}

#webApp .room-list-modal--legacy .room-list-panel__head strong {
  color: #ffc400 !important;
  font-weight: 950 !important;
}

#webApp .room-list-modal--legacy .room-list-panel__head button {
  top: 26px !important;
  right: 12px !important;
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  color: #d7d7d7 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 34px !important;
}

#webApp .room-list-modal--legacy .room-list-panel__body {
  gap: 8px !important;
  padding: 0 16px 22px !important;
  background: #020202 !important;
  overflow-y: auto !important;
}

#webApp .room-list-modal--legacy .room-card,
#webApp[class] .room-list-modal--legacy .room-card {
  position: relative !important;
  width: 100% !important;
  height: clamp(136px, 38vw, 164px) !important;
  min-height: 136px !important;
  aspect-ratio: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #111 !important;
}

#webApp .room-list-modal--legacy .room-card img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

#webApp .room-list-modal--legacy .room-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.04) 48%, rgba(0, 0, 0, 0.6));
}

#webApp .room-list-modal--legacy .room-card .room-card__content,
#webApp .room-list-modal--legacy .room-card--has-image .room-card__content,
#webApp .room-list-modal--legacy .room-card .room-card__enter-label {
  display: grid !important;
}

#webApp .room-list-modal--legacy .room-card .room-card__content {
  position: absolute !important;
  z-index: 2 !important;
  right: 18px !important;
  top: 24px !important;
  width: clamp(118px, 44vw, 168px) !important;
  min-width: 0 !important;
  padding: 0 !important;
  justify-items: start !important;
  gap: 4px !important;
}

#webApp .room-list-modal--legacy .room-card .room-card__content strong {
  color: #fff1a6 !important;
  font-size: clamp(21px, 6.3vw, 27px) !important;
  line-height: 1.1 !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.84) !important;
}

#webApp .room-list-modal--legacy .room-card .room-card__content em {
  max-width: 100% !important;
  overflow: hidden !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.84) !important;
  white-space: nowrap !important;
}

#webApp .room-list-modal--legacy .room-card .room-card__enter-label {
  position: absolute !important;
  z-index: 3 !important;
  right: 18px !important;
  bottom: 16px !important;
  width: 92px !important;
  min-width: 0 !important;
  height: 30px !important;
  padding: 0 8px !important;
  place-items: center !important;
  border-radius: 5px !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #d94a3e, #9f201b) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.24) !important;
}

#webApp .room-list-modal--legacy .room-card > i {
  display: none !important;
}

#webApp .mobile-shell--legacy-draw {
  background: #bff0d9 !important;
}

#webApp .mobile-shell--legacy-draw .draw-page,
#webApp .mobile-shell--legacy-draw .mark-six-page {
  position: relative !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #bff0d9 !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__header,
#webApp .mobile-shell--legacy-draw .mark-six-page__header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 8 !important;
  height: 42px !important;
  min-height: 42px !important;
  border: 0 !important;
  color: #ffc400 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__back,
#webApp .mobile-shell--legacy-draw .mark-six-page__back,
#webApp .mobile-shell--legacy-draw .mark-six-page__refresh {
  color: #f1f1f1 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__title,
#webApp .mobile-shell--legacy-draw .mark-six-page__header strong {
  color: #ffc400 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

#webApp .legacy-draw-rail {
  position: absolute;
  left: 10px;
  top: 334px;
  z-index: 16;
  display: grid;
  gap: 13px;
  width: 48px;
}

#webApp .legacy-draw-rail button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: #2998d8;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(29, 106, 158, 0.2);
}

#webApp .mobile-shell--legacy-draw .draw-page__board,
#webApp .mobile-shell--legacy-draw .mark-six-page__board {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 42px 10px 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  background: #363636 !important;
  box-shadow: none !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__board-top,
#webApp .mobile-shell--legacy-draw .mark-six-page__board-top,
#webApp .mobile-shell--legacy-draw .mark-six-page__latest {
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__expect,
#webApp .mobile-shell--legacy-draw .draw-page__timer-info,
#webApp .mobile-shell--legacy-draw .draw-page__timer-info strong,
#webApp .mobile-shell--legacy-draw .draw-page__result-meta,
#webApp .mobile-shell--legacy-draw .draw-page__result-meta strong,
#webApp .mobile-shell--legacy-draw .mark-six-page__board-top em,
#webApp .mobile-shell--legacy-draw .mark-six-page__board-top span {
  color: #ffffff !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__expect::first-letter,
#webApp .mobile-shell--legacy-draw .mark-six-page__board-top span:first-child {
  color: #ffc400 !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__timer-slot,
#webApp .mobile-shell--legacy-draw .mark-six-page__timer b {
  border: 1px solid #dfba67 !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  background: #1d1d1d !important;
  box-shadow: inset 0 0 8px rgba(255, 210, 108, 0.38) !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__result-panel {
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  min-height: 0 !important;
  padding: 4px 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__result-meta {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  padding: 0 2px !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__result-row {
  justify-content: center !important;
  gap: 10px !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__result-panel .number-box {
  width: 66px !important;
  min-width: 66px !important;
  height: 58px !important;
  border: 2px solid #dfba67 !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  background: #242424 !important;
  font-size: 40px !important;
  box-shadow: inset 0 0 10px rgba(255, 210, 108, 0.32) !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__result-panel .operator {
  color: #dfba67 !important;
  font-size: 30px !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__user-strip,
#webApp .mobile-shell--legacy-draw .mark-six-page__user {
  margin: 0 -10px -10px !important;
  padding: 8px 10px !important;
  color: #ffffff !important;
  background: #575757 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__user-actions,
#webApp .mobile-shell--legacy-draw .mark-six-page__user button {
  display: none !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__chat,
#webApp .mobile-shell--legacy-draw .mark-six-page__chat {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 56px 12px 10px 70px !important;
  background: #bff0d9 !important;
  border: 0 !important;
  scrollbar-width: none;
}

#webApp .mobile-shell--legacy-draw .draw-page__chat::-webkit-scrollbar,
#webApp .mobile-shell--legacy-draw .mark-six-page__chat::-webkit-scrollbar {
  display: none;
}

#webApp .mobile-shell--legacy-draw .draw-message__bubble {
  color: #303030 !important;
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
}

#webApp .mobile-shell--legacy-draw .draw-message__bubble--system {
  background: #dfa1c1 !important;
  color: #6a1632 !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__tools,
#webApp .mobile-shell--legacy-draw .mark-six-page__tools {
  display: none !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__composer,
#webApp .mobile-shell--legacy-draw .mark-six-page__composer {
  grid-template-columns: minmax(0, 1fr) 60px 96px 0 !important;
  gap: 6px !important;
  padding: 8px !important;
  background: #575757 !important;
  border: 0 !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__composer-label,
#webApp .mobile-shell--legacy-draw .draw-page__composer-more {
  display: none !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__composer-input {
  height: 58px !important;
  border-radius: 5px !important;
  color: #6b6b6b !important;
  background: #ffffff !important;
  font-size: 18px !important;
}

#webApp .mobile-shell--legacy-draw .draw-page__composer > button:not(.draw-page__composer-input),
#webApp .mobile-shell--legacy-draw .mark-six-page__composer > button:not(.draw-page__composer-input) {
  height: 58px !important;
  border: 1px solid #ffffff !important;
  border-radius: 5px !important;
  color: #ffffff !important;
  background: #4c95e1 !important;
  font-size: 18px !important;
}

@media (max-width: 380px) {
  #webApp .legacy-home__game-area {
    grid-template-columns: 84px minmax(0, 1fr);
    padding-inline: 12px;
  }

  #webApp .legacy-home__category-tabs button {
    min-height: 46px;
    font-size: 14px;
  }

  #webApp .legacy-home__account {
    margin-inline: 12px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: 12px;
  }

  #webApp .legacy-home__avatar {
    width: 48px;
    height: 48px;
  }

  #webApp .legacy-home__account-main span {
    font-size: 20px;
  }

  #webApp .legacy-draw-rail {
    top: 314px;
    left: 8px;
    width: 44px;
    gap: 11px;
  }

  #webApp .legacy-draw-rail button {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  #webApp .mobile-shell--legacy-draw .draw-page__result-panel .number-box {
    width: 54px !important;
    min-width: 54px !important;
    height: 52px !important;
    font-size: 34px !important;
  }
}

/* Legacy mobile draw room: black board, inline composer, and reference-style chat rhythm. */
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw {
  overflow-x: hidden !important;
  background: #bff0d9 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page {
  height: var(--web-visual-viewport-height, 100dvh) !important;
  min-height: var(--web-visual-viewport-height, 100dvh) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #bff0d9 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__header,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page__header {
  display: none !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__board,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__board,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__board,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__board {
  position: relative !important;
  flex: 0 0 274px !important;
  width: 100% !important;
  height: 274px !important;
  min-height: 274px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  background: #363636 !important;
  box-shadow: none !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__board::before,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__board::after {
  display: none !important;
}

#webApp .legacy-draw-title {
  position: absolute;
  z-index: 6;
  top: 14px;
  left: 10px;
  display: grid;
  gap: 3px;
  max-width: 146px;
  text-align: left;
  pointer-events: none;
}

#webApp .legacy-draw-title strong {
  color: #ffc400;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.75);
}

#webApp .legacy-draw-title span {
  color: #27e348;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .legacy-draw-room-picker {
  position: absolute !important;
  z-index: 8 !important;
  top: 18px !important;
  right: 0 !important;
  width: 34px !important;
  height: 38px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 20px 0 0 20px !important;
  color: #ffffff !important;
  background: #6857d8 !important;
  box-shadow: 0 5px 14px rgba(51, 38, 151, 0.46) !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  cursor: pointer !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__board-top,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__board-top,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__board-top,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__board-top {
  position: relative !important;
  flex: 0 0 60px !important;
  min-height: 60px !important;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__board-top > div:first-child {
  position: absolute !important;
  right: 9px !important;
  top: 13px !important;
  width: 130px !important;
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
  color: #f7f7f7 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  white-space: normal !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .legacy-draw-next {
  position: absolute !important;
  right: 8px !important;
  top: 12px !important;
  width: 120px !important;
  display: grid !important;
  gap: 2px !important;
  color: #f5f5f5 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .legacy-draw-next b {
  color: #20e33f !important;
  font-weight: 900 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__timer,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__timer {
  position: absolute !important;
  z-index: 5 !important;
  left: calc(50% - 13px) !important;
  top: 15px !important;
  transform: translateX(-50%) !important;
  display: block !important;
  min-width: 0 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__timer-info {
  display: none !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__timer-slots,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__timer {
  height: 35px !important;
  min-width: 116px !important;
  padding: 0 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  border: 1px solid #dfba67 !important;
  border-radius: 5px !important;
  background: linear-gradient(180deg, #282828 0%, #060606 50%, #262626 100%) !important;
  box-shadow: inset 0 0 8px rgba(255, 210, 108, 0.42), 0 2px 5px rgba(0, 0, 0, 0.38) !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__timer-text {
  display: block !important;
  width: max-content !important;
  min-width: 0 !important;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1 !important;
  text-shadow: 0 1px 2px #000 !important;
  white-space: nowrap !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__timer-slot,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__timer b {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-shadow: 0 1px 2px #000 !important;
  white-space: nowrap !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__timer-slot:first-child {
  display: none !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__timer-slots--stage .draw-page__timer-slot:first-child {
  display: inline-flex !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__timer-slots--stage .draw-page__timer-slot::after {
  display: none !important;
  content: "" !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__timer-slot:nth-child(2)::after,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__timer b:nth-child(2)::after {
  content: " \5206";
  padding-left: 2px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__timer-slot:nth-child(3)::after,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__timer b:nth-child(3)::after {
  content: " \79d2";
  padding-left: 2px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-panel,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-panel,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__latest,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__latest {
  flex: 0 0 125px !important;
  min-height: 125px !important;
  height: 125px !important;
  margin: 0 !important;
  padding: 0 8px 7px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: start !important;
  justify-items: stretch !important;
  gap: 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-meta {
  width: 100% !important;
  min-height: 22px !important;
  padding: 0 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  color: #ffffff !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-meta--legacy span {
  padding: 0 !important;
  color: #ffffff !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-meta--legacy b {
  color: #ff1919 !important;
  font-weight: 950 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-meta strong {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-meta span {
  padding: 0 !important;
  color: #33e549 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-row {
  width: min(341px, 100%) !important;
  max-width: 341px !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 52px 18px 52px 18px 52px 18px 62px !important;
  grid-auto-rows: auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11.5px !important;
  margin-inline: auto !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-panel .number-box {
  width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  border: 2px solid #dfba67 !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  background: #242424 !important;
  box-shadow: inset 0 0 10px rgba(255, 210, 108, 0.32), 0 2px 4px rgba(0, 0, 0, 0.45) !important;
  font-size: 32px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-panel .operator {
  color: #dfba67 !important;
  font-size: 23px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .result-tags {
  grid-column: 1 / -1 !important;
  display: grid !important;
  position: relative !important;
  left: 50% !important;
  width: min(350px, calc(100vw - 16px)) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr) 10px) minmax(0, 1fr) !important;
  justify-content: center !important;
  gap: 5px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .result-tag {
  box-sizing: border-box !important;
  min-width: 0 !important;
  height: 28px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #dfba67 !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #3f3f3f 0%, #080808 54%, #333333 100%) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  box-shadow: inset 0 0 8px rgba(255, 210, 108, 0.28) !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .result-tag-separator {
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  color: #dfba67 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__composer--legacy-inline,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__composer--legacy-inline {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 4 !important;
  flex: 0 0 56px !important;
  width: 100% !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 5px 4px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 46px 46px 74px !important;
  align-items: stretch !important;
  gap: 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #575757 !important;
  box-shadow: none !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__composer--legacy-inline .draw-page__composer-input,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__composer--legacy-inline .draw-page__composer-input {
  min-width: 0 !important;
  height: 46px !important;
  padding: 0 7px !important;
  border: 1px solid rgba(223, 186, 103, 0.7) !important;
  border-radius: 5px !important;
  color: #707070 !important;
  background: #ffffff !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  text-align: left !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__composer--legacy-inline .draw-page__composer-keyboard {
  height: 46px !important;
  border: 0 !important;
  border-radius: 5px !important;
  color: #48413d !important;
  background: #d4bd7b !important;
  font-size: 27px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__composer--legacy-inline > button:not(.draw-page__composer-input):not(.draw-page__composer-keyboard) {
  height: 46px !important;
  border: 1px solid #ffffff !important;
  border-radius: 5px !important;
  color: #ffffff !important;
  background: #4c95e1 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__composer--legacy-inline .draw-page__composer-more {
  display: grid !important;
  place-items: center !important;
  background: #5f5f5f !important;
  font-size: 14px !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__user-strip,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__user-strip,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__user,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page .mark-six-page__user {
  flex: 0 0 33px !important;
  min-height: 33px !important;
  margin: 0 !important;
  padding: 3px 7px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  background: #575757 !important;
  box-shadow: none !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__user-actions,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page__user > button {
  display: none !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__user-avatar,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page__avatar {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border: 1px solid rgba(255, 213, 108, 0.55) !important;
  background: #d2b871 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__user-meta,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page__user-meta {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #ffffff !important;
  font-size: 13px !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__user-balance b,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page__user-balance b {
  color: #ff1f1f !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .legacy-draw-online {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 3px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .legacy-draw-online b {
  color: #ff1f1f !important;
  font-weight: 950 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__chat,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__chat,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page__chat,
#webApp[class] .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page__chat {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px 12px 12px 70px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #bff0d9 !important;
  box-shadow: none !important;
  scrollbar-width: none !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__chat::-webkit-scrollbar,
#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page__chat::-webkit-scrollbar {
  display: none !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .legacy-draw-rail {
  top: 290px !important;
  left: 12px !important;
  width: 48px !important;
  gap: 17px !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .legacy-draw-rail button {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  background: #2799dc !important;
  font-size: 16px !important;
  font-weight: 950 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-message {
  margin-bottom: 12px !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-message__bubble {
  max-width: min(340px, 72vw) !important;
  border-radius: 4px !important;
  color: #303030 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  font-size: 17px !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-message__bubble--system {
  color: #6a1632 !important;
  background: #dfa1c1 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-page__latest > span {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

#webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .mark-six-balls {
  justify-content: center !important;
  gap: 5px !important;
  padding-top: 10px !important;
}

@media (max-width: 420px) {
  #webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-page__composer--legacy-inline {
    grid-template-columns: minmax(0, 1fr) 46px 46px 74px !important;
    gap: 6px !important;
  }

  #webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-row {
    grid-template-columns: 52px 18px 52px 18px 52px 18px 62px !important;
    gap: 11.5px !important;
  }

  #webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-panel .number-box {
    height: 46px !important;
    font-size: 32px !important;
  }
}

@media (max-width: 360px) {
  #webApp .mobile-shell.mobile-shell--draw.mobile-shell--legacy-draw .draw-card.draw-page .draw-page__result-row {
    width: 100% !important;
    grid-template-columns: minmax(42px, 1fr) 16px minmax(42px, 1fr) 16px minmax(42px, 1fr) 16px minmax(54px, 1.18fr) !important;
    gap: 4px !important;
  }
}

/* Shared nickname editor for both homepage layouts and the profile page. */
#webApp .profile-name-edit {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
}

#webApp .profile-name-edit > strong,
#webApp .profile-name-edit > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#webApp .profile-name-edit__button {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #8a5a00;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

#webApp .profile-name-edit__button img {
  display: block;
  width: 16px;
  height: 16px;
}

#webApp .profile-name-edit__button:focus-visible {
  outline: 2px solid #ffb700;
  outline-offset: 2px;
}

#webApp .profile-name-edit--profile {
  width: fit-content;
  max-width: min(240px, 58vw);
}

#webApp .profile-name-edit--profile .profile-name-edit__button {
  background: rgba(255, 184, 0, 0.14);
}

#webApp .profile-nickname-modal {
  position: fixed;
  z-index: 1600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
}

#webApp .profile-nickname-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(20, 24, 34, 0.52);
}

#webApp .profile-nickname-modal__panel {
  position: relative;
  z-index: 1;
  width: min(452px, 82vw);
  padding: 24px 56px 20px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(22, 29, 46, 0.24);
}

#webApp .profile-nickname-modal__head {
  position: relative;
  display: grid;
  min-height: 38px;
  place-items: center;
}

#webApp .profile-nickname-modal__head h2 {
  margin: 0;
  color: #213250;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

#webApp .profile-nickname-modal__form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

#webApp .profile-nickname-modal__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#webApp .profile-nickname-modal__form input {
  width: 100%;
  height: 56px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #eef0f4;
  border-radius: 0;
  outline: 0;
  color: #263752;
  background: #ffffff;
  font: inherit;
  font-size: 18px;
}

#webApp .profile-nickname-modal__form input:focus {
  border-color: #e9a900;
  box-shadow: none;
}

#webApp .profile-nickname-modal__error {
  margin: -10px 0 0;
  color: #c6373d;
  font-size: 14px;
  line-height: 1.4;
}

#webApp .profile-nickname-modal__confirm {
  width: 100%;
  height: 65px;
  padding: 0 16px;
  border: 1px solid #e5a600;
  border-radius: 8px;
  color: #ffffff;
  background: #f6b600;
  font-size: 22px;
  font-weight: 800;
  margin-top: 19px;
  cursor: pointer;
}

#webApp .profile-nickname-modal__confirm:disabled {
  cursor: wait;
  opacity: 0.68;
}

@media (max-width: 420px) {
  #webApp .profile-name-edit__button {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  #webApp .profile-nickname-modal__panel {
    padding: 22px 30px 20px;
  }
}
