:root {
  --m-bg: #f5f7fb;
  --m-card: #ffffff;
  --m-text: #1f2937;
  --m-sub: #667085;
  --m-border: #dbe4f0;
  --m-primary: #5b6cff;
  --m-soft: #eef3ff;
  --m-danger: #b42318;
}

.mobile-app-active body > *:not(.mobile-root):not(.mobile-manage-blocker) {
  display: none !important;
}

.mobile-app-active:not(.aipingu-page-loading) body[data-access-ready="0"],
.mobile-managed-blocked:not(.aipingu-page-loading) body[data-access-ready="0"] {
  opacity: 1 !important;
}

html.mobile-app-active {
  height: 100%;
  min-width: 350px;
  overflow: hidden;
  overscroll-behavior: none;
}

.mobile-app-active body {
  position: fixed;
  inset: 0;
  width: max(100vw, 350px);
  height: 100%;
  min-width: 350px;
  overflow: hidden;
  overscroll-behavior: none;
}

.mobile-managed-blocked body > *:not(.mobile-manage-blocker) {
  display: none !important;
}

.mobile-root,
.mobile-root * {
  box-sizing: border-box;
}

.mobile-root {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh;
  min-height: 100svh;
  width: max(100vw, 350px);
  min-width: 350px;
  overflow: hidden;
  padding: 0;
  background: var(--m-bg);
  color: var(--m-text);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

html.mobile-app-active .mobile-root {
  display: grid !important;
}

.mobile-root.has-mobile-controls {
  padding-top: 0;
}

.mobile-topbar {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 9px;
  width: 100%;
  min-width: 350px;
  padding: 7px 10px 10px;
  background: linear-gradient(180deg, rgba(245, 247, 251, 0.98), rgba(245, 247, 251, 0.9));
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(32, 41, 57, .08);
}

.mobile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-brand-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 0;
}

.mobile-head-side {
  width: 88px;
  min-width: 88px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.mobile-back-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(91, 108, 255, .2);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  color: #4050c8;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(64, 80, 200, .14);
}

.mobile-brand {
  min-width: 0;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  align-items: center;
  justify-items: center;
}

.mobile-title-button {
  min-width: 0;
  justify-self: center;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  text-align: center;
}

.mobile-logo,
.mobile-logo-text {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e6ebff, #f7f9ff);
  color: var(--m-primary);
  font-weight: 900;
}

.mobile-game-logo {
  object-fit: contain;
  padding: 5px;
  background: linear-gradient(135deg, #202a44 0%, #26395f 52%, #173d3a 100%);
}

.mobile-title-wrap {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mobile-title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--m-text);
}

.mobile-subtitle,
.mobile-muted {
  color: var(--m-sub);
  font-size: 12px;
  line-height: 1.65;
}

.mobile-main {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px 10px 14px;
}

.mobile-btn,
.mobile-input,
.mobile-select,
.mobile-nav-item,
.mobile-page-btn {
  font: inherit;
}

.mobile-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--m-border);
  border-radius: 11px;
  background: #fff;
  color: #344054;
  font-weight: 800;
}

.mobile-btn.primary {
  border-color: var(--m-primary);
  background: var(--m-primary);
  color: #fff;
}

.mobile-btn.soft {
  background: var(--m-soft);
  color: #4050c8;
}

.mobile-btn.danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: var(--m-danger);
}

.mobile-btn:disabled,
.mobile-page-btn:disabled {
  opacity: .45;
}

.mobile-searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
}

.mobile-searchbar.has-mode {
  grid-template-columns: 76px minmax(0, 1fr) 72px;
}

.mobile-searchbar.has-filter {
  grid-template-columns: 112px minmax(0, 1fr) 72px;
}

.mobile-searchbar.has-mode.has-filter {
  grid-template-columns: 76px 112px minmax(0, 1fr) 72px;
}

.mobile-searchbar .mobile-btn.primary {
  width: 72px;
  padding: 0;
}

.mobile-input,
.mobile-select,
.mobile-textarea {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--m-border);
  border-radius: 12px;
  background: #fff;
  color: var(--m-text);
  padding: 8px 11px;
  outline: none;
}

.mobile-textarea {
  min-height: 180px;
  resize: vertical;
}

.mobile-hero,
.mobile-card,
.mobile-sheet,
.mobile-info-block {
  border: 1px solid var(--m-border);
  background: var(--m-card);
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.07);
}

.mobile-hero {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f4f7ff 100%);
}

.mobile-hero.compact {
  gap: 9px;
}

.mobile-hero-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 900;
}

.mobile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mobile-stat {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e4eaf4;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
}

.mobile-stat span {
  color: var(--m-sub);
  font-size: 12px;
}

.mobile-stat b {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.mobile-section {
  display: grid;
  gap: 10px;
}

.mobile-section-title {
  font-size: 16px;
  font-weight: 900;
}

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

.mobile-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
}

