:root {
  --bg: #050505;
  --panel: #101011;
  --panel-2: #171719;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f3c56b;
  --gold-light: #ffe6aa;
  --red: #ec1f2c;
  --blue: #1b75ff;
  --text: #f6f1e8;
  --muted: #beb8ad;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

body.site-loading {
  overflow: hidden;
}

body:not(.site-loading) > #loader {
  display: none;
}

.shell-error {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  color: #ffe4a4;
  text-align: center;
  background: #050505;
}

.shell-error strong {
  font-size: 18px;
}

.shell-error span {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

body.site-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background:
    radial-gradient(circle at 50% 38%, rgba(243, 197, 107, .18), transparent 34%),
    linear-gradient(180deg, #090807, #000);
}

body.site-loading::after {
  content: "6H";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 9999;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 221, 143, .82);
  border-radius: 50%;
  color: #ffe6aa;
  font-size: 28px;
  font-weight: 1000;
  font-style: italic;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
  box-shadow: 0 0 0 1px rgba(127, 77, 9, .8), 0 0 28px rgba(246, 188, 78, .52);
  animation: siteLoaderPulse .78s ease-in-out infinite alternate;
}

.fx-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .46s ease, transform .46s ease, filter .46s ease;
  filter: saturate(.92);
}

.fx-reveal.fx-in {
  opacity: 1;
  transform: translateY(0);
  filter: saturate(1);
}

.fx-img-loading {
  opacity: .42;
  filter: blur(8px) saturate(.8);
  transform: scale(1.01);
}

img {
  transition: opacity .32s ease, filter .32s ease, transform .32s ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.download-btn,
.site-btn,
.gold-pill,
.wallet-card em,
.app-download,
.picture-load-more,
.data-action,
.rank-tabs button,
.draw-lottery-tabs button,
.gallery-mode-tabs button,
.gallery-lottery-tabs button,
.history-menu button,
.admin-top-actions a,
.admin-top-actions button,
.admin-savebar button,
.admin-password-btn {
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
}

.download-btn:active,
.site-btn:active,
.gold-pill:active,
.wallet-card:active,
.app-download:active,
.picture-load-more:active,
.data-action:active,
.rank-tabs button:active,
.draw-lottery-tabs button:active,
.gallery-mode-tabs button:active,
.gallery-lottery-tabs button:active,
.history-menu button:active,
.admin-top-actions a:active,
.admin-top-actions button:active,
.admin-savebar button:active,
.admin-password-btn:active {
  transform: scale(.97);
  filter: brightness(1.08);
}

.center-logo strong {
  animation: centerLogoGlow 1.7s ease-in-out infinite alternate;
}

@keyframes siteLoaderPulse {
  from {
    transform: scale(.94);
    opacity: .78;
  }

  to {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes sitePageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes centerLogoGlow {
  from {
    text-shadow: 0 0 10px rgba(255, 202, 91, .55);
  }

  to {
    text-shadow: 0 0 20px rgba(255, 230, 170, .95);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .fx-reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.mini-ball.green {
  --ball-color: #24b85d;
}

.data-page-shell {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.data-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 48px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 215, 138, .12);
  background: linear-gradient(180deg, rgba(13, 13, 14, .98), rgba(4, 4, 4, .96));
}

.data-nav h1 {
  margin: 0;
  text-align: center;
  color: #ffe4a4;
  font-size: 17px;
  font-weight: 900;
}

.back-link,
.refresh-link,
.modal-close {
  position: relative;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 0;
  background: transparent;
}

.back-link::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-left: 2px solid #f2cf8b;
  border-bottom: 2px solid #f2cf8b;
  transform: rotate(45deg);
}

.refresh-link::before,
.refresh-link::after {
  content: "";
  position: absolute;
}

.refresh-link::before {
  left: 9px;
  top: 9px;
  width: 17px;
  height: 17px;
  border: 2px solid #f2cf8b;
  border-left-color: transparent;
  border-radius: 50%;
}

.refresh-link::after {
  right: 8px;
  top: 8px;
  border-left: 6px solid #f2cf8b;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: rotate(35deg);
}

.refresh-link.text-refresh {
  width: 66px;
  min-width: 40px;
  color: #ffe4a4;
  font-size: 13px;
  font-weight: 900;
  line-height: 36px;
}

.refresh-link.text-refresh::before,
.refresh-link.text-refresh::after {
  display: none;
}

.data-page {
  padding: 8px 7px calc(88px + env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
}

.data-hero {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border: 1px solid rgba(255, 214, 131, .22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 50%, rgba(226, 153, 40, .32), transparent 45%),
    linear-gradient(135deg, #111112, #070707 54%, #1c1206);
  box-shadow: inset 0 0 24px rgba(255, 203, 103, .06);
}

.data-hero p,
.data-hero h2 {
  margin: 0;
}

.data-hero p {
  color: #f0c46d;
  font-size: 12px;
}

.data-hero h2 {
  margin-top: 5px;
  color: #fff1cc;
  font-size: 20px;
  font-weight: 900;
}

.data-hero span {
  min-width: 58px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #17100a;
  background: linear-gradient(180deg, #ffe8b5, #d39a3d);
  font-size: 13px;
  font-weight: 900;
}

.data-controls,
.data-table-card,
.data-draw-result {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: linear-gradient(145deg, #151516, #080808);
}

.lottery-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 9px;
}

.lottery-switch button,
.play-switch button,
.period-switch button,
.data-table-meta button {
  border: 1px solid rgba(255, 255, 255, .12);
  color: #ddd6cb;
  background: linear-gradient(180deg, #202022, #111112);
}

.lottery-switch button {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.lottery-switch button.active,
.play-switch button.active,
.period-switch button.active {
  color: #17100a;
  border-color: rgba(255, 226, 162, .82);
  background: linear-gradient(180deg, #ffe8ae, #c88a31);
  box-shadow: 0 0 14px rgba(255, 198, 93, .16);
}

.lottery-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.lottery-mark::before {
  content: "澳";
}

.lottery-mark.hk::before {
  content: "港";
}

.lottery-mark.crazy::before {
  content: "疯";
}

.lottery-mark.macau {
  background: linear-gradient(145deg, #eb2938, #921319);
}

.lottery-mark.hk {
  background: linear-gradient(145deg, #1d82ff, #103d9d);
}

.lottery-mark.crazy {
  background: linear-gradient(145deg, #22c76a, #087d42);
}

.rank-filter {
  display: grid;
  gap: 8px;
  padding: 0 9px 10px;
}

.play-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 6px;
  overflow: hidden;
}

.play-switch button {
  height: 36px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 900;
}

.period-switch {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.period-switch button {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.data-draw-result {
  padding: 9px;
}

.data-draw-result p {
  margin: 0 0 8px;
  color: #ffe2a0;
  font-size: 13px;
  font-weight: 900;
}

.data-draw-balls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.draw-mini {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.draw-mini .lottery-ball {
  width: 34px;
  height: 34px;
}

.draw-mini .lottery-ball b {
  font-size: 16px;
}

.draw-mini em {
  color: #d9d4cb;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.data-plus {
  color: #fff;
  font-size: 21px;
  font-weight: 300;
}

.data-table-card {
  overflow: hidden;
}

.data-table-meta {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.data-table-meta button {
  height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffd889;
  font-size: 12px;
}

.data-table-meta span {
  color: #a9a39a;
  font-size: 11px;
  white-space: nowrap;
}

.data-table-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 64px 1fr 108px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.data-table-head {
  min-height: 32px;
  color: #cfc7bd;
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
}

.data-table-row > span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.data-table-row.top-1 {
  background: linear-gradient(90deg, rgba(187, 29, 38, .26), rgba(245, 180, 79, .1));
}

.data-table-row.top-2 {
  background: linear-gradient(90deg, rgba(77, 98, 132, .28), rgba(255, 255, 255, .04));
}

.data-table-row.top-3 {
  background: linear-gradient(90deg, rgba(119, 67, 25, .26), rgba(255, 255, 255, .035));
}

.medal {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #17100a;
  font-size: 13px;
  font-weight: 900;
}

.medal.gold {
  background: linear-gradient(180deg, #fff0b9, #d0902d);
}

.medal.silver {
  background: linear-gradient(180deg, #ffffff, #9aa2ad);
}

.medal.bronze {
  background: linear-gradient(180deg, #ffd2a7, #ad5b22);
}

.medal.plain {
  color: #fff;
  background: #686c72;
}

.data-ball {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #101010;
  background:
    radial-gradient(circle at 50% 45%, #fff 0 43%, transparent 44%),
    var(--ball-color, #ef2533);
  font-size: 16px;
  font-weight: 900;
}

.data-ball.red {
  --ball-color: #ef2533;
}

.data-ball.blue {
  --ball-color: #1c77ff;
}

.data-ball.green {
  --ball-color: #23b961;
}

.zodiac-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.zodiac-chip img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(255, 201, 92, .14);
}

.zodiac-chip b,
.data-money {
  color: #fff0cd;
  font-size: 15px;
  font-weight: 900;
}

.data-money {
  font-variant-numeric: tabular-nums;
}

.data-loading {
  padding: 24px 10px;
  color: #bcb5ad;
  text-align: center;
  font-size: 13px;
}

.data-rule-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .72);
}

.data-rule-modal[hidden] {
  display: none;
}

.data-rule-card {
  position: relative;
  width: min(100%, 360px);
  max-height: min(82vh, 620px);
  overflow-y: auto;
  padding: 22px 18px 18px;
  border: 1px solid rgba(255, 220, 140, .28);
  border-radius: 8px;
  background: linear-gradient(145deg, #171718, #080808);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}

.data-rule-card h2 {
  margin: 0 0 10px;
  color: #ffe0a0;
  font-size: 18px;
}

.data-rule-card h3 {
  margin: 16px 0 8px;
  color: #ff3340;
  font-size: 16px;
}

.data-rule-card p {
  margin: 0;
  color: #d8d0c6;
  font-size: 13px;
  line-height: 1.65;
}

.data-rule-card b,
.data-rule-card em {
  color: #ff3340;
  font-style: normal;
  font-weight: 800;
}

.modal-close {
  position: absolute;
  top: 6px;
  right: 6px;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 17px;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: #f2cf8b;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 380px) {
  .data-table-row {
    grid-template-columns: 54px 1fr 94px;
  }

  .data-hero h2 {
    font-size: 18px;
  }

  .data-draw-balls {
    gap: 2px;
  }

  .draw-mini .lottery-ball {
    width: 30px;
    height: 30px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #000;
}

.admin-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(217, 53, 66, .18), transparent 18rem),
    radial-gradient(circle at 88% 8%, rgba(27, 117, 255, .15), transparent 18rem),
    #070707;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.phone-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.75);
}

.topbar {
  height: 37px;
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 0;
  background: #030303;
}

.brand {
  width: 32px;
  height: 32px;
  display: block;
  overflow: hidden;
  border-radius: 9px;
  box-shadow: 0 0 12px rgba(255, 215, 138, .18);
}

.brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ticker {
  min-width: 0;
  height: 29px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(246, 190, 98, 0.14);
  border-radius: 999px;
  color: #e7c27a;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.78), rgba(5, 5, 5, 0.92));
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.ticker-viewport {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  min-width: max-content;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}

.ticker-msg {
  flex: 0 0 auto;
  color: #f4c879;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.speaker {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  display: inline-block;
  background: var(--gold);
  clip-path: polygon(0 36%, 30% 36%, 62% 10%, 62% 90%, 30% 64%, 0 64%);
}

.top-icon {
  width: 28px;
  height: 28px;
  position: relative;
  display: block;
}

.customer-link {
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 206, 139, .28);
  border-radius: 999px;
  color: #f5d48b;
  background: linear-gradient(180deg, rgba(55, 41, 17, .48), rgba(9, 9, 9, .88));
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.bell::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 15px;
  height: 15px;
  border: 2px solid #f1ce8b;
  border-bottom: 0;
  border-radius: 12px 12px 4px 4px;
}

.bell::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 5px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #f1ce8b;
}

.bell b {
  position: absolute;
  right: -4px;
  top: -2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #fff;
  background: #ff2636;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}

.page {
  padding: 7px 7px 83px;
}

.hero {
  aspect-ratio: 1086 / 362;
  height: auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 166, 74, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 73% 62%, rgba(218, 130, 13, 0.45), transparent 42%),
    linear-gradient(90deg, #070707 0%, #10100f 46%, #050505 100%);
}

.hero.hero-image-mode {
  cursor: pointer;
}

.hero.hero-loading .hero-copy,
.hero.hero-loading .hero-prizes {
  opacity: 0;
}

.hero.hero-image-mode .hero-copy {
  display: none;
}

.hero.hero-image-mode::before {
  display: none;
}

.hero.hero-image-mode .hero-prizes {
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #050505;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 38%, rgba(255, 182, 44, 0.22), transparent 1px);
  background-size: 24px 24px;
  opacity: .7;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 224px;
  padding: 8px 0 0 54px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 6px;
  color: #ffe4a9;
  font-size: 31px;
  line-height: .9;
  font-weight: 900;
  font-style: italic;
  text-shadow: 0 2px 0 #875113, 0 0 12px rgba(255, 217, 131, .5);
}

.hero h1 span,
.hero h1 strong {
  display: block;
  white-space: nowrap;
}

.hero h1 strong {
  margin-top: 6px;
  font-size: 24px;
  font-style: normal;
}

.hero p {
  margin: 0;
  color: #fff;
  font-size: 11px;
  line-height: 1.7;
  font-weight: 800;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
}

.download-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 184px;
  margin: 6px 0 4px -29px;
}

.download-btn {
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 5px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 10px rgba(0, 0, 0, .35);
  font-size: 11px;
  font-weight: 900;
}

.android {
  background: linear-gradient(180deg, #59cf62, #1ea746);
}

.ios {
  background: linear-gradient(180deg, #ef3337, #b80d10);
}

.download-btn span {
  width: 14px;
  height: 14px;
  background: #fff;
}

.android span {
  border-radius: 3px;
  clip-path: polygon(14% 30%, 86% 30%, 86% 100%, 14% 100%);
}

.ios span {
  border-radius: 50% 45% 45% 50%;
  clip-path: polygon(52% 0, 76% 18%, 67% 35%, 86% 52%, 76% 100%, 28% 100%, 14% 73%, 18% 39%, 42% 28%);
}

.site-btn {
  width: 187px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: -29px;
  border: 1px solid rgba(239, 193, 107, .45);
  border-radius: 4px;
  color: #f7d28d;
  background: linear-gradient(180deg, rgba(72, 57, 31, .55), rgba(15, 13, 11, .92));
  font-size: 13px;
  font-weight: 900;
}

.site-btn span {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.hero-prizes {
  position: absolute;
  z-index: 1;
  right: -15px;
  bottom: -6px;
  width: 235px;
  height: 162px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 23px;
  height: 23px;
  margin-top: -12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
}

.hero-arrow::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.hero-prev {
  left: 14px;
}

.hero-prev::before {
  transform: rotate(45deg);
}

.hero-next {
  right: 13px;
}

.hero-next::before {
  left: 6px;
  transform: rotate(-135deg);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 5px;
  display: flex;
  gap: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  transform: translateX(-50%);
}

.hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
}

.hero-dots .active {
  background: #fff;
}

.panel {
  margin-top: 5px;
  padding: 13px 9px 8px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 207, 111, .07), transparent 10rem),
    linear-gradient(180deg, #121213, #0c0c0d);
}

.panel h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #eec272;
  font-size: 16px;
  line-height: 1;
}

.shield,
.wallet-title-icon,
.gear,
.data-icon {
  width: 13px;
  height: 13px;
  display: inline-block;
  flex: 0 0 auto;
  position: relative;
}

.shield {
  background: linear-gradient(#f6dc9c, #c08225);
  clip-path: polygon(50% 0, 94% 17%, 89% 68%, 50% 100%, 11% 68%, 6% 17%);
}

.wallet-title-icon {
  border-radius: 2px;
  background: linear-gradient(#f3d99b, #b77318);
}

.gear {
  border: 2px solid #e6b45f;
  border-radius: 50%;
}

.gear::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #e6b45f;
}

.data-icon::before,
.data-icon::after {
  content: "";
  position: absolute;
  background: #e8ba66;
  border-radius: 2px;
}

.data-icon::before {
  left: 5px;
  top: 0;
  width: 4px;
  height: 14px;
  transform: rotate(42deg);
}

.data-icon::after {
  left: 0;
  top: 5px;
  width: 14px;
  height: 4px;
  transform: rotate(42deg);
}

.hall-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 4px 9px 4px 9px;
  background: linear-gradient(135deg, #fff0bc, #d79532 62%, #7a4612);
  box-shadow: 0 0 10px rgba(245, 197, 107, .18);
}

.app-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: center;
  position: relative;
  padding: 9px 11px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(circle at 26% 25%, rgba(255, 255, 255, .1), transparent 12rem),
    linear-gradient(120deg, rgba(255, 255, 255, .04), transparent 42%),
    #151516;
}

.app-logo {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  object-fit: cover;
  padding: 0;
  background: #050505;
  box-shadow: 0 0 14px rgba(255, 0, 0, .18);
  clip-path: inset(2px round 8px);
}

.app-info {
  min-width: 0;
  align-self: center;
  padding-top: 0;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-title-row h3 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.quality {
  position: absolute;
  top: 7px;
  right: 11px;
  min-width: 37px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 215, 138, .55);
  border-radius: 999px;
  color: #fff3c5;
  background: linear-gradient(180deg, #f24854, #af1222);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 10px rgba(190, 18, 32, .25);
  font-size: 10px;
  font-weight: 900;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.rating span,
.rating b {
  color: #ff2b35;
  font-size: 12px;
}

.rating span {
  letter-spacing: 1px;
}

.app-info p {
  margin: 3px 0 0;
  color: #d8d3cb;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-line {
  position: absolute;
  left: 69px;
  right: 13px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.promo-line span {
  padding: 1px 4px;
  border: 1px solid #c82326;
  border-radius: 3px;
  color: #ff3941;
  font-size: 11px;
  white-space: nowrap;
}

.promo-line b {
  min-width: 0;
  color: #d4d0c9;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gold-pill {
  min-width: 52px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #1e1302;
  background: linear-gradient(180deg, #ffe6a8, #d49331);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  font-weight: 900;
}

.app-download {
  justify-self: end;
  align-self: center;
  width: 66px;
  margin-top: 16px;
  padding: 0;
  font-size: 12px;
}

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

.wallet-card {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 54px;
  gap: 7px;
  align-items: center;
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, .11), transparent 4rem),
    linear-gradient(135deg, rgba(255, 255, 255, .035), transparent 55%),
    #171717;
}

.wallet-card img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.wallet-card span {
  min-width: 0;
}

.wallet-card b,
.wallet-card small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-card b {
  color: #fff;
  font-size: 12px;
}

.wallet-card small {
  margin-top: 4px;
  color: #c7c1bb;
  font-size: 10px;
}

.wallet-card em {
  justify-self: end;
  width: 50px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #1e1302;
  background: linear-gradient(180deg, #ffe6a8, #d49331);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.section-head h2 {
  margin-bottom: 0;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.draw-lottery-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 7px;
}

.draw-lottery-tabs button {
  --tab-border: rgba(217, 53, 66, .52);
  --tab-light: #ee5261;
  --tab-dark: #b71927;
  --tab-glow: rgba(217, 53, 66, .38);
  height: 27px;
  border: 1px solid var(--tab-border);
  border-radius: 999px;
  color: #d9d2c8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(0, 0, 0, .08)),
    #101011;
  font-size: 12px;
  font-weight: 900;
}

.draw-lottery-tabs button[data-lottery-type="6"] {
  --tab-border: rgba(233, 52, 69, .58);
  --tab-light: #f25766;
  --tab-dark: #bd1424;
  --tab-glow: rgba(233, 52, 69, .38);
}

.draw-lottery-tabs button[data-lottery-type="5"] {
  --tab-border: rgba(40, 200, 98, .58);
  --tab-light: #4ee382;
  --tab-dark: #149246;
  --tab-glow: rgba(40, 200, 98, .38);
}

.draw-lottery-tabs button[data-lottery-type="11"] {
  --tab-border: rgba(40, 140, 255, .58);
  --tab-light: #58a8ff;
  --tab-dark: #1262c8;
  --tab-glow: rgba(40, 140, 255, .38);
}

.draw-lottery-tabs button.active {
  color: #fff;
  border-color: var(--tab-light);
  background: linear-gradient(180deg, var(--tab-light), var(--tab-dark));
  box-shadow: 0 0 14px var(--tab-glow);
}

.red-btn,
.ghost-btn {
  height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.red-btn {
  background: linear-gradient(180deg, #d83843, #9d131e);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, .14);
  background: #161617;
}

.chevron {
  width: 14px;
  height: 23px;
  position: relative;
}

.chevron::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #d8d3cb;
  border-right: 2px solid #d8d3cb;
  transform: rotate(45deg);
}

.draw-box,
.recommend,
.rank-card,
.analysis-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: radial-gradient(circle at 74% 16%, rgba(255, 255, 255, .07), transparent 7rem), #151516;
}

.draw-box {
  padding: 8px 8px 7px;
}

.draw-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  color: #d3cec6;
  font-size: 10px;
}

.draw-meta span {
  padding: 3px 7px;
  border-radius: 3px;
  color: #fff;
  background: linear-gradient(180deg, #843139, #56131a);
  font-weight: 900;
}

.draw-meta time,
.countdown {
  white-space: nowrap;
}

.countdown b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 15px;
  margin: 0 1px;
  border-radius: 3px;
  color: #f4d790;
  background: #17140e;
  font-size: 10px;
}

.countdown i {
  color: #e8d094;
  font-style: normal;
}

.ball-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr) 17px 1fr;
  align-items: start;
  gap: 8px;
  margin-top: 9px;
  text-align: center;
}

.lottery-ball {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55));
}

.lottery-ball img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lottery-ball.green img {
  filter: saturate(1.12);
}

.lottery-ball b {
  position: relative;
  z-index: 1;
  color: #111;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.ball-item p {
  margin: 5px 0 0;
  color: #e8e1da;
  font-size: 11px;
}

.plus {
  color: #fff;
  font-size: 27px;
  line-height: 36px;
}

.recommend {
  margin-top: 5px;
  padding: 8px;
}

.recommend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.recommend h3 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #eebf6c;
  font-size: 13px;
}

.recommend h3::before {
  content: "★";
}

.recommend h3 span {
  padding: 1px 5px;
  border-radius: 3px;
  color: #fff;
  background: linear-gradient(180deg, #843139, #56131a);
  font-size: 10px;
  font-weight: 900;
}

.recommend h3 b {
  font: inherit;
  white-space: nowrap;
}

.recommend a {
  color: #bdb5ac;
  font-size: 11px;
}

.recommend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.recommend-grid p {
  margin: 0;
  color: #e0dad3;
  font-size: 11px;
  line-height: 1.35;
}

.recommend-grid .recommend-item {
  min-width: 0;
}

.recommend-grid .recommend-loading {
  grid-column: 1 / -1;
  color: #bdb5ac;
}

.recommend-grid b {
  color: #fff2d2;
  font-weight: 800;
}

.recommend-grid em {
  color: #f5efe8;
  font-style: normal;
  overflow-wrap: anywhere;
}

.recommend-grid span {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  color: #c7defd;
  background: #223957;
  font-size: 10px;
}

.data-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 8px;
}

.rank-card {
  overflow: hidden;
  min-width: 0;
}

.rank-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rank-tabs button {
  height: 32px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #d5d0cb;
  background: linear-gradient(180deg, #202021, #151516);
  font-weight: 900;
  font-size: 12px;
}

.rank-tabs .active {
  color: #fff;
  background: linear-gradient(180deg, #d32d38, #a91620);
}

.rank-list {
  list-style: none;
  margin: 8px 10px 9px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rank-list li {
  display: grid;
  grid-template-columns: 17px 20px minmax(54px, 1fr) 62px;
  align-items: center;
  gap: 8px;
}

.rank-list em {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #17100a;
  background: linear-gradient(#ffe5a4, #c8913c);
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.rank-list li:nth-child(n + 4) em {
  color: #fff;
  background: #73777d;
}

.mini-ball {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: radial-gradient(circle at 50% 45%, #fff 0 43%, transparent 44%), var(--ball-color, #fff);
  font-size: 10px;
  font-weight: 900;
}

.mini-ball.red {
  --ball-color: var(--red);
}

.mini-ball.blue {
  --ball-color: var(--blue);
}

.mini-zodiac {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.mini-zodiac img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.rank-empty {
  grid-template-columns: 1fr !important;
  min-height: 58px;
  color: #d7d2ca;
  text-align: center;
  font-size: 12px;
}

.rank-list i {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.rank-list i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff2444, #ffb553);
}

.rank-list li:nth-child(5) i b {
  background: linear-gradient(90deg, #1886ff, #42c8ff);
}

.rank-list strong {
  color: #efe6d6;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.analysis-card {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  padding: 18px 9px 9px;
}

.analysis-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 52%, rgba(205, 132, 27, .75), transparent 52%),
    linear-gradient(135deg, #0b0a08, #1a1105);
}

.analysis-card div,
.analysis-card img {
  position: relative;
  z-index: 1;
}

.analysis-card div {
  z-index: 2;
}

.analysis-card h3 {
  width: 82px;
  margin: 0;
  color: #ffe4a4;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.analysis-card p {
  margin: 6px 0 18px;
  color: #ffe3a0;
  font-size: 10px;
}

.analysis-card img {
  position: absolute;
  z-index: 1;
  right: -38px;
  bottom: -34px;
  width: 124px;
  height: 124px;
  object-fit: cover;
  border-radius: 50%;
  opacity: .58;
  pointer-events: none;
}

.analysis-card .gold-pill {
  position: relative;
  z-index: 3;
  height: 23px;
  padding: 0 10px;
  font-size: 10px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100%, 430px);
  height: calc(59px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr 78px 1fr 1fr;
  align-items: center;
  padding: 4px 11px env(safe-area-inset-bottom);
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: radial-gradient(circle at 50% 0, rgba(255, 203, 103, .16), transparent 6rem), #070707;
  transform: translateX(-50%);
}

.gallery-shell {
  display: grid;
  grid-template-rows: 45px 1fr;
  height: 100vh;
  min-height: 100vh;
}

.game-shell {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

.game-shell .gallery-top {
  position: fixed;
  top: 0;
  left: max(0px, calc((100vw - 430px) / 2));
  z-index: 35;
  width: min(100vw, 430px);
  background: linear-gradient(180deg, rgba(5, 5, 5, .82), rgba(5, 5, 5, .54));
  backdrop-filter: blur(10px);
}

.game-main {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(0px, calc((100vw - 430px) / 2));
  width: min(100vw, 430px);
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: #050505;
}

.game-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #050505;
  overflow: hidden;
}

.game-frame-tools {
  position: absolute;
  top: 52px;
  left: 10px;
  right: 10px;
  z-index: 28;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px 7px 12px;
  border: 1px solid rgba(255, 215, 138, .28);
  border-radius: 999px;
  background: rgba(8, 8, 9, .72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .32);
  backdrop-filter: blur(10px);
}

.game-frame-tools span {
  min-width: 0;
  overflow: hidden;
  color: #f3d391;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.game-frame-tools button {
  flex: 0 0 auto;
  min-width: 72px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #211405;
  background: linear-gradient(180deg, #ffe9ae, #dca13a);
  font-size: 12px;
  font-weight: 900;
}

.game-jump-main {
  display: grid;
  place-items: center;
  padding: 70px 18px 96px;
  background:
    radial-gradient(circle at 50% 38%, rgba(243, 197, 107, .16), transparent 14rem),
    radial-gradient(circle at 50% 82%, rgba(255, 215, 138, .1), transparent 12rem),
    #050505;
}

.game-jump-card {
  width: 100%;
  max-width: 340px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px 22px 24px;
  border: 1px solid rgba(255, 215, 138, .28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 215, 138, .16), transparent 11rem),
    linear-gradient(180deg, rgba(30, 25, 17, .96), rgba(8, 8, 9, .96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.game-jump-logo {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 138, .34);
  border-radius: 22px;
  background: #030303;
  box-shadow: 0 0 34px rgba(243, 197, 107, .24);
}

.game-jump-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.game-jump-card p,
.game-jump-card h2,
.game-jump-card span {
  margin: 0;
}

.game-jump-card p {
  color: #f3c56b;
  font-size: 13px;
  font-weight: 900;
}

.game-jump-card h2 {
  color: #fff2c8;
  font-size: 24px;
  font-weight: 950;
}

.game-jump-card span {
  color: #d8c5a0;
  font-size: 13px;
  font-weight: 700;
}

.game-jump-tip {
  width: 100%;
  display: grid;
  gap: 7px;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 215, 138, .28);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 215, 138, .14), rgba(255, 255, 255, .03)),
    rgba(0, 0, 0, .28);
}

.game-jump-tip img {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: #070707;
}

.game-jump-tip b {
  color: #ffe39d;
  font-size: 13px;
  font-weight: 950;
}

.game-jump-tip em {
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

.game-jump-card button {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  color: #211405;
  background: linear-gradient(180deg, #fff0bd, #d99d37);
  box-shadow: 0 10px 24px rgba(243, 197, 107, .22);
  font-size: 16px;
  font-weight: 950;
}

.gallery-top {
  height: 45px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 215, 138, .12);
  background: linear-gradient(180deg, rgba(13, 13, 14, .98), rgba(4, 4, 4, .96));
}

.gallery-top h1 {
  margin: 0;
  text-align: center;
  color: #ffe4a4;
  font-size: 17px;
  font-weight: 900;
}

.gallery-back,
.gallery-refresh {
  width: 44px;
  height: 44px;
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.gallery-back::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 15px;
  width: 11px;
  height: 11px;
  border-left: 2px solid #f3c56b;
  border-bottom: 2px solid #f3c56b;
  transform: rotate(45deg);
}

.gallery-refresh::before {
  content: "";
  position: absolute;
  right: 15px;
  top: 13px;
  width: 16px;
  height: 16px;
  border: 2px solid #f3c56b;
  border-left-color: transparent;
  border-radius: 50%;
}

.gallery-refresh::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 11px;
  border-left: 6px solid #f3c56b;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: rotate(-28deg);
}

.gallery-refresh.text-refresh {
  width: auto;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #ffe4a4;
  font-size: 13px;
  font-weight: 900;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
}

.gallery-refresh.text-refresh::before,
.gallery-refresh.text-refresh::after {
  display: none;
}

.gallery-main {
  min-height: 0;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  padding-bottom: calc(103px + env(safe-area-inset-bottom));
  background: #050505;
}

.gallery-control-bar {
  position: fixed;
  left: 50%;
  bottom: calc(59px + env(safe-area-inset-bottom));
  z-index: 19;
  width: min(100%, 430px);
  padding: 7px 8px;
  border-top: 1px solid rgba(243, 197, 107, .2);
  border-bottom: 1px solid rgba(0, 0, 0, .55);
  background:
    linear-gradient(180deg, rgba(26, 22, 15, .96), rgba(6, 6, 6, .98));
  box-shadow: 0 -8px 22px rgba(0, 0, 0, .46);
  transform: translateX(-50%);
}

.gallery-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 7px 8px 5px;
  border-bottom: 1px solid rgba(243, 197, 107, .08);
  background: #080808;
}

.gallery-mode-tabs button,
.gallery-lottery-tabs button {
  height: 28px;
  border: 1px solid rgba(243, 197, 107, .26);
  border-radius: 999px;
  color: #f3c56b;
  background: linear-gradient(180deg, #161617, #0b0b0c);
  font-size: 12px;
  font-weight: 900;
}

.gallery-mode-tabs .active,
.gallery-lottery-tabs .active {
  color: #1f1302;
  background: linear-gradient(180deg, #ffe7aa, #d89b38);
}

.gallery-view {
  min-height: 0;
  display: none;
}

.gallery-view.active {
  display: block;
}

.gallery-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #050505;
}

.picture-view.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 7px 8px 52px;
}

.gallery-lottery-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 0;
}

.picture-search {
  display: grid;
  grid-template-columns: 1fr 50px;
  gap: 6px;
  margin-bottom: 7px;
}

.picture-search input {
  min-width: 0;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 0 12px;
  outline: none;
  color: #fff;
  background: #111112;
  font-size: 12px;
}

.picture-search button {
  border: 0;
  border-radius: 999px;
  color: #211405;
  background: linear-gradient(180deg, #ffe7aa, #d99b38);
  font-size: 12px;
  font-weight: 900;
}

.picture-categories {
  display: none;
  gap: 7px;
  margin: 0 0 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.picture-categories::-webkit-scrollbar {
  display: none;
}

.picture-categories button {
  height: 27px;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid rgba(243, 197, 107, .26);
  border-radius: 999px;
  color: #f3c56b;
  background: #111112;
  font-size: 12px;
  font-weight: 800;
}

.picture-categories .active {
  color: #1f1302;
  background: linear-gradient(180deg, #ffe7aa, #d99b38);
}

.picture-series-strip {
  margin: 0 0 8px;
  border: 1px solid rgba(243, 197, 107, .22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0, rgba(244, 189, 80, .14), transparent 120px),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
}

.series-strip-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 0;
}

.series-strip-head span {
  color: #ffe29b;
  font-size: 12px;
  font-weight: 900;
}

.series-strip-head .series-strip-actions {
  display: flex;
  gap: 5px;
}

.series-strip-scroll {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 8px 7px;
}

.picture-series-strip button {
  height: 25px;
  min-width: 0;
  padding: 0 5px;
  border: 1px solid rgba(243, 197, 107, .28);
  border-radius: 999px;
  color: #ffe29b;
  background: linear-gradient(180deg, #1d1d1e, #101011);
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picture-series-strip button.active {
  color: #241301;
  border-color: rgba(255, 231, 170, .85);
  background: linear-gradient(180deg, #ffe8ad, #d99b38);
  box-shadow: 0 0 12px rgba(217, 155, 56, .28);
}

.picture-series-strip .series-more {
  color: #241301;
  border-color: rgba(255, 231, 170, .65);
  background: linear-gradient(180deg, #fff3c8, #dca449);
}

.picture-series {
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
}

.series-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: linear-gradient(180deg, #171718, #101011);
  text-align: left;
}

.series-card strong {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-card span {
  color: #f3c56b;
  font-size: 11px;
}

.picture-grid {
  display: block;
  column-count: 2;
  column-gap: 8px;
}

.picture-card {
  min-width: 0;
  width: 100%;
  display: inline-grid;
  gap: 5px;
  margin: 0 0 8px;
  padding: 5px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: radial-gradient(circle at 24% 16%, rgba(255, 255, 255, .08), transparent 6rem), #151516;
  text-align: center;
}

.picture-thumb {
  aspect-ratio: var(--picture-ratio, 3 / 4);
  display: block;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(135deg, #fffaf0, #e9e2d4);
}

.picture-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.picture-card strong {
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picture-card em {
  color: #f3c56b;
  font-size: 11px;
  font-style: normal;
}

.picture-load-more {
  min-height: 34px;
  margin: 8px 0 6px;
  border: 1px solid rgba(243, 197, 107, .16);
  border-radius: 999px;
  color: #f3c56b;
  background: rgba(255, 255, 255, .04);
  font-weight: 900;
  font-size: 12px;
}

.picture-load-more:disabled {
  opacity: .75;
}

.formula-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 5px;
  background:
    linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, .28) 41%, transparent 58%),
    linear-gradient(180deg, #ffe7aa, #d99b38);
  box-shadow: 0 0 12px rgba(217, 155, 56, .22);
}

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

.formula-preview-card {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: linear-gradient(180deg, #171718, #0f0f10);
}

.formula-preview-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  display: block;
  object-fit: cover;
  border-radius: 5px;
  background: #0b0b0c;
}

.formula-preview-card span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff6476, #d41229);
  font-size: 10px;
  font-weight: 900;
}

.formula-preview-card strong {
  min-width: 0;
  color: #fff6d5;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-preview-new {
  display: none;
}

.formula-hot-preview {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 214, 131, .22);
  background:
    radial-gradient(circle at 94% 2%, rgba(255, 215, 130, .22), transparent 142px),
    radial-gradient(circle at 0% 58%, rgba(226, 37, 62, .08), transparent 150px),
    linear-gradient(145deg, #151516, #080808);
  box-shadow: inset 0 1px 0 rgba(255, 236, 180, .08), 0 10px 28px rgba(0, 0, 0, .34);
}

.formula-hot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 131, .22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(243, 197, 107, .16), transparent 130px),
    linear-gradient(180deg, #151516, #090909);
}

.formula-hot-card {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 50px;
  grid-template-rows: auto auto;
  gap: 7px 8px;
  align-items: center;
  min-height: 74px;
  padding: 10px 8px 10px 12px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.formula-hot-card:last-child {
  border-bottom: 0;
}

.formula-hot-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe8ad, #d99b38);
  opacity: .75;
}

.formula-hot-card span {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  justify-self: start;
  width: auto;
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid rgba(243, 197, 107, .34);
  border-radius: 6px;
  color: #f7d795;
  background: linear-gradient(180deg, rgba(255, 225, 160, .08), rgba(0, 0, 0, .18));
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.formula-title-line {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(58px, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.formula-hot-card strong {
  grid-column: 1 / 2;
  min-width: 0;
  max-width: 82px;
  color: #fff2d0;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-hot-card em {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  align-self: center;
  max-width: calc(100% - 66px);
  color: #d8d1c5;
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-hot-card b {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  justify-self: end;
  margin-left: 0;
  min-width: 58px;
  height: 20px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, #ff5368, #c51227);
  font-size: 11px;
  font-weight: 1000;
  box-shadow: 0 3px 10px rgba(215, 20, 39, .16);
}

.formula-hot-card small {
  grid-column: 2 / 3;
  min-width: 0;
  width: 100%;
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 131, .2);
  color: #d6c19c;
  background: rgba(255, 214, 131, .06);
  font-size: 9px;
  font-weight: 800;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-hot-card b::before {
  content: "";
  margin: 0;
  font-size: 0;
  font-weight: 800;
  opacity: .92;
}

.formula-hot-card::after {
  content: "详情";
  position: static;
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  justify-self: end;
  min-width: 42px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 151, .56);
  color: #251505;
  font-size: 12px;
  font-weight: 1000;
  opacity: 1;
  background: linear-gradient(180deg, #fff0bd, #d99b38);
  box-shadow: 0 4px 14px rgba(217, 150, 49, .22);
}

.formula-hot-card:active {
  transform: scale(.985);
}

.formula-more-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 230, 168, .62);
  border-radius: 8px;
  color: #201204;
  text-decoration: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .42), transparent 32%),
    linear-gradient(180deg, #ffe9b1, #d59631);
  box-shadow: 0 8px 22px rgba(217, 150, 49, .16), inset 0 1px 0 rgba(255, 255, 255, .62);
}

.formula-more-bar span {
  min-width: 0;
  font-size: 15px;
  font-weight: 1000;
}

.formula-more-bar b {
  position: relative;
  padding-right: 16px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(32, 18, 4, .72);
}

.formula-more-bar b::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.hall-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 131, .12);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 214, 131, .22), transparent 122px),
    linear-gradient(145deg, #151516, #090909);
}

.hall-preview-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 214, 131, .22);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(228, 35, 60, .15), transparent 120px),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}

.hall-preview-card p,
.hall-preview-card h3,
.hall-preview-card span {
  margin: 0;
}

.hall-preview-card p {
  color: #f0bd64;
  font-size: 11px;
  font-weight: 900;
}

.hall-preview-card h3 {
  margin-top: 4px;
  color: #fff2d0;
  font-size: 17px;
  line-height: 1.25;
}

.hall-preview-card span {
  display: block;
  margin-top: 6px;
  color: #cfc6b7;
  font-size: 12px;
  line-height: 1.35;
}

.hall-preview-card b {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #211306;
  background: linear-gradient(180deg, #fff0bd, #d79b37);
  font-size: 14px;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(217, 150, 49, .2);
}

.hall-resource-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.hall-resource-strip a {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 214, 131, .26);
  border-radius: 8px;
  color: #ffe6a8;
  text-decoration: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 214, 131, .16), transparent 72px),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
}

.hall-resource-strip b {
  font-size: 13px;
  line-height: 1;
}

.hall-resource-strip span {
  color: rgba(255, 242, 208, .66);
  font-size: 10px;
  font-weight: 800;
}

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

.hall-hot-card {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(255, 214, 131, .18);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(circle at 100% 100%, rgba(238, 36, 70, .18), transparent 82px),
    linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
}

.hall-hot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hall-hot-top span {
  min-width: 0;
  overflow: hidden;
  color: #f2c46d;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hall-hot-top b {
  flex: 0 0 auto;
  min-width: 38px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 1000;
  background: linear-gradient(180deg, #ff6685, #db173d);
  box-shadow: 0 6px 16px rgba(235, 26, 64, .26);
}

.hall-hot-card strong {
  overflow: hidden;
  color: #fff2d0;
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hall-hot-card p {
  min-height: 20px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hall-hot-card em {
  margin-top: auto;
  color: rgba(255, 242, 208, .76);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.hall-preview-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 214, 131, .16);
  border-radius: 8px;
  color: rgba(255, 242, 208, .76);
  text-align: center;
  font-size: 12px;
}

.hall-more-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 8px;
  color: #201204;
  text-decoration: none;
  background: linear-gradient(180deg, #fff0bb, #d79b37);
  box-shadow: 0 10px 22px rgba(217, 150, 49, .18);
}

.hall-more-bar span {
  font-size: 15px;
  font-weight: 1000;
}

.hall-more-bar b {
  position: relative;
  padding-right: 15px;
  font-size: 11px;
  color: rgba(32, 18, 4, .72);
}

.hall-more-bar b::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.hall-shell {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 214, 131, .08), transparent 210px),
    #050505;
}

.hall-main {
  min-height: calc(100vh - 45px);
  padding: 8px 8px 86px;
}

.hall-hero {
  min-height: 94px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 214, 131, .22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(239, 184, 80, .32), transparent 140px),
    linear-gradient(145deg, #181716, #0b0b0c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.hall-hero p,
.hall-hero h2,
.hall-hero span {
  margin: 0;
}

.hall-hero p {
  color: #f4c56c;
  font-size: 11px;
  font-weight: 900;
}

.hall-hero h2 {
  margin-top: 6px;
  color: #fff2d0;
  font-size: 19px;
  line-height: 1.25;
}

.hall-hero span {
  display: block;
  margin-top: 5px;
  color: #cfc6b7;
  font-size: 12px;
}

.hall-hero > b {
  min-width: 60px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #231407;
  background: linear-gradient(180deg, #fff0bd, #d59a34);
  font-size: 14px;
  font-weight: 1000;
}

.hall-hero.compact {
  min-height: 78px;
}

.hall-section-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 6px;
  padding: 0 4px 6px;
  border-bottom: 1px solid rgba(255, 214, 131, .12);
}

.hall-section-nav a {
  position: relative;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  color: rgba(255, 224, 160, .68);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.hall-section-nav a.active {
  color: #ffd77f;
}

.hall-section-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #f6c665, transparent);
  box-shadow: 0 0 12px rgba(246, 198, 101, .45);
}

.hall-lottery-tabs,
.hall-main-tabs,
.hall-sub-tabs {
  display: grid;
  gap: 7px;
}

.hall-lottery-tabs {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 214, 131, .14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 214, 131, .18), transparent 70%),
    linear-gradient(180deg, #15120d, #080808);
}

.hall-lottery-tabs button,
.hall-main-tabs button,
.hall-sub-tabs button {
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(255, 214, 131, .28);
  border-radius: 999px;
  color: #ffe0a0;
  background: linear-gradient(180deg, #121212, #070707);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.hall-lottery-tabs button {
  height: 42px;
  border-color: rgba(255, 214, 131, .36);
  color: #ffe8b2;
  font-size: 15px;
  background:
    linear-gradient(180deg, #151515, #050505);
}

.hall-lottery-tabs button.active,
.hall-sub-tabs button.active {
  color: #211306;
  border-color: rgba(255, 230, 168, .72);
  background:
    radial-gradient(circle at 25% 0%, rgba(255, 255, 255, .42), transparent 34%),
    linear-gradient(180deg, #ffeab5, #d79a34);
}

.hall-lottery-tabs button.active {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 8px 18px rgba(229, 177, 70, .24);
}

.hall-tabs-card {
  margin-top: 8px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 214, 131, .16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 214, 131, .11), transparent 120px),
    linear-gradient(180deg, #151516, #0b0b0b);
}

.hall-main-tabs {
  grid-template-columns: repeat(6, 1fr);
}

.hall-main-tabs button {
  height: 36px;
  border-radius: 0;
  border-width: 0 0 2px;
  background: transparent;
  color: #d8d1c5;
  font-size: 16px;
}

.hall-main-tabs button.active {
  color: #f2a33a;
  background: transparent;
  border-color: #f2a33a;
}

.hall-sub-tabs {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 10px;
}

.hall-tabs-card .hall-sub-tabs.compact {
  grid-template-columns: repeat(5, 1fr);
}

.hall-tabs-card .hall-sub-tabs.compact.overflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) 34px;
  align-items: center;
  gap: 6px;
}

.hall-sub-tool {
  width: 32px;
  min-width: 32px;
  padding: 0;
  border: 0 !important;
  color: #f2a33a !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hall-menu-icon,
.hall-filter-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
}

.hall-menu-icon::before,
.hall-menu-icon::after,
.hall-menu-icon {
  border-top: 2px solid currentColor;
}

.hall-menu-icon::before,
.hall-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
}

.hall-menu-icon::before {
  top: 5px;
}

.hall-menu-icon::after {
  top: 12px;
}

.hall-filter-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 14px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  clip-path: polygon(0 0, 100% 0, 63% 100%, 37% 100%);
}

.hall-filter-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 2px;
  height: 7px;
  background: currentColor;
  border-radius: 2px;
}

.hall-sub-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 178px;
  margin-top: 10px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid rgba(255, 214, 131, .16);
  border-radius: 10px;
  background:
    radial-gradient(circle at 96% 0, rgba(255, 214, 131, .14), transparent 110px),
    linear-gradient(180deg, #171717, #090909);
}

.hall-sub-panel button {
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 214, 131, .22);
  border-radius: 999px;
  color: #ffe0a0;
  background: linear-gradient(180deg, #121212, #070707);
  font-size: 13px;
  font-weight: 900;
}

.hall-sub-panel button.active {
  color: #211306;
  border-color: rgba(255, 230, 168, .72);
  background: linear-gradient(180deg, #ffeab5, #d79a34);
}

.hall-list-card {
  margin-top: 8px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 214, 131, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, #111112, #070707);
}

.hall-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.hall-list-head h2 {
  margin: 0;
  color: #ffe3a1;
  font-size: 16px;
}

.hall-list-head span {
  color: #a59b8d;
  font-size: 11px;
}

.hall-empty {
  margin: 0;
  padding: 18px 8px;
  text-align: center;
  color: #d7cab7;
  font-size: 13px;
}

.hall-card {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 12px 10px 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 96% 12%, rgba(255, 214, 131, .14), transparent 95px),
    linear-gradient(180deg, #171718, #0a0a0b);
}

.hall-user {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 54px;
  color: inherit;
  text-decoration: none;
}

.hall-avatar {
  width: 54px;
  height: 54px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  color: #fff4cf;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, .3), transparent 24%),
    linear-gradient(135deg, hsl(var(--avatar-hue), 78%, 34%), hsl(calc(var(--avatar-hue) + 48), 86%, 18%));
  box-shadow: inset 0 0 0 2px rgba(255, 214, 131, .22), 0 0 16px rgba(0, 0, 0, .24);
}

.hall-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.hall-avatar span {
  display: block;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1;
}

.hall-avatar small {
  margin-top: -14px;
  color: #ffd46f;
  font-size: 8px;
  font-weight: 1000;
}

.hall-user-meta {
  min-width: 0;
}

.hall-user-meta h3 {
  margin: 0;
  color: #fff2d0;
  font-size: 20px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hall-user-meta time {
  display: block;
  margin-top: 3px;
  color: #a8a1b2;
  font-size: 13px;
}

.hall-card-sub-label {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-top: 6px;
  padding: 0 9px;
  border: 1px solid rgba(255, 214, 131, .35);
  border-radius: 999px;
  color: #241506;
  background: linear-gradient(180deg, #ffeab8, #d69b35);
  font-size: 11px;
  line-height: 1;
  font-weight: 1000;
}

.hall-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.hall-stats span {
  min-width: 0;
  padding: 10px 4px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.hall-stats span:last-child {
  border-right: 0;
}

.hall-stats em {
  display: block;
  color: #cfc6b7;
  font-size: 12px;
  font-style: normal;
}

.hall-stats b {
  display: block;
  margin-top: 4px;
  color: #fff2d0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 1000;
}

.hall-stats b.hot {
  color: #ff4058;
}

.hall-card-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.hall-card-tools button,
.hall-card-tools a {
  min-width: 0;
  min-height: 46px;
  display: block;
  padding: 8px 10px;
  border: 1px solid rgba(255, 214, 131, .24);
  border-radius: 10px;
  color: #ffe6ae;
  text-align: left;
  text-decoration: none;
  background:
    radial-gradient(circle at 86% 0, rgba(255, 214, 131, .16), transparent 58%),
    linear-gradient(180deg, #151515, #0a0a0b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.hall-card-tools button.active,
.hall-card-tools button:active,
.hall-card-tools a:active {
  color: #231407;
  border-color: rgba(255, 230, 168, .7);
  background:
    radial-gradient(circle at 26% 0, rgba(255, 255, 255, .42), transparent 38%),
    linear-gradient(180deg, #ffeab8, #d59931);
}

.hall-card-tools span,
.hall-card-tools small {
  display: block;
}

.hall-card-tools span {
  font-size: 15px;
  line-height: 1.1;
  font-weight: 1000;
}

.hall-card-tools small {
  margin-top: 4px;
  color: inherit;
  opacity: .72;
  font-size: 10px;
  font-weight: 800;
}

.hall-pick {
  padding: 14px 4px 12px;
}

.hall-issue {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hall-issue strong {
  color: #ff4058;
  font-size: 18px;
  font-weight: 1000;
}

.hall-issue i {
  padding: 3px 9px;
  border-radius: 4px;
  color: #e72842;
  background: rgba(255, 75, 96, .1);
  font-size: 12px;
  font-style: normal;
}

.hall-pick p {
  margin: 12px 0 0;
  color: #fff2d0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 1000;
  word-break: break-all;
}

.hall-mini-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 4px 12px;
}

.hall-mini-history span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  color: #9f978b;
  background: rgba(255, 255, 255, .04);
  font-size: 11px;
  font-weight: 800;
}

.hall-mini-history span.hit {
  border-color: rgba(255, 64, 88, .38);
  color: #fff5d7;
  background: linear-gradient(180deg, rgba(255, 63, 90, .24), rgba(117, 8, 25, .2));
}

.hall-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 -10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.hall-card .hall-actions {
  grid-template-columns: repeat(5, 1fr);
}

.hall-actions button,
.hall-actions a {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .08);
  color: #a8a1b2;
  background: transparent;
  font-size: 13px;
  text-decoration: none;
}

.hall-actions button.active {
  color: #ffd77f;
  font-weight: 900;
}

.hall-actions button:last-child,
.hall-actions a:last-child {
  border-right: 0;
}

.hall-follow-tabs,
.hall-stat-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 214, 131, .14);
  border-radius: 10px;
  background: linear-gradient(180deg, #141414, #080808);
}

.hall-stat-tabs {
  grid-template-columns: repeat(3, 1fr);
}

.hall-follow-tabs button,
.hall-stat-tabs button {
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(255, 214, 131, .2);
  border-radius: 999px;
  color: #ffe0a0;
  background: #060606;
  font-size: 13px;
  font-weight: 900;
}

.hall-follow-tabs button.active,
.hall-stat-tabs button.active {
  color: #211306;
  border-color: rgba(255, 230, 168, .72);
  background: linear-gradient(180deg, #ffeab5, #d79a34);
}

.auth-empty button {
  display: block;
  width: min(180px, 70%);
  height: 36px;
  margin: 12px auto 0;
  border: 0;
  border-radius: 999px;
  color: #241506;
  background: linear-gradient(180deg, #ffeab8, #d69b35);
  font-size: 14px;
  font-weight: 1000;
}

.hall-follow-layout,
.hall-stat-layout {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.hall-side-tabs,
.hall-stat-side {
  overflow: hidden;
  border: 1px solid rgba(255, 214, 131, .12);
  border-radius: 8px;
  background: linear-gradient(180deg, #131313, #070707);
}

.hall-side-tabs button,
.hall-stat-side button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  color: #d8d1c5;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.hall-side-tabs button.active,
.hall-stat-side button.active {
  color: #211306;
  background: linear-gradient(180deg, #ffeab5, #d79a34);
}

.hall-follow-content,
.hall-stat-content {
  min-width: 0;
}

.hall-follow-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.hall-follow-person:first-of-type {
  border-top: 0;
}

.hall-follow-person .hall-user {
  padding-right: 0;
}

.hall-follow-person button {
  height: 32px;
  border: 1px solid rgba(255, 214, 131, .28);
  border-radius: 999px;
  color: #ffe0a0;
  background: #080808;
  font-size: 13px;
  font-weight: 900;
}

.follow-card {
  margin-top: 0;
  margin-bottom: 8px;
}

.hall-stat-toolbar {
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 214, 131, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, #151515, #090909);
}

.hall-stat-toolbar strong,
.hall-stat-toolbar small {
  display: block;
}

.hall-stat-toolbar strong {
  color: #fff2d0;
  font-size: 12px;
}

.hall-stat-toolbar small {
  margin-top: 4px;
  color: #9f978b;
  font-size: 11px;
}

.hall-stat-toolbar div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.hall-stat-toolbar button {
  height: 30px;
  border: 1px solid rgba(255, 214, 131, .2);
  border-radius: 999px;
  color: #ffe0a0;
  background: #070707;
  font-size: 12px;
  font-weight: 900;
}

.hall-stat-toolbar button.active {
  color: #211306;
  background: linear-gradient(180deg, #ffeab8, #d79a34);
}

.hall-chart-card {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 214, 131, .12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 96% 0, rgba(255, 214, 131, .1), transparent 96px),
    linear-gradient(180deg, #151515, #080808);
}

.hall-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hall-chart-head h2,
.hall-chart-head span {
  margin: 0;
}

.hall-chart-head h2 {
  color: #fff2d0;
  font-size: 13px;
}

.hall-chart-head span {
  color: #b8aa93;
  font-size: 11px;
}

.hall-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 136px;
  margin-top: 10px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.hall-bar-item {
  flex: 0 0 42px;
  min-width: 42px;
  display: grid;
  grid-template-rows: 18px 92px 18px;
  justify-items: center;
  align-items: end;
}

.hall-bar-item b {
  color: var(--bar-color);
  font-size: 10px;
  line-height: 1;
}

.hall-bar-item i {
  width: 28px;
  min-height: 34px;
  border-radius: 10px 10px 6px 6px;
  background: var(--bar-color);
  box-shadow: 0 0 18px color-mix(in srgb, var(--bar-color) 35%, transparent);
}

.hall-bar-item span {
  color: #fff2d0;
  font-size: 12px;
  font-weight: 900;
}

.hall-author-stat {
  margin-top: 8px;
}

.hall-stats-mask {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: grid;
  align-items: end;
  padding: 18px 10px calc(18px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
}

.hall-stats-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(78vh, 720px);
  margin: 0 auto;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(255, 214, 131, .26);
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 0, rgba(255, 214, 131, .24), transparent 165px),
    linear-gradient(180deg, #171717, #070707);
  box-shadow: 0 -22px 80px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.hall-stats-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 214, 131, .22);
  border-radius: 50%;
  color: #ffe1a0;
  background: rgba(0, 0, 0, .28);
  font-size: 22px;
  line-height: 28px;
}

.hall-stats-panel-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 36px;
}

.hall-stats-panel-head p,
.hall-stats-panel-head h3,
.hall-stats-panel-head span {
  margin: 0;
}

.hall-stats-panel-head p {
  color: #f7cd78;
  font-size: 12px;
  font-weight: 900;
}

.hall-stats-panel-head h3 {
  margin-top: 4px;
  color: #fff2d0;
  font-size: 22px;
  line-height: 1.1;
}

.hall-stats-panel-head span {
  display: block;
  margin-top: 4px;
  color: #aca296;
  font-size: 12px;
}

.hall-stats-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.hall-stats-board span {
  min-width: 0;
  padding: 12px 6px;
  border: 1px solid rgba(255, 214, 131, .13);
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
}

.hall-stats-board em {
  display: block;
  color: #bdb3a8;
  font-size: 11px;
  font-style: normal;
}

.hall-stats-board b {
  display: block;
  margin-top: 5px;
  color: #fff0c9;
  font-size: 17px;
  line-height: 1.12;
  font-weight: 1000;
}

.hall-stats-trend {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.hall-stats-trend div {
  min-width: 0;
  padding: 7px 4px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: #918a82;
  text-align: center;
  background: rgba(255, 255, 255, .04);
}

.hall-stats-trend div.hit {
  border-color: rgba(255, 64, 88, .36);
  color: #fff1d0;
  background: linear-gradient(180deg, rgba(255, 64, 88, .28), rgba(91, 6, 20, .2));
}

.hall-stats-trend strong,
.hall-stats-trend span {
  display: block;
  font-size: 11px;
  line-height: 1.2;
}

.hall-stats-trend span {
  margin-top: 3px;
  font-weight: 1000;
}

.hall-stats-detail {
  margin-top: 14px;
}

.hall-stats-detail h4 {
  margin: 0 0 8px;
  color: #ffe1a0;
  font-size: 15px;
}

.hall-stats-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, .075);
}

.hall-stats-record b {
  color: #fff3d4;
  font-size: 14px;
}

.hall-stats-record p {
  margin: 3px 0 0;
  color: #cfc6b7;
  font-size: 12px;
  line-height: 1.35;
}

.hall-stats-record > span {
  max-width: 118px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #9d968e;
  text-align: center;
  background: rgba(255, 255, 255, .06);
  font-size: 11px;
  font-weight: 900;
}

.hall-stats-record > span.hit {
  color: #fff;
  background: linear-gradient(180deg, #ff5d73, #d51031);
  box-shadow: 0 8px 18px rgba(229, 24, 58, .2);
}

.hall-stats-panel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.hall-stats-panel-actions button,
.hall-stats-panel-actions a {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 230, 168, .62);
  border-radius: 999px;
  color: #211306;
  text-decoration: none;
  background: linear-gradient(180deg, #ffeab5, #d79a34);
  font-size: 14px;
  font-weight: 1000;
}

.hall-stats-panel-actions button.active {
  color: #ffe1a0;
  border-color: rgba(255, 214, 131, .24);
  background: linear-gradient(180deg, #151515, #080808);
}

.hall-toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 60;
  min-width: 118px;
  max-width: min(78vw, 320px);
  transform: translateX(-50%);
  padding: 10px 16px;
  border: 1px solid rgba(255, 214, 131, .32);
  border-radius: 999px;
  color: #1d1102;
  text-align: center;
  font-size: 13px;
  font-weight: 1000;
  background: linear-gradient(180deg, #fff1c4, #e4a634);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .34), 0 0 22px rgba(228, 166, 52, .2);
}

.hall-profile {
  position: relative;
  padding: 14px 12px;
  border: 1px solid rgba(255, 214, 131, .18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 214, 131, .2), transparent 120px),
    linear-gradient(180deg, rgba(38, 33, 25, .96), rgba(12, 12, 13, .98));
}

.hall-profile-user {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.hall-avatar.large {
  width: 66px;
  height: 66px;
}

.hall-avatar.large span {
  font-size: 16px;
}

.hall-profile-user p,
.hall-profile-user h2,
.hall-profile-user time {
  margin: 0;
}

.hall-profile-user p {
  color: #ffd77f;
  font-size: 12px;
  font-weight: 800;
}

.hall-profile-user h2 {
  margin-top: 5px;
  color: #fff3d4;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 1000;
}

.hall-profile-user time {
  display: block;
  margin-top: 4px;
  color: #afa597;
  font-size: 12px;
}

.hall-profile > b {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #231504;
  background: linear-gradient(180deg, #fff1c4, #e4a634);
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(228, 166, 52, .18);
}

.hall-profile-stats {
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, #171718, #0d0d0e);
}

.hall-detail-pick {
  padding: 2px 0 14px;
}

.hall-record-list {
  display: grid;
  gap: 7px;
}

.hall-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}

.hall-record-row strong {
  color: #fff2d0;
  font-size: 15px;
}

.hall-record-row p {
  margin: 5px 0 0;
  color: #d8cebd;
  font-size: 13px;
  line-height: 1.35;
}

.hall-pick-values {
  word-break: break-word;
}

.hall-pick-values span {
  display: inline;
}

.hall-pick-values em {
  color: rgba(255, 226, 170, .72);
  font-style: normal;
}

.hall-pick-values span.hit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff5d73, #d51031);
  box-shadow: 0 0 18px rgba(229, 24, 58, .48);
  font-weight: 1000;
  line-height: 1;
}

.record-values {
  max-width: 100%;
}

.hall-record-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 92px;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #a9a39b;
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 900;
}

.hall-record-result small {
  color: inherit;
  font-size: 11px;
  white-space: nowrap;
}

.hall-record-result b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #101010;
  background: linear-gradient(180deg, #ddd, #888);
  font-size: 13px;
}

.hall-record-result.hit {
  color: #fff1d0;
  background: linear-gradient(180deg, rgba(255, 66, 94, .25), rgba(91, 6, 20, .18));
  box-shadow: 0 8px 18px rgba(229, 24, 58, .2);
}

.hall-record-result.hit b {
  color: #fff;
  background: linear-gradient(180deg, #ff5d73, #d51031);
}

.auth-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
}

.auth-modal {
  position: relative;
  width: min(360px, calc(100vw - 32px));
  padding: 22px 18px 18px;
  border: 1px solid rgba(245, 203, 118, .38);
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 0%, rgba(245, 203, 118, .2), transparent 34%),
    linear-gradient(145deg, #191919, #090909);
  color: #fff7dc;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .58);
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #f8da91;
  background: rgba(255, 255, 255, .08);
  font-size: 22px;
  line-height: 28px;
}

.auth-kicker {
  margin: 0 0 8px;
  color: #f9ce74;
  font-size: 13px;
  font-weight: 900;
}

.auth-modal h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.auth-tip {
  display: block;
  margin: 8px 0 16px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tabs button,
.auth-submit {
  border: 1px solid rgba(245, 203, 118, .32);
  border-radius: 999px;
  color: #f8d886;
  background: #101010;
  font-weight: 900;
}

.auth-tabs button {
  height: 38px;
}

.auth-tabs button.active,
.auth-submit {
  color: #120b02;
  background: linear-gradient(180deg, #ffe7a7, #e3a83d);
}

.auth-modal label {
  display: block;
  margin: 12px 0;
}

.auth-modal label span {
  display: block;
  margin-bottom: 7px;
  color: #f7d47d;
  font-size: 13px;
  font-weight: 800;
}

.auth-modal input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  outline: none;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  font-size: 15px;
}

.auth-modal input:focus {
  border-color: rgba(245, 203, 118, .72);
  box-shadow: 0 0 0 3px rgba(245, 203, 118, .12);
}

.auth-submit {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  font-size: 16px;
}

.auth-submit:disabled {
  opacity: .62;
}

.auth-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: #2bff9d;
  font-size: 13px;
}

.auth-message.error {
  color: #ff6d78;
}

.formula-detail-shell {
  min-height: 100vh;
  background: #050505;
}

.formula-detail-main {
  display: grid;
  gap: 9px;
  padding: 8px 8px calc(82px + env(safe-area-inset-bottom));
}

.formula-detail-hero,
.formula-detail-card {
  border: 1px solid rgba(255, 214, 131, .16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(243, 197, 107, .13), transparent 140px),
    linear-gradient(145deg, #151516, #080808);
}

.formula-detail-hero {
  min-height: 82px;
  padding: 14px;
}

.formula-detail-hero span {
  color: #f3c56b;
  font-size: 11px;
  font-weight: 900;
}

.formula-detail-hero h2 {
  margin: 5px 0 4px;
  color: #fff2d0;
  font-size: 20px;
  font-weight: 1000;
}

.formula-detail-hero p {
  margin: 0;
  color: #cfc7b7;
  font-size: 12px;
}

.formula-detail-card {
  padding: 12px;
}

.formula-detail-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.formula-detail-badges span,
.formula-detail-badges b {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.formula-detail-badges span {
  color: #241606;
  background: linear-gradient(180deg, #ffe8ad, #d99b38);
}

.formula-detail-badges b {
  color: #fff;
  background: linear-gradient(180deg, #ff5166, #c51227);
}

.formula-detail-card h2 {
  margin: 0 0 8px;
  color: #fff4d8;
  font-size: 18px;
  line-height: 1.35;
}

.formula-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.formula-detail-meta span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  color: #d9d1c4;
  background: rgba(255, 255, 255, .04);
  font-size: 11px;
}

.formula-detail-content {
  color: #f5f1e8;
  font-size: 13px;
  line-height: 1.72;
}

.formula-detail-content p {
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.formula-detail-content p:last-child {
  border-bottom: 0;
}

.formula-post-content span[style*="background-color"],
.formula-detail-content span[style*="background-color"],
.formula-post-content span[style*="FFFF00"],
.formula-detail-content span[style*="FFFF00"] {
  display: inline-grid;
  min-width: 17px;
  height: 19px;
  place-items: center;
  margin: 0 1px;
  padding: 0 3px;
  border-radius: 4px;
  color: #14100a !important;
  background: linear-gradient(180deg, #fff48a, #ffd42a) !important;
  font-weight: 1000;
  line-height: 1;
  text-shadow: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .22), 0 0 8px rgba(255, 218, 42, .18);
}

.formula-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.formula-detail-more {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #241606;
  background: linear-gradient(180deg, #ffe8ad, #d99b38);
  font-size: 13px;
  font-weight: 900;
}

.formula-detail-more.ghost {
  color: #f3c56b;
  border: 1px solid rgba(243, 197, 107, .26);
  background: rgba(255, 255, 255, .035);
}

.formula-preview-empty,
.formula-empty {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  color: #cfc7b7;
  background: #101011;
  font-size: 12px;
  text-align: center;
}

.formula-shell {
  display: grid;
  grid-template-rows: 45px 1fr;
  height: 100vh;
  min-height: 100vh;
}

.formula-main {
  min-height: 0;
  overflow-y: auto;
  padding: 8px 8px calc(76px + env(safe-area-inset-bottom));
  background: #050505;
}

.formula-lottery-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.formula-lottery-tabs button,
.formula-menu-tabs button,
.formula-sub-tabs button {
  height: 30px;
  min-width: 0;
  border: 1px solid rgba(243, 197, 107, .28);
  border-radius: 999px;
  color: #f3c56b;
  background: linear-gradient(180deg, #161617, #0b0b0c);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-lottery-tabs .active,
.formula-menu-tabs .active,
.formula-sub-tabs .active {
  color: #241301;
  border-color: rgba(255, 231, 170, .85);
  background: linear-gradient(180deg, #ffe8ad, #d99b38);
  box-shadow: 0 0 12px rgba(217, 155, 56, .22);
}

.formula-banner-section,
.formula-menu-section,
.formula-post-section {
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(243, 197, 107, .08), transparent 14rem),
    linear-gradient(180deg, #151516, #0c0c0d);
}

.section-head.compact {
  margin-bottom: 8px;
}

.section-head.compact span {
  color: #f3c56b;
  font-size: 12px;
  font-weight: 800;
}

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

.formula-banner-card {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: linear-gradient(180deg, #171718, #101011);
  text-align: left;
}

.formula-banner-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 5px;
  background: #0b0b0c;
}

.formula-banner-card span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff6476, #d41229);
  font-size: 10px;
  font-weight: 900;
}

.formula-banner-card strong {
  min-width: 0;
  color: #fff6d5;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-banner-card em {
  color: #b9b1a1;
  font-size: 10px;
  font-style: normal;
}

.formula-menu-tabs,
.formula-sub-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.formula-menu-tabs::-webkit-scrollbar,
.formula-sub-tabs::-webkit-scrollbar {
  display: none;
}

.formula-sub-tabs {
  margin-top: 7px;
}

.formula-menu-tabs button,
.formula-sub-tabs button {
  flex: 0 0 auto;
  padding: 0 12px;
}

.formula-post-card {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  background: linear-gradient(180deg, #171718, #101011);
  overflow: hidden;
}

.formula-post-head {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(216, 20, 61, .18), transparent 9rem),
    rgba(255, 255, 255, .025);
  text-align: left;
}

.formula-post-head span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.formula-post-head b {
  min-width: 0;
  color: #fff6d5;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-post-head em,
.formula-post-head strong {
  color: #f3c56b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.formula-post-card h3 {
  margin: 0;
  padding: 8px 10px;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.formula-post-content {
  padding: 8px 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #f5f1e7;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
}

.formula-post-content p {
  margin: 5px 0;
}

.formula-post-content span[style*="background-color"] {
  color: #111;
  border-radius: 2px;
  padding: 0 2px;
}

.formula-hero-card {
  margin-bottom: 8px;
  padding: 15px 14px;
  border: 1px solid rgba(243, 197, 107, .26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(243, 197, 107, .22), transparent 32%),
    linear-gradient(135deg, #15110b, #111112 58%, #1b1307);
  box-shadow: inset 0 0 28px rgba(255, 215, 120, .06);
}

.formula-hero-card span {
  color: #f3c56b;
  font-size: 11px;
  font-weight: 900;
}

.formula-hero-card h2 {
  margin: 5px 0 4px;
  color: #fff2c4;
  font-size: 20px;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
}

.formula-hero-card p {
  margin: 0;
  color: #cfc6b6;
  font-size: 12px;
}

.formula-banner-section,
.formula-menu-section,
.formula-post-section {
  background:
    radial-gradient(circle at 90% 0, rgba(243, 197, 107, .12), transparent 32%),
    linear-gradient(180deg, #171718, #0d0d0e);
}

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

.formula-banner-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 7px;
  text-align: left;
  border-color: rgba(243, 197, 107, .18);
  background:
    radial-gradient(circle at 78% 8%, rgba(243, 197, 107, .16), transparent 38%),
    linear-gradient(180deg, #1a1a1b, #101011);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .025);
}

.formula-banner-card.featured {
  grid-column: 1 / -1;
  padding: 9px;
  border-color: rgba(243, 197, 107, .36);
  background:
    radial-gradient(circle at 80% 4%, rgba(243, 197, 107, .22), transparent 40%),
    linear-gradient(180deg, #20180d, #101011 72%);
}

.formula-banner-card .formula-banner-image {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.62 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(243, 197, 107, .22);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 231, 173, .08), transparent 34%),
    #070707;
}

.formula-banner-card.featured .formula-banner-image {
  aspect-ratio: 2.05 / 1;
  border-color: rgba(243, 197, 107, .38);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

.formula-banner-card .formula-banner-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  display: block;
  margin: 0;
  object-fit: contain;
  border-radius: 0;
  transition: transform .22s ease;
}

.formula-banner-card:hover .formula-banner-image img {
  transform: scale(1.018);
}

.formula-banner-card .formula-period {
  position: absolute;
  top: 8px;
  left: 8px;
  inset: 8px auto auto 8px;
  padding: 2px 8px;
  border: 0;
  border-radius: 999px;
  color: #241301;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.5;
  background: linear-gradient(180deg, #fff0bd, #d99b39);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .34);
}

.formula-banner-card strong {
  min-width: 0;
  color: #fff2c4;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.formula-banner-card.featured strong {
  font-size: 17px;
}

.formula-banner-card em {
  color: #a69d8d;
  font-size: 10px;
}

.formula-menu-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
}

.formula-menu-tabs button {
  width: 100%;
  padding: 0 6px;
}

.formula-sub-tabs {
  padding-bottom: 2px;
}

.formula-post-card {
  overflow: hidden;
  border-color: rgba(243, 197, 107, .18);
}

.formula-post-card.open {
  border-color: rgba(243, 197, 107, .38);
  box-shadow: 0 0 16px rgba(243, 197, 107, .08);
}

.formula-post-head {
  background:
    linear-gradient(90deg, rgba(199, 30, 49, .28), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent);
}

.formula-post-head b {
  font-size: 15px;
}

.formula-post-head strong {
  padding: 4px 10px;
  border-radius: 999px;
  color: #241301;
  background: linear-gradient(180deg, #ffe6a6, #d79a38);
}

.formula-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 8px;
  color: #928b7f;
  font-size: 10px;
}

.formula-rate-pill {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(180deg, #ff5b78, #d60f3e);
  box-shadow: 0 0 14px rgba(255, 45, 89, .28);
}

.formula-post-content {
  overflow-x: auto;
  background: #0a0a0a;
}

.formula-post-content div {
  max-width: 100%;
}

.formula-image-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(4px);
}

.formula-post-content span[style*="background-color"],
.formula-detail-content span[style*="background-color"],
.formula-post-content span[style*="FFFF00"],
.formula-detail-content span[style*="FFFF00"] {
  display: inline-grid !important;
  min-width: 18px !important;
  height: 20px !important;
  place-items: center !important;
  margin: 0 2px !important;
  padding: 0 4px !important;
  border-radius: 5px !important;
  color: #151008 !important;
  background: linear-gradient(180deg, #fff7a6 0%, #ffd32a 100%) !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  text-shadow: none !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .38), 0 0 10px rgba(255, 211, 42, .26) !important;
}

.formula-hot-preview .formula-all-link {
  min-width: 94px;
  height: 30px;
  justify-content: center;
  color: #211303;
  border-color: rgba(255, 231, 171, .8);
  background: linear-gradient(180deg, #ffe8ae, #d99a34);
  box-shadow: 0 0 14px rgba(231, 177, 74, .18);
  font-weight: 1000;
}

.formula-rule-section .formula-menu-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px;
}

.formula-rule-section .formula-menu-tabs button {
  position: relative;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border-color: rgba(243, 197, 107, .2);
  color: #f7d98f;
  background:
    radial-gradient(circle at 100% 0%, rgba(243, 197, 107, .12), transparent 70%),
    linear-gradient(180deg, #1b1a18, #0d0d0e);
  text-align: left;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.formula-rule-section .formula-menu-tabs button::before {
  content: "";
  width: 5px;
  height: 16px;
  margin-right: 7px;
  border-radius: 99px;
  background: linear-gradient(180deg, #ffe6a6, #d79632);
  vertical-align: -3px;
  display: inline-block;
  opacity: .45;
}

.formula-rule-section .formula-menu-tabs button.active {
  color: #221304;
  border-color: rgba(255, 231, 171, .86);
  background: linear-gradient(180deg, #ffe9b0, #d99632);
  box-shadow: 0 0 16px rgba(217, 150, 50, .2);
}

.formula-rule-section .formula-menu-tabs button.active::before {
  background: #241304;
  opacity: .9;
}

.formula-rule-section .formula-sub-tabs {
  display: flex;
  gap: 6px;
  margin: 10px 10px 12px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
}

.formula-rule-section .formula-sub-tabs button {
  flex: 0 0 auto;
  height: 26px;
  min-width: 72px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  color: #c9ad68;
  border-color: rgba(243, 197, 107, .2);
  background: #080808;
}

.formula-rule-section .formula-sub-tabs button.active {
  color: #fff2c9;
  border-color: rgba(255, 218, 126, .72);
  background: linear-gradient(180deg, #493312, #15100a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.formula-image-panel {
  width: min(100%, 520px);
  max-height: 88vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(243, 197, 107, .42);
  border-radius: 10px;
  background: #111112;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .75);
}

.formula-image-panel header,
.formula-image-panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #1a1a1b, #101011);
}

.formula-image-panel header span,
.formula-image-panel footer span {
  color: #f3c56b;
  font-size: 11px;
  font-weight: 900;
}

.formula-image-panel h2 {
  margin: 2px 0 0;
  color: #fff2c4;
  font-size: 15px;
}

.formula-image-panel img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #050505;
}

.formula-image-panel button {
  height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: #241301;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(180deg, #ffe7ad, #d89b39);
}

@media (max-width: 390px) {
  .formula-banner-grid {
    gap: 8px;
  }

  .formula-menu-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Formula v2 */
.formula-main {
  padding: 8px 8px calc(82px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% -40px, rgba(243, 197, 107, .12), transparent 180px),
    #050505;
}

.formula-title-card,
.formula-draw-card,
.formula-diagram-section,
.formula-five-section,
.formula-rule-section {
  margin-bottom: 8px;
  border: 1px solid rgba(243, 197, 107, .18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 0, rgba(243, 197, 107, .14), transparent 34%),
    linear-gradient(180deg, #181819, #0f0f10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.formula-title-card {
  padding: 14px 14px 15px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 222, 148, .24), transparent 36%),
    linear-gradient(135deg, #1b160d, #101011 68%);
}

.formula-title-card span {
  color: #f3c56b;
  font-size: 10px;
  font-weight: 900;
}

.formula-title-card h2 {
  margin: 5px 0 4px;
  color: #fff2c4;
  font-size: 20px;
  line-height: 1.18;
}

.formula-title-card p {
  margin: 0;
  color: #bdb4a3;
  font-size: 12px;
}

.formula-lottery-tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 2px 0 8px;
  background: linear-gradient(180deg, #050505 78%, rgba(5, 5, 5, 0));
}

.formula-draw-card {
  padding: 10px;
}

.formula-draw-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.formula-draw-head span {
  color: #bfb7aa;
  font-size: 11px;
}

.formula-draw-head strong {
  color: #fff2c4;
  font-size: 18px;
}

.formula-draw-head a {
  color: #f3c56b;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.formula-draw-balls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3px;
}

.formula-draw-balls .draw-mini {
  width: 38px;
}

.formula-draw-balls .lottery-ball {
  width: 34px;
  height: 34px;
}

.formula-draw-balls .lottery-ball b {
  font-size: 15px;
}

.formula-draw-balls .draw-mini em {
  display: block;
  margin-top: 3px;
  color: #e7dfd2;
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
}

.formula-plus {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 34px;
}

.formula-section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 11px 12px 8px;
}

.formula-section-title span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 197, 107, .48), transparent);
}

.formula-section-title h2 {
  margin: 0;
  color: #fff2c4;
  font-size: 17px;
  font-weight: 900;
}

.formula-stage {
  position: relative;
  width: calc(100% - 20px);
  display: block;
  margin: 0 10px 9px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(243, 197, 107, .35);
  border-radius: 8px;
  background: #070707;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}

.formula-stage img {
  width: 100%;
  aspect-ratio: 1.62 / 1;
  display: block;
  object-fit: contain;
  background: #111;
}

.formula-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8));
}

.formula-stage span,
.formula-stage strong {
  position: absolute;
  z-index: 1;
}

.formula-stage span {
  top: 9px;
  left: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #241301;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(180deg, #fff0bd, #d99b39);
}

.formula-stage strong {
  left: 11px;
  right: 11px;
  bottom: 10px;
  color: #fff2c4;
  font-size: 18px;
  text-align: left;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .75);
}

.formula-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.formula-thumb-grid button {
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(243, 197, 107, .16);
  border-radius: 7px;
  background: linear-gradient(180deg, #151516, #0e0e0f);
}

.formula-thumb-grid button.active {
  border-color: rgba(243, 197, 107, .7);
  box-shadow: 0 0 13px rgba(243, 197, 107, .16);
}

.formula-thumb-grid img {
  width: 100%;
  aspect-ratio: 1.3 / 1;
  display: block;
  object-fit: cover;
  border-radius: 5px;
  background: #111;
}

.formula-thumb-grid span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #fff2c4;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-five-section,
.formula-rule-section {
  padding-bottom: 10px;
}

.formula-five-card {
  margin: 0 10px;
  overflow: hidden;
  border: 1px solid rgba(235, 224, 224, .92);
  border-radius: 8px;
  background: #fff8f8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
}

.formula-five-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 10px 12px;
  color: #101010;
  background: #fff8f8;
}

.formula-five-brand > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, .34), transparent 24%),
    linear-gradient(180deg, #0bbf82, #067346);
}

.formula-five-brand h2 {
  margin: 0;
  color: #080808;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 900;
}

.formula-five-brand p {
  margin: 6px 0 0;
  color: #1d2935;
  font-size: 12px;
  text-align: center;
}

.formula-five-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #eadfe1;
  border-left: 0;
  border-right: 0;
  background: #fff;
}

.formula-five-head strong {
  color: #df1f38;
  font-size: 13px;
}

.formula-five-head em {
  padding: 0;
  color: #df1f38;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  background: none;
}

.formula-five-list article {
  display: grid;
  grid-template-columns: 58px 1fr 54px;
  align-items: center;
  gap: 7px;
  padding: 12px 12px;
  border-top: 1px solid #e7e0e0;
  background: #fff;
  position: relative;
}

.formula-five-list article::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: #6d7a84;
}

.formula-five-list article.hit::before {
  background: #f04452;
}

.formula-five-list article.pending::before {
  background: #6d7a84;
}

.formula-five-issue b {
  display: block;
  color: #0d1826;
  font-size: 16px;
  line-height: 1.1;
}

.formula-five-issue span {
  color: #9aa9b8;
  font-size: 12px;
}

.formula-five-codes {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.formula-five-codes span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 1px solid #ff4058;
  border-radius: 999px;
  color: #0f1720;
  font-size: 13px;
  font-weight: 900;
  background: #fff;
}

.formula-five-codes span.hit {
  color: #fff;
  border-color: #ff4058;
  background: radial-gradient(circle at 38% 30%, #ff9baa, #ff2340 62%, #c90022);
  box-shadow: 0 0 14px rgba(255, 35, 64, .45);
}

.formula-five-list article > strong {
  color: #ff334a;
  font-size: 13px;
  text-align: right;
}

.formula-five-list article.hit > strong {
  color: #ff334a;
}

.formula-five-list article.pending > strong {
  color: #ff334a;
}

.formula-five-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 8px 8px;
  overflow-x: auto;
  border-top: 1px solid #ece4e4;
  background: #fff8f8;
  scrollbar-width: none;
}

.formula-five-pager::-webkit-scrollbar {
  display: none;
}

.formula-five-pager button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #dfe4ea;
  border-radius: 5px;
  color: #3a4b5c;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
}

.formula-five-pager button.active {
  color: #fff;
  border-color: #e6263d;
  background: linear-gradient(180deg, #ff465e, #db2038);
}

.formula-five-pager button:disabled {
  opacity: .42;
}

.formula-five-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 8px 9px;
  padding: 8px 6px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(30, 40, 50, .09);
}

.formula-five-features span {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 4px;
  align-items: center;
}

.formula-five-features b {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  background: linear-gradient(180deg, #37a4ff, #2872df);
}

.formula-five-features span:nth-child(2) b {
  background: linear-gradient(180deg, #24ce84, #12a563);
}

.formula-five-features span:nth-child(3) b {
  background: linear-gradient(180deg, #ffb544, #ee7a25);
}

.formula-five-features span:nth-child(4) b {
  background: linear-gradient(180deg, #a77cff, #7552db);
}

.formula-five-features strong {
  overflow: hidden;
  color: #1b2733;
  font-size: 11px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-five-features em {
  overflow: hidden;
  color: #7a8794;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-five-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 8px 12px;
  color: #4a5662;
  font-size: 11px;
}

.formula-five-foot i {
  width: 1px;
  height: 13px;
  background: #2f3842;
}

/* Dark in-site treatment for the five-zodiac/eight-code module. */
.formula-five-card {
  margin: 0 10px;
  overflow: hidden;
  border: 1px solid rgba(243, 197, 107, .22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 2%, rgba(243, 197, 107, .18), transparent 130px),
    linear-gradient(180deg, #171718, #080808);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 26px rgba(0, 0, 0, .28);
}

.formula-five-brand {
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 12px 11px;
  color: #fff2c4;
  background:
    linear-gradient(90deg, rgba(255, 219, 142, .08), transparent 68%),
    rgba(255, 255, 255, .025);
}

.formula-five-brand > span {
  width: 38px;
  height: 38px;
  color: #241301;
  font-size: 16px;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, .72), transparent 24%),
    linear-gradient(180deg, #ffe8ad, #d99b38);
  box-shadow: 0 0 18px rgba(243, 197, 107, .22);
}

.formula-five-brand h2 {
  color: #fff2c4;
  font-size: 18px;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

.formula-five-brand p {
  margin-top: 5px;
  color: #cfc5b2;
  font-size: 11px;
  text-align: left;
}

.formula-five-material-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0 10px 10px;
  border-bottom: 1px solid rgba(243, 197, 107, .12);
  background: rgba(0, 0, 0, .1);
}

.formula-five-material-tabs button {
  height: 28px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(243, 197, 107, .22);
  border-radius: 999px;
  color: #f1d59a;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(180deg, #19191a, #0c0c0d);
}

.formula-five-material-tabs button.active {
  color: #241301;
  border-color: rgba(255, 229, 167, .88);
  background: linear-gradient(180deg, #ffe8ad, #d99b38);
  box-shadow: 0 0 16px rgba(243, 197, 107, .18);
}

.formula-five-head {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid rgba(243, 197, 107, .12);
  border-bottom: 1px solid rgba(243, 197, 107, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
}

.formula-five-head strong,
.formula-five-head em {
  color: #f3c56b;
  font-size: 12px;
}

.formula-five-list {
  padding: 5px 8px 2px;
}

.formula-five-list article {
  grid-template-columns: auto 1fr;
  gap: 7px 10px;
  margin-bottom: 6px;
  padding: 9px 8px 10px 11px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  background:
    radial-gradient(circle at 98% 50%, rgba(236, 31, 44, .11), transparent 72px),
    linear-gradient(180deg, #151516, #0d0d0e);
}

.formula-five-list article::before {
  left: 4px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, #ffe7aa, #d99b38);
}

.formula-five-list article.hit::before {
  background: linear-gradient(180deg, #ff566c, #c81328);
}

.formula-five-issue b {
  display: inline;
  color: #fff2c4;
  font-size: 15px;
}

.formula-five-issue span {
  display: block;
  color: #998f80;
  font-size: 10px;
}

.formula-five-codes {
  grid-column: 1 / -1;
  grid-row: 2 / 3;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  row-gap: 6px;
}

.formula-five-codes span {
  width: clamp(22px, 7.1vw, 27px);
  height: clamp(22px, 7.1vw, 27px);
  flex: 0 0 clamp(22px, 7.1vw, 27px);
  border: 1px solid rgba(255, 215, 138, .52);
  color: #fff4d3;
  font-size: 12px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, .1), transparent 50%),
    #101011;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .32);
}

.formula-five-list article.zodiac .formula-five-codes {
  justify-content: flex-start;
}

.formula-five-list article.zodiac .formula-five-codes span {
  width: auto;
  min-width: 34px;
  padding: 0 9px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.formula-five-list article.number .formula-five-codes span {
  width: clamp(22px, 6.8vw, 27px);
  height: clamp(22px, 6.8vw, 27px);
  flex: 0 0 clamp(22px, 6.8vw, 27px);
}

.formula-five-list article.code24 .formula-five-codes {
  display: grid;
  grid-template-columns: repeat(8, 24px);
  justify-content: space-between;
  gap: 6px 0;
}

.formula-five-list article.code24 .formula-five-codes span {
  width: 24px;
  height: 24px;
  min-width: 0;
  flex-basis: 24px;
  font-size: 11px;
}

.formula-five-list article.code12 .formula-five-codes {
  display: grid;
  grid-template-columns: repeat(6, 26px);
  justify-content: space-between;
  gap: 6px 0;
}

.formula-five-list article.code12 .formula-five-codes span {
  width: 26px;
  height: 26px;
  min-width: 0;
  flex-basis: 26px;
  font-size: 11px;
}

.formula-five-codes span.hit {
  color: #fff;
  border-color: rgba(255, 80, 101, .9);
  background: radial-gradient(circle at 38% 30%, #ff9baa, #ff2340 62%, #bd001f);
  box-shadow: 0 0 16px rgba(255, 35, 64, .35);
}

.formula-five-list article > strong,
.formula-five-list article.hit > strong,
.formula-five-list article.pending > strong {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  justify-self: end;
  color: #ff6374;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.formula-five-pager {
  justify-content: flex-start;
  padding: 8px 8px 6px;
  border-top: 1px solid rgba(243, 197, 107, .12);
  background: rgba(0, 0, 0, .12);
}

.formula-five-pager button {
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(243, 197, 107, .2);
  border-radius: 999px;
  color: #f1d59a;
  font-size: 10px;
  background: linear-gradient(180deg, #19191a, #0c0c0d);
}

.formula-five-pager button.active {
  color: #241301;
  border-color: rgba(255, 229, 167, .8);
  background: linear-gradient(180deg, #ffe8ad, #d99b38);
  box-shadow: 0 0 14px rgba(243, 197, 107, .16);
}

.formula-five-features {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 3px 8px 8px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.formula-five-features span {
  min-height: 44px;
  padding: 7px 6px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 7px;
  background: rgba(255, 255, 255, .035);
}

.formula-five-features b {
  color: #241301;
  background: linear-gradient(180deg, #ffe8ad, #d99b38);
}

.formula-five-features span:nth-child(2) b,
.formula-five-features span:nth-child(3) b,
.formula-five-features span:nth-child(4) b {
  background: linear-gradient(180deg, #ffe8ad, #d99b38);
}

.formula-five-features strong {
  color: #fff2c4;
}

.formula-five-features em {
  color: #a99f90;
}

.formula-five-foot {
  justify-content: space-between;
  padding: 0 10px 10px;
  color: #9e9384;
  font-size: 10px;
}

.formula-five-foot i {
  background: rgba(243, 197, 107, .2);
}

.formula-rule-section .formula-menu-tabs,
.formula-rule-section .formula-sub-tabs {
  padding: 0 10px;
}

.formula-rule-section .formula-sub-tabs {
  margin: 8px 0 10px;
}

.formula-rule-section .formula-post-card {
  margin: 8px 10px 0;
}

.formula-post-head {
  grid-template-columns: 24px 1fr auto;
}

.formula-post-head i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  background: linear-gradient(180deg, #ff4862, #bb142a);
}

.formula-image-panel footer {
  display: none;
}

@media (max-width: 390px) {
  .formula-thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .formula-five-list article {
    grid-template-columns: 52px 1fr 44px;
    gap: 4px;
    padding: 11px 9px;
  }

  .formula-five-codes span {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    font-size: 11px;
  }

  .formula-five-brand h2 {
    font-size: 16px;
  }

  .formula-five-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.picture-detail-shell {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0, rgba(244, 189, 80, .13), transparent 220px),
    #050505;
}

.picture-detail-top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 45px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid rgba(243, 197, 107, .18);
  background: rgba(5, 5, 5, .94);
  backdrop-filter: blur(12px);
}

.picture-detail-top h1 {
  margin: 0;
  color: #ffe3a3;
  font-size: 16px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-history-link {
  color: #ff465a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.picture-detail-main {
  display: grid;
  gap: 10px;
  padding: 8px 8px calc(96px + env(safe-area-inset-bottom));
}

.detail-period-card,
.detail-image-card,
.detail-related,
.detail-draw-card {
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(35, 35, 36, .96), rgba(12, 12, 13, .98));
  overflow: hidden;
}

.detail-period-card {
  overflow: visible;
}

.detail-year-tabs,
.detail-issue-tabs {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.detail-issue-tabs {
  min-height: 40px;
  overflow: visible;
  flex-wrap: wrap;
}

.detail-year-tabs::-webkit-scrollbar,
.detail-issue-tabs::-webkit-scrollbar {
  display: none;
}

.detail-year-tabs button,
.detail-issue-tabs button,
.detail-issue-tabs span {
  flex: 0 0 auto;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #fff;
  background: #111112;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.detail-year-tabs .active,
.detail-issue-tabs .active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(180deg, #ff6476, #d41229);
}

.detail-more-issue {
  color: #211405 !important;
  border-color: transparent !important;
  background: linear-gradient(180deg, #ffe7aa, #d99b38) !important;
}

.detail-issue-picker {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 44px;
  z-index: 12;
  max-height: 210px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(243, 197, 107, .36);
  border-radius: 8px;
  background: rgba(8, 8, 9, .98);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
  overflow-y: auto;
}

.detail-issue-picker[hidden] {
  display: none;
}

.detail-issue-picker button {
  width: 100%;
  padding: 0 6px;
}

.detail-image-card {
  padding: 8px;
}

.detail-picture-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 8px;
  color: #ffe3a3;
  font-size: 13px;
  font-weight: 900;
}

.detail-picture-head span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(180deg, #ff6476, #d41229);
}

.detail-picture-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-main-image {
  width: 100%;
  max-height: 720px;
  display: block;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 6px;
  color: #cfc7b7;
  font-size: 12px;
}

.detail-actions span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.detail-related,
.detail-draw-card {
  padding: 10px;
}

.detail-draw-card {
  scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom));
}

.detail-related h2,
.detail-draw-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
}

.detail-related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  overflow: hidden;
}

.detail-related-item {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  text-decoration: none;
  text-align: left;
  appearance: none;
}

.detail-related-item img {
  width: 100%;
  aspect-ratio: .72 / 1;
  display: block;
  border-radius: 4px;
  object-fit: cover;
  background: #111;
}

.detail-related-placeholder {
  width: 100%;
  aspect-ratio: .72 / 1;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 4px;
  color: #ffe3a3;
  background:
    radial-gradient(circle at 50% 18%, rgba(243, 197, 107, .22), transparent 42%),
    linear-gradient(180deg, #19191a, #0c0c0d);
  border: 1px solid rgba(243, 197, 107, .2);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.detail-related-item span {
  min-width: 0;
  font-size: 11px;
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-related-item em {
  min-width: 0;
  color: #f3c56b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-draw-balls {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 8px 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  overflow: visible;
}

.detail-draw-balls.detail-draw-pending {
  display: block;
  padding: 0;
  background: transparent;
}

.detail-pending-draw {
  padding: 9px;
  border: 1px solid rgba(243, 197, 107, .5);
  border-radius: 6px;
  color: #fff3cf;
  background:
    radial-gradient(circle at 90% 12%, rgba(243, 197, 107, .24), transparent 38%),
    linear-gradient(135deg, rgba(40, 34, 24, .98), rgba(13, 13, 14, .98) 58%, rgba(28, 18, 18, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 10px 24px rgba(0, 0, 0, .28);
}

.detail-pending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #ffe4a4;
  font-size: 13px;
  font-weight: 800;
}

.detail-pending-head span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}

.detail-pending-head b {
  padding: 4px 7px;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(180deg, #ff6074, #d31029);
  box-shadow: 0 5px 13px rgba(211, 16, 41, .25);
  font-size: 15px;
  white-space: nowrap;
}

.detail-pending-date {
  display: block;
  margin: 6px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-pending-head strong {
  color: #ffc45d;
  font-size: 15px;
  letter-spacing: .5px;
  text-shadow: 0 0 12px rgba(243, 197, 107, .35);
}

.detail-pending-words {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.detail-pending-words i {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(243, 197, 107, .55);
  border-radius: 50%;
  color: #ffe7ad;
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, .4), transparent 18%),
    linear-gradient(180deg, rgba(83, 72, 52, .95), rgba(28, 25, 22, .98));
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, .32),
    0 0 0 2px rgba(0, 0, 0, .22),
    0 7px 13px rgba(0, 0, 0, .3);
  font-size: clamp(18px, 6.4vw, 28px);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.detail-pending-words em {
  justify-self: center;
  color: #f3c56b;
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.detail-draw-code {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
}

.detail-draw-code .lottery-ball {
  width: 32px;
  height: 32px;
}

.detail-draw-code .lottery-ball b {
  font-size: 15px;
}

.detail-draw-code em {
  max-width: 100%;
  color: #cfc7b7;
  font-size: 9px;
  font-style: normal;
  line-height: 1.1;
  white-space: nowrap;
}

.detail-plus {
  align-self: center;
  justify-self: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.picture-empty {
  grid-column: 1 / -1;
  margin: 18px 0;
  color: #d7d0c5;
  text-align: center;
  font-size: 13px;
}

.picture-preview {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .86);
}

.picture-preview.active {
  display: flex;
}

.picture-preview figure {
  width: min(100%, 720px);
  max-height: 94vh;
  display: grid;
  gap: 8px;
  margin: 0;
}

.picture-preview img {
  max-width: 100%;
  max-height: 84vh;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  justify-self: center;
}

.picture-preview figcaption {
  display: grid;
  gap: 3px;
  color: #fff;
  text-align: center;
}

.picture-preview figcaption strong {
  color: #ffe0a0;
  font-size: 15px;
}

.picture-preview figcaption span {
  color: #d2c6b0;
  font-size: 12px;
}

#picturePreviewClose {
  position: fixed;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
}

#picturePreviewClose::before,
#picturePreviewClose::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 16px;
  width: 15px;
  height: 2px;
  background: #fff;
}

#picturePreviewClose::before {
  transform: rotate(45deg);
}

#picturePreviewClose::after {
  transform: rotate(-45deg);
}

.bottom-nav a {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #9f9c98;
  text-decoration: none;
  font-size: 12px;
}

.bottom-nav a.active {
  color: var(--gold);
}

.bottom-nav b {
  font-weight: 500;
}

.bottom-nav span {
  width: 23px;
  height: 23px;
  position: relative;
  display: block;
}

.home-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 19px;
  height: 14px;
  border-radius: 4px 4px 3px 3px;
  background: currentColor;
}

.home-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 15px;
  height: 15px;
  background: currentColor;
  transform: rotate(45deg);
}

.gallery-icon {
  border: 1px solid currentColor;
  border-radius: 3px;
}

.gallery-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 12px;
  height: 8px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: skew(-18deg);
}

.gallery-icon::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.center-logo {
  align-self: start;
  margin-top: -10px;
}

.center-logo strong {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 3px solid #f4c66e;
  border-radius: 50%;
  color: #ffe2a0;
  background: #0a0a0a;
  box-shadow: 0 0 0 2px rgba(244, 198, 110, .18), 0 0 18px rgba(244, 198, 110, .85);
  font-size: 24px;
  font-style: italic;
  font-weight: 900;
}

.center-logo.active strong {
  color: #fff8df;
  background: radial-gradient(circle at 50% 40%, #33240a, #070707 68%);
  box-shadow: 0 0 0 2px rgba(255, 232, 174, .28), 0 0 22px rgba(244, 198, 110, .95);
}

.lottery-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.lottery-icon::before,
.lottery-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.lottery-icon::after {
  inset: 8px;
  background: currentColor;
}

.chart-icon::before,
.chart-icon::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 4px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.chart-icon::before {
  left: 3px;
  height: 10px;
  box-shadow: 8px -5px 0 -2px transparent, 8px -5px 0 0 currentColor;
}

.chart-icon::after {
  right: 3px;
  height: 19px;
}

.home-history {
  margin-top: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: radial-gradient(circle at 74% 16%, rgba(255, 255, 255, .07), transparent 7rem), #151516;
}

.home-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.home-history-head h3 {
  margin: 0;
  color: #eebf6c;
  font-size: 13px;
}

.home-history-head h3::before {
  content: "●";
  margin-right: 5px;
}

.home-history-head a {
  color: #bdb5ac;
  font-size: 11px;
}

.home-history-list {
  display: grid;
  gap: 6px;
}

.home-history-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 5px;
  background: rgba(0, 0, 0, .18);
}

.home-history-issue {
  display: grid;
  place-items: center;
  height: 22px;
  border-radius: 3px;
  color: #fff;
  background: linear-gradient(180deg, #843139, #56131a);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.home-history-balls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.home-history-code .lottery-ball {
  width: 26px;
  height: 26px;
}

.home-history-code .lottery-ball b {
  font-size: 12px;
}

.home-history-plus {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.history-loading {
  margin: 0;
  padding: 10px 4px;
  color: #bdb5ac;
  font-size: 11px;
  text-align: center;
}

.recommend-history-page {
  width: 100%;
  min-width: 0;
  padding: 8px 7px 0;
  display: grid;
  gap: 8px;
}

.recommend-history-page > * {
  min-width: 0;
}

.history-video-card,
.recommend-history-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: linear-gradient(145deg, #151516, #080808);
}

.history-video-card {
  overflow: hidden;
  padding: 8px;
}

.recommend-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.recommend-history-head h2 {
  margin: 0;
  color: #ffe0a0;
  font-size: 15px;
  font-weight: 900;
}

.recommend-history-head a {
  color: #82f0a6;
  font-size: 11px;
  white-space: nowrap;
}

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

.history-video-grid .history-loading {
  grid-column: 1 / -1;
}

.history-draw-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(255, 210, 113, .22);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(28, 27, 25, .96), rgba(7, 7, 7, .96));
}

.history-draw-result header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffe0a0;
  font-size: 13px;
  font-weight: 900;
}

.history-draw-result header b {
  color: #fff;
  font-size: 12px;
}

.history-draw-result .history-codes {
  overflow-x: auto;
  padding-bottom: 2px;
}

.history-video-item {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.history-video-item span {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 214, 131, .18);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 12%, rgba(70, 202, 255, .32), transparent 34%),
    linear-gradient(180deg, #121522, #07080d);
}

.history-video-item video,
.history-video-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.history-video-item i {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 21px;
  height: 21px;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
}

.history-video-item i::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  border-left: 7px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.history-video-item b {
  min-width: 0;
  color: #d7d2ca;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-history-list {
  display: grid;
  gap: 8px;
}

.recommend-history-card {
  overflow: hidden;
}

.recommend-history-card h3 {
  margin: 0;
  padding: 7px 10px;
  color: #009c5c;
  background: linear-gradient(90deg, rgba(226, 241, 255, .95), rgba(218, 235, 253, .8));
  font-size: 13px;
  font-weight: 900;
}

.recommend-history-card p {
  position: relative;
  min-height: 25px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 5px;
  align-items: start;
  margin: 0;
  padding: 7px 10px 0;
  color: #f6f1e8;
  font-size: 13px;
  line-height: 1.55;
}

.recommend-history-card p:last-child {
  padding-bottom: 9px;
}

.recommend-history-card b {
  color: #ffe0a0;
  font-weight: 900;
  white-space: nowrap;
}

.recommend-history-card em {
  min-width: 0;
  color: #f4efe7;
  font-style: normal;
  word-break: break-all;
}

.recommend-history-card .code-row em {
  color: #00d67a;
}

.recommend-history-card span {
  align-self: start;
  min-width: 34px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ef1f2e;
  font-size: 11px;
  font-weight: 900;
}

body.modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
}

.video-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  overflow: hidden;
  border: 1px solid rgba(255, 214, 131, .35);
  border-radius: 8px;
  background: #080808;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .68);
}

.video-modal-panel header {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, #181819, #090909);
}

.video-modal-panel h2 {
  min-width: 0;
  margin: 0;
  color: #ffe0a0;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-modal-panel button {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.video-modal-panel button::before,
.video-modal-panel button::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #f2cf8b;
}

.video-modal-panel button::before {
  transform: rotate(45deg);
}

.video-modal-panel button::after {
  transform: rotate(-45deg);
}

.video-modal-panel video {
  width: 100%;
  max-height: 70vh;
  display: block;
  background: #000;
}

.history-page-shell {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.history-page {
  width: 100%;
  min-width: 0;
  padding: 8px 7px 0;
  display: grid;
  gap: 8px;
}

.history-page > *,
.history-controls,
.history-summary,
.history-list,
.history-view {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.history-view {
  overflow: hidden;
}

.history-menu,
.history-controls,
.history-summary,
.history-list,
.trend-card,
.stat-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: linear-gradient(145deg, #151516, #080808);
}

.history-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
}

.history-menu button {
  min-width: 0;
  height: 54px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  color: #d8d2c8;
  background: linear-gradient(180deg, #202022, #101011);
  font-size: 11px;
  font-weight: 900;
}

.history-menu button.active {
  color: #1b1205;
  border-color: rgba(255, 226, 162, .82);
  background: linear-gradient(180deg, #ffe8ae, #c88a31);
}

.history-menu-icon {
  width: 22px;
  height: 22px;
  position: relative;
  display: block;
  color: currentColor;
}

.history-menu-icon.records {
  border: 2px solid currentColor;
  border-radius: 5px;
}

.history-menu-icon.records::before,
.history-menu-icon.records::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: currentColor;
}

.history-menu-icon.records::before {
  top: 6px;
}

.history-menu-icon.records::after {
  top: 12px;
}

.history-menu-icon.trend::before,
.history-menu-icon.stats::before,
.history-menu-icon.missing::before {
  content: "";
  position: absolute;
  inset: 3px 2px;
}

.history-menu-icon.trend::before {
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: skew(-22deg);
}

.history-menu-icon.trend::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  transform: rotate(-24deg);
}

.history-menu-icon.stats::before {
  background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px, transparent 12px 16px, currentColor 16px 20px);
  clip-path: polygon(0 58%, 20% 58%, 20% 100%, 0 100%, 40% 25%, 60% 25%, 60% 100%, 40% 100%, 80% 0, 100% 0, 100% 100%, 80% 100%);
}

.history-menu-icon.missing::before {
  border: 3px solid currentColor;
  border-radius: 50%;
}

.history-menu-icon.missing::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  width: 3px;
  height: 11px;
  border-radius: 3px;
  background: currentColor;
  transform-origin: bottom;
  transform: rotate(35deg);
}

.history-controls {
  padding: 8px;
}

.history-lottery-tabs {
  margin-bottom: 8px;
}

.history-filter {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 7px;
  align-items: center;
}

.history-filter label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: #cfc7bd;
  font-size: 11px;
}

.history-filter select {
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  color: #fff2d2;
  background: #111112;
  font: inherit;
}

.history-check {
  height: 30px;
  align-self: end;
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  background: #111112;
  white-space: nowrap;
}

.history-check input {
  accent-color: #d59b39;
}

.history-summary {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 203, 103, .13), transparent 7rem),
    linear-gradient(145deg, #151516, #080808);
}

.history-summary p,
.history-summary strong {
  margin: 0;
  display: block;
}

.history-summary p {
  color: #a9a39a;
  font-size: 11px;
}

.history-summary strong {
  margin-top: 3px;
  color: #ffe1a0;
  font-size: 18px;
  font-weight: 900;
}

.history-summary small {
  color: #d8d0c7;
  font-size: 11px;
  text-align: right;
}

.history-empty {
  padding: 28px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: #bdb5ac;
  background: linear-gradient(145deg, #151516, #080808);
  text-align: center;
  font-size: 13px;
}

.history-list {
  overflow: hidden;
}

.history-line {
  min-height: 72px;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.history-line:last-child {
  border-bottom: 0;
}

.history-qid {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.history-qid span {
  color: #bbb5ad;
  font-size: 10px;
  white-space: nowrap;
}

.history-qid b {
  min-width: 44px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(180deg, #843139, #56131a);
  font-size: 11px;
}

.history-codes {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.history-code {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
}

.history-code .lottery-ball {
  width: 32px;
  height: 32px;
}

.history-code .lottery-ball b {
  font-size: 15px;
}

.history-code em {
  max-width: 35px;
  color: #d9d4cb;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-plus {
  display: grid;
  place-items: center;
  height: 32px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.trend-card {
  overflow: hidden;
}

.history-subtabs {
  display: none;
}

.history-subtabs.wrap {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow-x: auto;
}

.history-subtabs button {
  height: 29px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  color: #d8d2c8;
  background: linear-gradient(180deg, #202022, #101011);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.history-subtabs button.active {
  color: #1b1205;
  border-color: rgba(255, 226, 162, .82);
  background: linear-gradient(180deg, #ffe8ae, #c88a31);
}

.trend-scroll {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: linear-gradient(145deg, #151516, #080808);
}

.trend-matrix {
  min-width: 1130px;
}

.trend-matrix-head,
.trend-matrix-row {
  display: grid;
  grid-template-columns: 62px repeat(var(--trend-columns), 21px);
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.trend-matrix-head {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #ffe0a0;
  background: #171717;
  font-size: 10px;
  font-weight: 900;
}

.trend-matrix-head b,
.trend-matrix-row b {
  position: sticky;
  left: 0;
  z-index: 2;
  height: 29px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: #171717;
}

.trend-matrix-row b {
  color: #fff2d2;
  background: #111112;
  font-size: 10px;
}

.trend-matrix-head span,
.trend-matrix-row span {
  height: 29px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, .05);
  font-size: 10px;
}

.miss-cell {
  color: #56534e;
}

.miss-cell::before {
  content: "·";
}

.trend-hit {
  position: relative;
  color: #fff;
  font-weight: 900;
}

.trend-hit.red {
  background: rgba(236, 31, 44, .86);
}

.trend-hit.blue {
  background: rgba(27, 117, 255, .88);
}

.trend-hit.green {
  background: rgba(36, 184, 93, .88);
}

.trend-hit i {
  position: absolute;
  right: -1px;
  top: -1px;
  width: 11px;
  height: 11px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1b1205;
  background: #ffe2a0;
  font-size: 7px;
  font-style: normal;
}

.trend-head,
.trend-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 7px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.trend-head {
  color: #fff2d2;
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  font-weight: 900;
}

.trend-row b {
  color: #ffe0a0;
  font-size: 11px;
  white-space: nowrap;
}

.trend-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.history-code.compact .lottery-ball {
  width: 25px;
  height: 25px;
}

.history-code.compact .lottery-ball b {
  font-size: 11px;
}

.history-code.compact em {
  display: none;
}

.stat-card {
  overflow: hidden;
  padding: 8px;
}

.stat-title {
  margin-bottom: 8px;
  color: #ffe0a0;
  font-size: 14px;
  font-weight: 900;
}

.stat-row {
  display: grid;
  grid-template-columns: 20px 25px 1fr 54px;
  align-items: center;
  gap: 8px;
  min-height: 31px;
}

.stat-row em {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #17100a;
  background: linear-gradient(#ffe5a4, #c8913c);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.stat-row:nth-child(n + 5) em {
  color: #fff;
  background: #73777d;
}

.stat-row i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #2a2a2b;
}

.stat-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff2444, #ffb553);
}

.missing-row i b {
  background: linear-gradient(90deg, #1886ff, #42c8ff);
}

.stat-row strong {
  color: #d7d2ca;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.metric-table {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: linear-gradient(145deg, #151516, #080808);
}

.metric-row {
  min-height: 39px;
  display: grid;
  grid-template-columns: 62px 1fr 68px 68px 68px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #ddd7ce;
  font-size: 11px;
}

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

.metric-row > span {
  min-width: 0;
  padding: 0 6px;
  text-align: center;
}

.metric-head {
  min-height: 32px;
  color: #fff2d2;
  background: rgba(255, 255, 255, .045);
  font-weight: 900;
}

.metric-row b {
  color: #fff2d2;
}

.metric-row strong {
  position: relative;
  z-index: 1;
  color: #ffe3a0;
}

.metric-row span:nth-child(2) {
  position: relative;
  height: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

.metric-row span:nth-child(2) em {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff2444, #ffb553);
  opacity: .75;
}

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

.missing-card {
  min-height: 76px;
  position: relative;
  padding: 8px 8px 7px 34px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 203, 103, .09), transparent 4rem),
    linear-gradient(145deg, #151516, #080808);
}

.missing-card > em {
  position: absolute;
  left: 8px;
  top: 10px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #17100a;
  background: linear-gradient(#ffe5a4, #c8913c);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.missing-card:nth-child(n + 4) > em {
  color: #fff;
  background: #73777d;
}

.missing-card > span {
  min-height: 22px;
  display: flex;
  align-items: center;
}

.missing-card > span b {
  color: #fff2d2;
  font-size: 15px;
}

.missing-card > strong {
  position: absolute;
  right: 8px;
  top: 8px;
  color: #ffe3a0;
  font-size: 17px;
}

.missing-card > strong small {
  margin-left: 2px;
  color: #bdb5ac;
  font-size: 10px;
  font-weight: 500;
}

.missing-card p {
  height: 5px;
  margin: 8px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #2a2a2b;
}

.missing-card p i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1886ff, #42c8ff);
}

.missing-card > small {
  color: #bdb5ac;
  font-size: 10px;
}

.source-category-tabs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  margin: 0 0 8px;
  padding: 2px;
}

.source-category-tabs button {
  min-width: 0;
  height: 30px;
  padding: 0 4px;
  border: 1px solid rgba(245, 165, 60, .48);
  border-radius: 999px;
  color: #ffe6af;
  background: linear-gradient(180deg, #24201a, #0d0d0d);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.source-category-tabs button.active {
  color: #171006;
  border-color: rgba(255, 224, 151, .9);
  background: linear-gradient(180deg, #ffe8b2, #d89a3d);
  box-shadow: 0 0 14px rgba(232, 174, 80, .25);
}

.source-tip {
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #f5a53c;
  border-bottom: 0;
  color: #fff2d2;
  background: #111112;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.source-table {
  overflow: hidden;
  border: 1px solid #f5a53c;
  border-radius: 0 0 4px 4px;
  background: #f6f6f6;
}

.source-row {
  display: grid;
  min-height: 50px;
  border-bottom: 1px solid #f5b24f;
  color: #111;
  background: #f7f7f7;
  font-size: 15px;
}

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

.source-stats-table .source-row {
  grid-template-columns: 58px 1fr 76px 76px 76px;
}

.source-missing-table .source-row {
  grid-template-columns: 52px 1fr 132px 84px;
}

.source-row > span,
.source-head button {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-right: 1px solid #f5b24f;
  text-align: center;
}

.source-row > span:last-child,
.source-head button:last-child {
  border-right: 0;
}

.source-head {
  min-height: 44px;
  color: #111;
  background: #fff;
}

.source-head button {
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  color: #111;
  background: #fff;
  font-size: 14px;
}

.source-row b {
  color: #101010;
  font-size: 16px;
  font-weight: 900;
}

.sort-arrow {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #999;
}

.sort-arrow.asc {
  border-top: 0;
  border-bottom: 7px solid #f05a4f;
}

.sort-arrow.desc {
  border-top-color: #f05a4f;
}

.source-trend-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #f5a53c;
  border-radius: 0 0 4px 4px;
  background: #f7f7f7;
  overscroll-behavior-x: contain;
}

.source-trend-table {
  width: max-content;
  min-width: 100%;
}

.source-trend-row {
  width: max-content;
  min-width: 100%;
  display: grid;
  grid-template-columns: 64px 64px repeat(var(--source-columns), 48px);
  min-height: 40px;
  border-bottom: 1px solid #f5b24f;
  color: #111;
}

.source-trend-row:last-child {
  border-bottom: 0;
}

.source-trend-row b,
.source-trend-row strong,
.source-trend-row span {
  display: grid;
  place-items: center;
  border-right: 1px solid #f5b24f;
  font-size: 13px;
}

.source-trend-row b {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
  font-weight: 900;
}

.source-trend-row strong {
  position: sticky;
  left: 64px;
  z-index: 3;
  min-width: 0;
  background: #fffdf8;
  font-weight: 900;
}

.source-trend-row strong em {
  color: #111;
  font-style: normal;
  font-weight: 900;
}

.source-trend-row span:last-child {
  border-right: 0;
}

.source-trend-head {
  color: #fff;
  background: #f5a84a;
  font-weight: 900;
}

.source-trend-head b {
  color: #fff;
  background: #f5a84a;
}

.source-trend-head strong {
  color: #fff;
  background: #f5a84a;
}

.source-trend-row span.hit {
  color: #fff;
  background: linear-gradient(180deg, #1f75df, #0c4aa2);
  font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}

@media (max-width: 374px) {
  .history-subtabs.wrap {
    grid-template-columns: repeat(6, 52px);
  }

  .metric-row {
    grid-template-columns: 52px 1fr 56px 56px 56px;
    font-size: 10px;
  }

  .missing-grid {
    grid-template-columns: 1fr;
  }

  .source-category-tabs {
    gap: 5px;
  }

  .source-category-tabs button {
    height: 29px;
    font-size: 12px;
  }

  .source-stats-table .source-row {
    grid-template-columns: 48px 1fr 62px 62px 62px;
    font-size: 12px;
  }

  .source-missing-table .source-row {
    grid-template-columns: 44px 1fr 104px 64px;
    font-size: 13px;
  }
}

.formula-rule-section .formula-menu-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 10px !important;
}

.formula-rule-section .formula-menu-tabs button {
  height: 38px !important;
  border-radius: 8px !important;
  text-align: left !important;
  padding: 0 12px !important;
}

.formula-rule-section .formula-sub-tabs {
  display: flex !important;
  gap: 6px !important;
  margin: 10px 10px 12px !important;
  padding: 8px !important;
  overflow-x: auto !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 8px !important;
  background: rgba(0, 0, 0, .24) !important;
}

.formula-rule-section .formula-sub-tabs button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 72px !important;
  height: 26px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
}

@media (max-width: 640px) {
  .admin-shell {
    padding: 10px 8px 90px;
  }

  .admin-top {
    padding: 13px;
  }

  .admin-top h1 {
    font-size: 19px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-card-head {
    flex-wrap: wrap;
  }
}

body[data-lottery-accent="red"] .history-summary,
body[data-lottery-accent="red"] .history-qid b,
body[data-lottery-accent="red"] .home-history-issue {
  --accent-glow: rgba(233, 52, 69, .2);
}

body[data-lottery-accent="green"] .history-qid b {
  background: linear-gradient(180deg, #247a43, #103d25);
}

body[data-lottery-accent="blue"] .history-qid b {
  background: linear-gradient(180deg, #235c9d, #102f63);
}

.admin-shell {
  width: min(100%, 920px);
  display: none;
  margin: 0 auto;
  padding: 18px 14px 92px;
}

.admin-body.is-authed .admin-shell {
  display: block;
}

body.is-authed .admin-shell {
  display: block;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.admin-body.is-authed .admin-login {
  display: none;
}

body.is-authed .admin-login {
  display: none;
}

.admin-login-box {
  width: min(100%, 380px);
  padding: 20px;
  border: 1px solid rgba(255, 215, 138, .24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 0%, rgba(243, 197, 107, .15), transparent 14rem),
    linear-gradient(180deg, #171718, #0c0c0d);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .45);
}

.admin-login-box p,
.admin-login-box h1 {
  margin: 0;
}

.admin-login-box p {
  color: #f3c56b;
  font-size: 13px;
  font-weight: 900;
}

.admin-login-box h1 {
  margin: 5px 0 18px;
  color: #fff;
  font-size: 22px;
}

.admin-login-box label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #f0d39c;
  font-size: 13px;
  font-weight: 800;
}

.admin-login-box input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  padding: 0 12px;
  color: #fff;
  outline: none;
  background: #0b0b0c;
  font: inherit;
}

.admin-login-box button {
  width: 100%;
  height: 42px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  color: #211405;
  background: linear-gradient(180deg, #ffe7aa, #d99b38);
  font-weight: 900;
}

.admin-login-box span {
  display: block;
  min-height: 18px;
  margin-top: 10px;
  color: #d9d0bf;
  font-size: 12px;
}

.admin-login-box span[data-tone="ok"] {
  color: #63e090;
}

.admin-login-box span[data-tone="error"] {
  color: #ff6c78;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 215, 138, .2);
  border-radius: 8px;
  background: linear-gradient(180deg, #171718, #0d0d0e);
}

.admin-top p,
.admin-top h1 {
  margin: 0;
}

.admin-top p {
  color: #f3c56b;
  font-size: 13px;
  font-weight: 800;
}

.admin-top h1 {
  margin-top: 4px;
  color: #fff;
  font-size: 22px;
}

.admin-top a,
.admin-top-actions button,
.admin-section-head button,
.admin-savebar button,
.admin-card-head button {
  border: 0;
  border-radius: 999px;
  color: #211405;
  background: linear-gradient(180deg, #ffe7aa, #d99b38);
  font-weight: 900;
}

.admin-top a {
  flex: 0 0 auto;
  padding: 9px 15px;
  font-size: 13px;
}

.admin-top-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-top-actions button {
  padding: 9px 15px;
  font-size: 13px;
}

.admin-section {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(243, 197, 107, .09), transparent 16rem),
    linear-gradient(180deg, #151516, #0c0c0d);
}

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

.admin-section-head {
  margin-bottom: 12px;
}

.admin-section h2 {
  margin: 0;
  color: #ffd987;
  font-size: 17px;
}

.admin-section-head button,
.admin-savebar button,
.admin-card-head button {
  min-height: 34px;
  padding: 0 15px;
}

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

.admin-card,
.admin-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
}

.admin-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-item > label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #f0d39c;
  font-size: 12px;
  font-weight: 800;
}

.admin-full-field,
.admin-item-actions {
  grid-column: 1 / -1;
}

.admin-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-item-actions button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 215, 138, .28);
  border-radius: 999px;
  color: #211405;
  background: linear-gradient(180deg, #ffe7aa, #d99b38);
  font-size: 12px;
  font-weight: 900;
}

.admin-item-actions button.danger {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(180deg, #f04755, #b91627);
}

.admin-item-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.3);
}

.admin-card-head {
  margin-bottom: 10px;
}

.admin-card-head strong {
  color: #fff;
}

.admin-card-head button {
  min-height: 28px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(180deg, #f04755, #b91627);
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #e9dcc7;
  font-size: 13px;
}

.admin-switch input {
  width: 16px;
  height: 16px;
  accent-color: #f3c56b;
}

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

.admin-grid label,
.admin-wide {
  display: grid;
  gap: 6px;
  color: #f0d39c;
  font-size: 12px;
  font-weight: 800;
}

.admin-wide {
  margin-bottom: 10px;
}

.admin-grid .admin-wide {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.admin-grid input,
.admin-wide input,
.admin-item input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  padding: 0 10px;
  outline: none;
  color: #fff;
  background: #0b0b0c;
  font: inherit;
  font-weight: 600;
}

.admin-upload-row {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 8px;
}

.admin-upload-btn {
  height: 38px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  color: #211405;
  background: linear-gradient(180deg, #ffe7aa, #d99b38);
  font-size: 13px;
  font-weight: 900;
}

.admin-upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-password-btn {
  min-height: 38px;
  align-self: end;
  border: 0;
  border-radius: 999px;
  color: #211405;
  background: linear-gradient(180deg, #ffe7aa, #d99b38);
  font-weight: 900;
}

.admin-grid input:focus,
.admin-wide input:focus,
.admin-item input:focus {
  border-color: rgba(243, 197, 107, .75);
  box-shadow: 0 0 0 2px rgba(243, 197, 107, .12);
}

.admin-savebar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 40;
  width: min(calc(100% - 24px), 892px);
  padding: 10px;
  border: 1px solid rgba(255, 215, 138, .24);
  border-radius: 10px;
  background: rgba(12, 12, 13, .94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  transform: translateX(-50%);
}

.admin-savebar span {
  min-width: 0;
  color: #d9d0bf;
  font-size: 13px;
  font-weight: 700;
}

.admin-savebar span[data-tone="ok"] {
  color: #63e090;
}

.admin-savebar span[data-tone="error"] {
  color: #ff6c78;
}

@media (max-width: 374px) {
  .topbar {
    grid-template-columns: 34px minmax(0, 1fr) 54px;
    gap: 5px;
    padding-inline: 8px;
  }

  .brand {
    width: 30px;
    height: 30px;
  }

  .ticker {
    padding-inline: 9px;
  }

  .customer-link {
    font-size: 10px;
  }

  .hero-copy {
    padding-left: 44px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero h1 strong {
    font-size: 21px;
  }

  .download-actions,
  .site-btn {
    width: 166px;
  }

  .download-actions {
    gap: 8px;
  }

  .hero-prizes {
    right: -34px;
    width: 210px;
  }

  .wallet-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-layout {
    grid-template-columns: 1fr;
  }

  .draw-meta {
    grid-template-columns: auto 1fr;
  }

  .countdown {
    grid-column: 1 / -1;
    justify-self: end;
  }
}