.mobile-thumb,
.mobile-thumb-empty {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eef2fb 0%, #f8fbff 100%);
  color: #98a2b3;
  font-weight: 900;
}

.mobile-game-thumb,
.mobile-game-thumb-empty {
  background: linear-gradient(135deg, #202a44 0%, #26395f 52%, #173d3a 100%);
}

.mobile-game-thumb {
  object-fit: contain;
  padding: 12px;
}

.mobile-card-body {
  display: grid;
  gap: 6px;
  padding: 11px;
}

.mobile-card-title {
  font-weight: 900;
  line-height: 1.45;
  word-break: break-word;
}

.mobile-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 3px 2px 0;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3fb;
  color: #455468;
  font-size: 12px;
}

.mobile-empty {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #fff;
  color: var(--m-sub);
  text-align: center;
  line-height: 1.7;
}

.mobile-page-cover {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #dbe4f0;
}

.mobile-pager {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--m-border);
  border-radius: 16px;
  background: #fff;
}

.mobile-infinite-status {
  padding: 12px;
  border: 1px solid var(--m-border);
  border-radius: 14px;
  background: #fff;
  color: var(--m-sub);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

.mobile-pager-info {
  color: var(--m-sub);
  font-size: 12px;
  line-height: 1.5;
}

.mobile-page-list {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.mobile-page-btn,
.mobile-page-ellipsis {
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid var(--m-border);
  background: #fff;
  color: #344054;
  font-weight: 800;
}

.mobile-page-btn.active {
  border-color: var(--m-primary);
  background: var(--m-primary);
  color: #fff;
}

.mobile-page-ellipsis {
  display: grid;
  place-items: center;
  color: var(--m-sub);
}

.mobile-feature-card {
  position: relative;
  max-width: 100%;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--m-border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  touch-action: pan-y;
  will-change: transform;
}

#mobileFeatureSection {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  contain: paint;
}

.mobile-feature-card.is-slide-in-next {
  animation: mobileFeatureSlideInNext .24s ease both;
}

.mobile-feature-card.is-slide-in-prev {
  animation: mobileFeatureSlideInPrev .24s ease both;
}

@keyframes mobileFeatureSlideInNext {
  from { opacity: .45; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes mobileFeatureSlideInPrev {
  from { opacity: .45; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

.mobile-feature-avatar,
.mobile-feature-avatar.empty {
  width: 92px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
  background: #eef2fb;
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-weight: 900;
}

.mobile-feature-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.mobile-feature-title-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.mobile-feature-name {
  font-size: 18px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.mobile-feature-grid img,
.mobile-feature-empty {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f7fb;
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-size: 10px;
}

.mobile-feature-hint {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #111827;
  display: grid;
  place-items: center;
  font-size: 12px;
  opacity: 0;
  transition: opacity .18s ease;
}

.mobile-feature-card:hover .mobile-feature-hint {
  opacity: 1;
}

.mobile-feature-nav {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 38px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  color: #1f2937;
  font-size: 24px;
  opacity: 0;
  transform: translateY(-50%);
}

.mobile-feature-card:hover .mobile-feature-nav {
  opacity: 1;
}

.mobile-feature-nav.prev {
  left: 8px;
}

.mobile-feature-nav.next {
  right: 8px;
}

.mobile-feature-dots,
.mobile-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
}

.mobile-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
}

.mobile-dot.active {
  width: 22px;
  background: #111827;
}

.mobile-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  background: rgba(15, 23, 42, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.mobile-modal.hidden {
  display: none;
}

.mobile-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sheet {
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  border-radius: 22px 22px 0 0;
  padding: 14px;
  display: grid;
  gap: 12px;
  touch-action: pan-y;
}

.mobile-sheet.is-dragging {
  transition: none;
}

.mobile-modal-media {
  position: relative;
  padding: 0 42px 34px;
}

.mobile-gallery-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #eef2fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-gallery-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-gallery-nav {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--m-border);
  background: rgba(255, 255, 255, .9);
  color: #1f2937;
  font-size: 24px;
  transform: translateY(-50%);
}

.mobile-gallery-nav.prev {
  left: 0;
}

.mobile-gallery-nav.next {
  right: 0;
}

.mobile-gallery-count {
  position: absolute;
  right: 12px;
  bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  color: var(--m-sub);
  font-size: 12px;
}

.mobile-modal-side {
  display: grid;
  gap: 12px;
}

.mobile-close {
  justify-self: end;
}

.mobile-modal-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.mobile-info-block {
  padding: 12px;
  border-radius: 14px;
  box-shadow: none;
  line-height: 1.7;
  white-space: pre-wrap;
}

.mobile-label {
  margin-bottom: 4px;
  color: var(--m-sub);
  font-size: 12px;
}

.mobile-tool-icon {
  width: 100%;
  aspect-ratio: 1 / .62;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e7ecff, #f8fbff);
  color: var(--m-primary);
  font-size: 24px;
  font-weight: 900;
}

.mobile-person-page {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}

.mobile-person-account {
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--m-border);
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  box-shadow: 0 8px 18px rgba(31, 41, 55, .05);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mobile-person-account:active {
  background: #f7f9ff;
}

.mobile-person-account-label,
.mobile-person-account-meta {
  color: var(--m-sub);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.mobile-person-account-name {
  min-width: 0;
  color: var(--m-text);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-user-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  background: rgba(15, 23, 42, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.mobile-user-modal.hidden {
  display: none;
}

.mobile-user-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-user-sheet {
  width: 100%;
  padding: 14px;
  border-radius: 20px 20px 0 0;
  background: #fff;
  display: grid;
  gap: 12px;
  box-shadow: 0 -14px 34px rgba(31, 41, 55, .16);
}

.mobile-user-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-user-sheet-head strong {
  font-size: 18px;
}

.mobile-user-detail-list {
  overflow: hidden;
  border: 1px solid var(--m-border);
  border-radius: 14px;
  display: grid;
}

.mobile-user-detail-row {
  min-height: 42px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #edf2f7;
}

.mobile-user-detail-row:last-child {
  border-bottom: 0;
}

.mobile-user-detail-row span {
  color: var(--m-sub);
  font-size: 12px;
}

.mobile-user-detail-row strong {
  min-width: 0;
  color: var(--m-text);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-logout-sheet {
  gap: 14px;
}

.mobile-logout-copy {
  color: #475467;
  font-size: 14px;
  line-height: 1.65;
}

.mobile-logout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-btn.danger {
  border-color: #fecdca;
  background: #d92d20;
  color: #fff;
  box-shadow: 0 8px 18px rgba(217, 45, 32, .18);
}

.mobile-person-group-title {
  padding: 0 2px;
  color: #344054;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  margin: 0 0 -4px;
}

.mobile-person-list {
  overflow: hidden;
  border: 1px solid var(--m-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 41, 55, .05);
  display: grid;
}

.mobile-person-logout-zone {
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid #fecdca;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 41, 55, .04);
}

.mobile-person-row {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  border-radius: 0;
  background: #fff;
  color: var(--m-text);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  text-align: left;
  font: inherit;
}

.mobile-person-logout-button {
  border-bottom: 0;
}

.mobile-person-row:last-child {
  border-bottom: 0;
}

.mobile-person-row:not(:disabled):active {
  background: #f7f9ff;
}

.mobile-person-row:disabled {
  opacity: .72;
}

.mobile-person-row.danger {
  color: #b42318;
}

.mobile-person-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef3ff;
  color: var(--m-primary);
  font-size: 14px;
  font-weight: 900;
}

.mobile-person-row-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mobile-person-row-title {
  color: #1f2937;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.mobile-person-row-desc {
  color: var(--m-sub);
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-person-row.danger .mobile-person-row-title,
.mobile-person-row.danger .mobile-person-row-icon {
  color: #b42318;
}

.mobile-person-row.danger .mobile-person-row-icon {
  background: #fff5f5;
}

.mobile-person-row-arrow {
  color: #98a2b3;
  font-size: 21px;
  line-height: 1;
}

.mobile-tool-panel,
.mobile-tool-form {
  display: grid;
  gap: 12px;
}

.mobile-tool-panel {
  padding: 14px;
  border: 1px solid var(--m-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 41, 55, .07);
}

.mobile-notice {
  padding: 12px;
  border: 1px solid #ffd591;
  border-radius: 14px;
  background: #fff7e6;
  color: #8a5a00;
  line-height: 1.7;
}

.mobile-bottom-nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  min-width: 350px;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  border: 0;
  border-top: 1px solid rgba(207, 216, 234, .96);
  border-radius: 0;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 -10px 26px rgba(32, 41, 57, .1);
  backdrop-filter: blur(12px);
  transform: translateZ(0);
}

html.mobile-app-active .mobile-bottom-nav {
  display: grid !important;
}

@supports not (height: 100svh) {
  .mobile-root {
    height: 100vh;
    min-height: 100vh;
  }
}

.mobile-nav-item {
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.mobile-nav-item.active {
  background: var(--m-soft);
  color: #4050c8;
}

.mobile-manage-blocker {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(180deg, #f7f9fc 0%, #e9eef7 100%);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

.mobile-manage-dialog {
  width: min(100%, 380px);
  border: 1px solid var(--m-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(32, 41, 57, .16);
  padding: 24px;
  text-align: center;
}

.mobile-manage-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--m-soft);
  color: var(--m-primary);
  font-size: 24px;
  font-weight: 900;
}

.mobile-manage-dialog h1 {
  margin: 0 0 10px;
  font-size: 22px;
}

.mobile-manage-dialog p {
  margin: 0 0 18px;
  color: var(--m-sub);
  line-height: 1.8;
}

.mobile-manage-dialog button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: var(--m-primary);
  color: #fff;
  font-weight: 800;
}

.mobile-lottery-panel {
  gap: 14px;
}

.mobile-lottery-activity {
  display: grid;
  gap: 12px;
}

.mobile-lottery-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--m-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #f6f8ff, #fff);
}

.mobile-lottery-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #29324f;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.mobile-lottery-title {
  font-size: 20px;
  font-weight: 900;
  color: #202939;
}

.mobile-lottery-desc,
.mobile-lottery-prize-desc,
.mobile-lottery-result-desc {
  color: var(--m-sub);
  line-height: 1.7;
  font-size: 13px;
}

.mobile-lottery-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-lottery-status span,
.mobile-lottery-prize {
  border: 1px solid var(--m-border);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
}

.mobile-lottery-status span {
  text-align: center;
  font-weight: 900;
  color: #4050c8;
}

.mobile-lottery-prizes {
  display: grid;
  gap: 8px;
}

.mobile-lottery-time {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--m-sub);
  font-size: 12px;
}

.mobile-lottery-cdk-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mobile-lottery-prize {
  display: grid;
  gap: 4px;
}

.mobile-lottery-prize-name,
.mobile-lottery-result-name {
  font-weight: 900;
  color: #202939;
}

.mobile-lottery-result-name {
  font-size: 18px;
}

.mobile-lottery-code {
  margin-top: 6px;
  color: #4050c8;
  font-weight: 900;
}

.mobile-lottery-list {
  display: grid;
  gap: 10px;
}

.mobile-lottery-card {
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--m-border);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: center;
  text-align: left;
  font: inherit;
  box-shadow: 0 8px 18px rgba(31, 41, 55, .05);
}

.mobile-lottery-card:active {
  background: #f7f9ff;
}

.mobile-lottery-card-mark,
.mobile-lottery-guest-mark {
  display: grid;
  place-items: center;
  background: #29324f;
  color: #fff;
  font-weight: 900;
}

.mobile-lottery-card-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-size: 22px;
}

.mobile-lottery-card-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.mobile-lottery-card-title {
  color: #202939;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.mobile-lottery-card-desc,
.mobile-lottery-modal-desc,
.mobile-lottery-guest-desc,
.mobile-lottery-result-activity {
  color: var(--m-sub);
  font-size: 12px;
  line-height: 1.6;
}

.mobile-lottery-card-desc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-lottery-card-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.mobile-lottery-card-meta span {
  min-height: 23px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3ff;
  color: #4050c8;
  font-size: 12px;
  font-weight: 800;
}

.mobile-lottery-guest-wrap {
  min-height: calc(100svh - 170px);
  display: grid;
  place-items: center;
}

.mobile-lottery-guest {
  width: min(100%, 430px);
  padding: 18px;
  border: 1px solid var(--m-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 41, 55, .07);
  display: grid;
  gap: 12px;
  align-content: center;
  text-align: center;
}

.mobile-lottery-guest-mark {
  width: 66px;
  height: 66px;
  margin: 0 auto;
  border-radius: 22px;
  font-size: 30px;
}

.mobile-lottery-guest-title {
  color: #202939;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.mobile-lottery-modal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: flex;
  align-items: flex-end;
  background: rgba(15, 23, 42, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.mobile-lottery-modal.hidden {
  display: none;
}

.mobile-lottery-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-lottery-sheet {
  width: 100%;
  max-height: 88svh;
  overflow: auto;
  padding: 14px;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -14px 34px rgba(31, 41, 55, .16);
  display: grid;
  gap: 12px;
}

.mobile-lottery-modal-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mobile-lottery-modal-status span {
  min-width: 0;
  min-height: 58px;
  padding: 8px 6px;
  border: 1px solid var(--m-border);
  border-radius: 14px;
  background: #fbfcff;
  display: grid;
  place-items: center;
  gap: 2px;
}

.mobile-lottery-modal-status b {
  color: #4050c8;
  font-size: 16px;
  line-height: 1.2;
}

.mobile-lottery-modal-status em {
  color: var(--m-sub);
  font-size: 12px;
  font-style: normal;
}

.mobile-lottery-result-box:empty {
  display: none;
}

@media (min-width: 821px) {
  html:not(.mobile-app-active) .mobile-root,
  html:not(.mobile-app-active) .mobile-bottom-nav,
  html:not(.mobile-app-active) .mobile-modal,
  html:not(.mobile-managed-blocked) .mobile-manage-blocker {
    display: none !important;
  }
}
