:root {
  color-scheme: dark;
  --bg: #020804;
  --bg-2: #061008;
  --panel: #0c1a10;
  --panel-2: #111f14;
  --panel-3: #172a1a;
  --line: rgba(255, 202, 87, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4fff2;
  --muted: #aebaae;
  --muted-2: #7f8d80;
  --gold: #ffd46a;
  --orange: #ff9332;
  --green: #29d17c;
  --danger: #ff705c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 147, 50, 0.18), transparent 34%),
    linear-gradient(135deg, #020804 0%, #05160a 48%, #020804 100%);
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #161104;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 12px 28px rgba(255, 147, 50, 0.16);
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  outline: none;
  background: rgba(2, 8, 4, 0.72);
}

select {
  color: var(--text);
}

input::placeholder {
  color: var(--muted-2);
}

input:focus,
select:focus {
  border-color: rgba(255, 212, 106, 0.68);
  box-shadow: 0 0 0 3px rgba(255, 212, 106, 0.12);
}

.shop-app {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.eyebrow,
.panel-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.danger {
  color: #ffd2cb;
  border-color: rgba(255, 112, 92, 0.42);
}

.login-panel {
  width: min(1100px, calc(100% - 32px));
  min-height: 560px;
  margin: 52px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(12, 26, 16, 0.92), rgba(6, 16, 8, 0.88)),
    linear-gradient(135deg, rgba(255, 212, 106, 0.12), rgba(41, 209, 124, 0.08));
  box-shadow: var(--shadow);
}

.login-hero {
  position: relative;
  display: grid;
  align-content: center;
  gap: 28px;
  min-height: 490px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(2, 8, 4, 0.66), rgba(255, 147, 50, 0.15)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 84px);
}

.login-hero::after {
  content: "";
  position: absolute;
  right: 54px;
  bottom: 34px;
  width: 180px;
  height: 230px;
  border-radius: 90px 90px 16px 16px;
  background:
    linear-gradient(180deg, rgba(255, 212, 106, 0.95), rgba(255, 147, 50, 0.7) 24%, rgba(31, 57, 33, 0.98) 25% 100%);
  clip-path: polygon(50% 0, 67% 13%, 75% 34%, 100% 40%, 79% 57%, 84% 100%, 53% 83%, 18% 100%, 26% 59%, 0 42%, 28% 32%, 34% 12%);
  opacity: 0.64;
}

.brand-mark,
.side-logo,
.hero-badge {
  display: inline-grid;
  place-items: center;
  width: max-content;
  min-width: 128px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 212, 106, 0.35);
  border-radius: 8px;
  color: #160f02;
  background: linear-gradient(135deg, #ffe089, #ff9f37);
  box-shadow: 0 16px 30px rgba(255, 147, 50, 0.18);
}

.brand-mark span,
.side-logo span,
.hero-badge span {
  font-size: 13px;
  font-weight: 900;
}

.brand-mark b,
.side-logo b,
.hero-badge b {
  font-size: 11px;
  line-height: 1;
}

.login-hero h1 {
  margin-top: 8px;
  font-size: 54px;
  line-height: 1;
  font-weight: 900;
}

.login-hero p {
  max-width: 560px;
  margin-top: 16px;
  color: #d6dfd6;
  font-size: 18px;
  line-height: 1.7;
}

.login-form {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(5, 16, 8, 0.82);
}

.login-form label,
.role-card {
  display: grid;
  gap: 8px;
}

.login-form label span,
.role-card span,
.wallet-card span,
.recharge-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.player-center {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.shop-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 18px 10px 22px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(12, 26, 16, 0.98), rgba(3, 10, 5, 0.98)),
    var(--panel);
}

.side-logo {
  display: grid;
  width: calc(100% - 18px);
  min-height: 72px;
  margin: 0 9px 18px;
  padding: 10px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  color: #dbe5db;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.side-nav button.active {
  color: #171003;
  border-color: rgba(255, 212, 106, 0.55);
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--gold);
  font-weight: 900;
  line-height: 1;
}

.side-nav button.active .nav-icon {
  color: #171003;
}

.nav-group {
  margin: 8px 8px 4px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
}

.shop-workspace {
  min-width: 0;
  padding: 34px 36px 54px;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.mobile-page-back {
  display: none;
}

.workspace-head h1 {
  margin-top: 6px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
}

.workspace-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.role-card {
  min-width: 250px;
}

.account-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 132px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}

.account-card.online .dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(41, 209, 124, 0.12);
}

.shop-page {
  display: grid;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

.overview-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  min-height: 260px;
  overflow: hidden;
  padding: 38px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(5, 16, 8, 0.92), rgba(255, 147, 50, 0.26), rgba(24, 36, 30, 0.8)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 82px);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-badge {
  min-width: 150px;
  margin-bottom: 20px;
  border-radius: 999px;
}

.hero-copy h2 {
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
}

.hero-copy p {
  max-width: 780px;
  margin-top: 16px;
  color: #dce7dc;
  font-size: 17px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span {
  padding: 7px 15px;
  border: 1px solid rgba(255, 212, 106, 0.26);
  border-radius: 999px;
  color: #eaf5ea;
  background: rgba(2, 8, 4, 0.36);
  font-weight: 900;
}

.hero-art {
  position: relative;
  min-height: 230px;
}

.survivor {
  position: absolute;
  bottom: 10px;
  width: 68px;
  height: 160px;
  border-radius: 34px 34px 12px 12px;
  background:
    linear-gradient(180deg, #f0c184 0 22%, #2f4d37 22% 56%, #1a1d22 56% 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.survivor::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 42px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #d79b67;
}

.survivor::after {
  content: "";
  position: absolute;
  right: -34px;
  top: 64px;
  width: 88px;
  height: 7px;
  border-radius: 999px;
  background: #1c1e20;
  transform: rotate(-22deg);
}

.survivor-a {
  right: 150px;
  transform: rotate(-8deg);
}

.survivor-b {
  right: 80px;
  height: 184px;
  background:
    linear-gradient(180deg, #edc28f 0 21%, #faf2de 21% 62%, #161b20 62% 100%);
  z-index: 1;
}

.survivor-c {
  right: 22px;
  transform: rotate(7deg);
  background:
    linear-gradient(180deg, #d5a06e 0 22%, #1d2026 22% 60%, #0f1115 60% 100%);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  min-height: 130px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(22, 47, 26, 0.9), rgba(5, 16, 8, 0.96)),
    var(--panel);
}

.metric-card strong {
  display: block;
  color: var(--text);
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.metric-card span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

.supply-panel,
.module-panel,
.flash-panel,
.coupon-panel,
.privilege-panel,
.orders-panel,
.daily-panel,
.activity-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(20, 42, 23, 0.92), rgba(6, 16, 8, 0.98)),
    var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.supply-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: center;
  min-height: 190px;
}

.supply-panel h2,
.module-panel h2 {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.15;
}

.supply-panel p,
.module-panel p,
.recharge-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-grid button {
  min-height: 56px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 1px 14px;
}

.category-tabs button {
  min-width: 92px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.category-tabs button.active {
  color: #171003;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.goods-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.goods-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  min-height: 390px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(3, 12, 6, 0.72);
}

.goods-image,
.privilege-media,
.flash-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 212, 106, 0.14), rgba(41, 209, 124, 0.13)),
    #0c170f;
}

.goods-image,
.privilege-media {
  aspect-ratio: 16 / 10;
}

.goods-image img,
.privilege-media img,
.flash-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.goods-image-empty,
.privilege-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.image-load-failed::after {
  content: "SC33";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.image-load-failed {
  position: relative;
  overflow: hidden;
}

.goods-tags,
.privilege-tags,
.flash-tags {
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.goods-tag,
.privilege-tags span,
.flash-tags span {
  padding: 4px 8px;
  border-radius: 6px;
  color: #171003;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-size: 12px;
  font-weight: 900;
}

.goods-card h3,
.privilege-card h3 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.goods-desc,
.privilege-card p,
.flash-info span,
.flash-info small {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.goods-desc {
  min-height: 42px;
}

.goods-meta,
.privilege-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.privilege-benefits span {
  padding: 5px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: #dbe5db;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.buy-actions .scan-pay {
  color: var(--gold);
  border-color: rgba(255, 212, 106, 0.42);
  background: rgba(255, 212, 106, 0.08);
}

.recharge-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.recharge-tier-card {
  display: grid;
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: #f7fff1;
  background: rgba(2, 8, 4, 0.58);
  text-align: center;
  cursor: pointer;
}

.recharge-tier-card.active {
  border-color: rgba(255, 204, 95, 0.86);
  background: linear-gradient(135deg, rgba(255, 204, 95, 0.2), rgba(29, 190, 114, 0.09));
  box-shadow: 0 0 0 1px rgba(255, 204, 95, 0.18) inset;
}

.recharge-tier-card strong {
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.recharge-tier-card span,
.recharge-tier-card small {
  color: var(--muted);
}

.payment-method-panel {
  margin-top: 16px;
}

.mall-payment-method {
  min-width: 220px;
}

.mall-payment-method .payment-method-title {
  margin-bottom: 6px;
}

.mall-payment-method .payment-method-grid {
  grid-template-columns: repeat(2, minmax(88px, 1fr));
}

.mall-payment-method .payment-method-grid button {
  min-height: 48px;
  padding: 8px 10px;
}

.payment-method-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-method-grid button {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: #f7fff1;
  background: rgba(2, 8, 4, 0.58);
  text-align: left;
}

.payment-method-grid button.active {
  border-color: rgba(255, 204, 95, 0.86);
  background: linear-gradient(135deg, rgba(255, 204, 95, 0.22), rgba(29, 190, 114, 0.1));
}

.payment-method-grid strong,
.payment-method-grid span {
  display: block;
}

.payment-method-grid span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.payment-choice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
}

.payment-choice-sheet {
  position: relative;
  width: min(520px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 204, 95, 0.34);
  border-radius: 8px;
  background: rgba(3, 13, 7, 0.98);
  box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.38);
}

.payment-choice-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.payment-choice-title {
  padding-right: 42px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.payment-choice-summary {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.payment-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.payment-choice-grid button {
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: #f7fff1;
  background: rgba(2, 8, 4, 0.72);
  text-align: left;
}

.payment-choice-grid button.active,
.payment-choice-grid button:active {
  border-color: rgba(255, 204, 95, 0.9);
  background: linear-gradient(135deg, rgba(255, 204, 95, 0.26), rgba(29, 190, 114, 0.12));
}

.payment-choice-grid strong,
.payment-choice-grid span {
  display: block;
}

.payment-choice-grid strong {
  color: var(--gold);
  font-size: 20px;
}

.payment-choice-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.action-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
}

.action-confirm-sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255, 204, 95, 0.38);
  border-radius: 8px;
  background: rgba(3, 13, 7, 0.98);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.48);
}

.action-confirm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.action-confirm-title {
  padding-right: 42px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.action-confirm-summary {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.action-confirm-rows {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.action-confirm-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.action-confirm-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.action-confirm-row b {
  min-width: 0;
  color: #f4fff0;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.action-confirm-row.strong {
  border-color: rgba(255, 204, 95, 0.32);
  background: rgba(255, 204, 95, 0.08);
}

.action-confirm-row.strong b {
  color: var(--gold);
}

.action-confirm-warning {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 167, 86, 0.42);
  border-radius: 8px;
  color: #ffd99b;
  background: rgba(139, 76, 0, 0.16);
  font-size: 14px;
  line-height: 1.55;
}

.action-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.recharge-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.recharge-summary {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 212, 106, 0.32);
  border-radius: 8px;
  color: #dbe5db;
  background: rgba(2, 8, 4, 0.34);
}

.recharge-form {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.recharge-form label {
  display: grid;
  gap: 6px;
}

.recharge-form label span {
  color: var(--muted);
  font-size: 12px;
}

.price {
  color: var(--gold);
  font-size: 25px;
  font-weight: 900;
}

.origin-price {
  display: block;
  color: var(--muted-2);
  font-size: 13px;
  text-decoration: line-through;
}

.flash-list {
  display: grid;
  gap: 14px;
}

.flash-sale {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 212, 106, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 147, 50, 0.14), rgba(41, 209, 124, 0.08)),
    rgba(2, 8, 4, 0.52);
}

.flash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.flash-head h3 {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 900;
}

.flash-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.flash-head b {
  min-width: 128px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #171003;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  text-align: center;
  font-size: 18px;
}

.flash-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.flash-goods-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.flash-goods {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  min-height: 150px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(2, 8, 4, 0.58);
}

.flash-image {
  min-height: 128px;
}

.flash-info {
  display: grid;
  gap: 6px;
  align-content: start;
}

.flash-info strong {
  font-size: 18px;
}

.flash-buy {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flash-buy b {
  color: var(--gold);
  font-size: 25px;
}

.flash-buy em {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  font-style: normal;
  text-decoration: line-through;
}

.wallet-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.wallet-card,
.recharge-card {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 212, 106, 0.15), rgba(6, 16, 8, 0.96)),
    var(--panel);
}

.wallet-card strong {
  display: block;
  margin-top: 16px;
  color: var(--gold);
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

.wallet-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.coupon-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.coupon-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  min-height: 108px;
  padding: 16px;
  border: 1px dashed rgba(255, 212, 106, 0.5);
  border-radius: 8px;
  background: rgba(255, 147, 50, 0.1);
}

.coupon-card strong,
.coupon-card span,
.coupon-card small {
  display: block;
}

.coupon-card span,
.coupon-card small {
  margin-top: 6px;
  color: var(--muted);
}

.coupon-card b {
  align-self: center;
  color: var(--gold);
  font-size: 30px;
}

.coupon-card:not(.ready) {
  opacity: 0.64;
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
}

.privilege-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.privilege-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(2, 8, 4, 0.58);
}

.privilege-card.active {
  border-color: rgba(41, 209, 124, 0.52);
  background: rgba(41, 209, 124, 0.1);
}

.privilege-body {
  display: grid;
  gap: 12px;
}

.privilege-actions {
  display: flex;
  gap: 8px;
}

.player-center[data-active-page="mall"] .workspace-head {
  display: none;
}

.game-mall {
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: hidden;
}

.game-mall-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 147, 50, 0.16), rgba(41, 209, 124, 0.06)),
    rgba(2, 8, 4, 0.58);
}

.game-mall-tabs button {
  min-height: 46px;
  color: #dbe5db;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

.game-mall-tabs button.active {
  color: #171003;
  border-color: rgba(255, 212, 106, 0.64);
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.mall-player-strip {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 118px minmax(180px, 230px) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(22, 64, 106, 0.42), rgba(255, 147, 50, 0.16)),
    rgba(6, 16, 8, 0.86);
}

.mall-player-rank {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 212, 106, 0.55);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
}

.mall-player-rank strong {
  font-size: 18px;
  line-height: 1;
}

.mall-player-main,
.mall-player-balance,
.mall-role-picker {
  display: grid;
  gap: 4px;
}

.mall-player-main b,
.mall-player-balance strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mall-player-main span,
.mall-player-balance span,
.mall-role-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mall-player-balance strong {
  color: var(--gold);
  font-size: 24px;
}

.mall-role-picker select {
  min-height: 38px;
}

.mall-player-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.mall-player-actions button {
  min-height: 38px;
  padding: 0 13px;
}

.mall-tab-panel {
  padding: 16px;
}

.section-title.compact {
  margin-bottom: 14px;
}

.section-title.compact h2 {
  font-size: 28px;
}

.mall-shop-layout {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.game-mall .category-tabs {
  display: grid;
  gap: 9px;
  overflow: visible;
  padding: 0;
}

.game-mall .category-tabs .mall-category-item {
  min-width: 0;
}

.mall-category-item {
  display: grid;
  gap: 7px;
  place-items: center;
  min-height: 78px;
  min-width: 0;
  width: 100%;
  padding: 8px 6px;
  color: #dbe5db;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  text-align: center;
}

.mall-category-item.active {
  color: #171003;
  border-color: rgba(255, 212, 106, 0.62);
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.mall-category-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(2, 8, 4, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.mall-category-item.active .mall-category-icon {
  color: #171003;
  background: rgba(255, 255, 255, 0.32);
}

.mall-category-item span:last-child {
  font-size: 12px;
  line-height: 1.3;
}

.game-mall .goods-grid,
.mall-product-list,
.game-mall .privilege-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.game-mall .goods-card,
.mall-product-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 112px;
  grid-template-rows: none;
  gap: 12px;
  align-items: center;
  min-height: 132px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(2, 8, 4, 0.62);
}

.mall-product-row.active {
  border-color: rgba(41, 209, 124, 0.52);
  background: rgba(41, 209, 124, 0.08);
}

.game-mall .goods-image,
.game-mall .privilege-media,
.mall-product-image {
  position: relative;
  overflow: hidden;
  width: 88px;
  height: 88px;
  aspect-ratio: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 212, 106, 0.12);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 212, 106, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(14, 38, 19, 0.95), rgba(3, 12, 6, 0.98));
}

.game-mall .goods-image img,
.game-mall .privilege-media img,
.mall-product-image img {
  padding: 6px;
  object-fit: contain;
}

.mall-product-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.mall-product-badges,
.mall-product-meta,
.mall-product-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mall-product-badges span,
.mall-product-badges .goods-tag {
  padding: 3px 7px;
  border-radius: 5px;
  color: #171003;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-size: 11px;
  font-weight: 900;
}

.mall-product-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.mall-product-title strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mall-product-title small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.mall-product-main p {
  display: -webkit-box;
  overflow: hidden;
  color: #c7d3c7;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mall-product-meta span,
.mall-product-extra .tag {
  padding: 3px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: #dbe5db;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
}

.mall-product-buy {
  display: grid;
  gap: 6px;
  justify-items: end;
  align-content: center;
  min-width: 0;
}

.mall-product-price {
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  text-align: right;
}

.mall-product-price small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.game-mall .origin-price {
  text-align: right;
}

.game-mall .buy-actions,
.game-mall .privilege-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  width: 100%;
  gap: 6px;
}

.game-mall .buy-actions button,
.game-mall .privilege-actions button,
.mall-product-buy > button {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
}

.game-mall.detail-mode .game-mall-tabs {
  display: none;
}

.mall-detail-panel {
  padding: 16px;
}

.mall-goods-detail {
  display: grid;
  gap: 14px;
}

.mall-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mall-detail-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mall-detail-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.mall-detail-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 106, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 212, 106, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(14, 38, 19, 0.96), rgba(3, 12, 6, 0.98));
}

.mall-detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 220px;
  padding: 10px;
  object-fit: contain;
}

.mall-detail-summary {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.mall-detail-summary h2 {
  font-size: 26px;
  line-height: 1.25;
}

.mall-detail-summary p,
.mall-detail-section p {
  color: #c7d3c7;
  font-size: 14px;
  line-height: 1.65;
}

.mall-detail-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.mall-detail-section h3 {
  font-size: 18px;
}

.mall-detail-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 10px;
}

.reward-icon-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 98px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: #edf7ed;
  background: rgba(2, 8, 4, 0.42);
  font-size: 12px;
}

.reward-icon-item i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 212, 106, 0.36);
  border-radius: 10px;
  color: #160f02;
  background: linear-gradient(135deg, #ffe089, #ff9f37);
  font-style: normal;
  font-weight: 1000;
}

.reward-icon-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.client-item-sprite {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
}

.client-item-sprite-crop {
  position: relative;
  display: block;
  width: var(--crop-w);
  height: var(--crop-h);
  overflow: hidden;
  transform: var(--sprite-rotate);
  transform-origin: center;
}

.reward-icon-item .client-item-sprite-crop img,
.lottery-reel-prize .client-item-sprite-crop img,
.lottery-result-icon .client-item-sprite-crop img {
  position: absolute;
  left: var(--atlas-x);
  top: var(--atlas-y);
  width: var(--atlas-w);
  height: var(--atlas-h);
  max-width: none;
  object-fit: fill;
}

.reward-icon-item b {
  position: absolute;
  right: 6px;
  top: 42px;
  color: #fff;
  font-size: 15px;
  text-shadow: 0 2px 0 #1b1203, 0 0 8px rgba(0, 0, 0, .7);
  white-space: nowrap;
}

.reward-icon-item small {
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mall-detail-buybar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 212, 106, 0.2);
  border-radius: 8px;
  background: rgba(2, 8, 4, 0.72);
}

.mall-detail-buybar span,
.mall-detail-buybar small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mall-detail-buybar strong {
  color: var(--gold);
  font-size: 30px;
  line-height: 1.1;
}

.mall-sale-block {
  display: grid;
  gap: 12px;
}

.mall-sale-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 212, 106, 0.24);
  border-radius: 8px;
  background: rgba(255, 147, 50, 0.08);
}

.mall-sale-head h3 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.mall-sale-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.mall-sale-head b {
  min-width: 112px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #171003;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  text-align: center;
}

.orders-list,
.daily-list,
.activity-tier-list,
.rank-list,
.mail-list,
.support-ticket-list {
  display: grid;
  gap: 10px;
}

.activity-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.order-item,
.daily-card,
.activity-tier,
.rank-row,
.mail-card,
.support-ticket-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(2, 8, 4, 0.58);
}

.daily-card span,
.daily-card small,
.order-item small,
.activity-tier span,
.mail-card span,
.mail-card small,
.support-ticket-card span,
.support-ticket-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.mail-card.unread {
  border-color: rgba(255, 212, 106, 0.48);
  background: rgba(255, 147, 50, 0.08);
}

.mail-card .mail-reward {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 212, 106, 0.26);
  border-radius: 999px;
  color: #ffe7a0;
  background: rgba(255, 147, 50, 0.1);
  font-weight: 900;
}

.mail-card p,
.support-ticket-card p {
  margin-top: 8px;
  color: #dbe5db;
  line-height: 1.6;
}

.support-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.support-form .wide,
.support-form button {
  grid-column: 1 / -1;
}

textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  outline: none;
  resize: vertical;
  background: rgba(2, 8, 4, 0.72);
}

textarea:focus {
  border-color: rgba(255, 212, 106, 0.68);
  box-shadow: 0 0 0 3px rgba(255, 212, 106, 0.12);
}

.activity-chip {
  min-width: 176px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.activity-chip.active {
  color: #171003;
  border-color: rgba(255, 212, 106, 0.55);
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.activity-chip span {
  display: block;
  margin-top: 5px;
  color: inherit;
  opacity: 0.74;
  font-size: 12px;
}

.activity-detail {
  margin-top: 14px;
}

.activity-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.activity-reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 10px;
}

.activity-reward {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(2, 8, 4, 0.58);
}

.activity-reward.done {
  opacity: 0.56;
}

.activity-reward.ready {
  border-color: rgba(41, 209, 124, 0.58);
  background: rgba(41, 209, 124, 0.1);
}

.activity-reward span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.activity-action {
  width: 100%;
  margin-top: 12px;
}

.lottery-showcase {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.lottery-showcase.is-drawing .lottery-ring {
  animation-duration: .72s;
}

.lottery-showcase.is-drawing .lottery-core {
  animation: lottery-core-draw .72s ease-in-out infinite;
}

.lottery-stage {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 28px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 212, 106, 0.38);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 44%, rgba(255, 210, 91, .22), transparent 28%),
    radial-gradient(circle at 78% 14%, rgba(255, 88, 82, .16), transparent 24%),
    linear-gradient(120deg, rgba(4, 12, 8, 0.96), rgba(44, 17, 6, 0.78)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 78px);
  box-shadow: inset 0 0 90px rgba(255, 176, 56, .08);
}

.lottery-stage::after {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  opacity: .32;
  background:
    radial-gradient(circle at 18% 70%, rgba(41, 209, 124, .28), transparent 18%),
    radial-gradient(circle at 82% 25%, rgba(255, 212, 106, .24), transparent 20%);
}

.lottery-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.lottery-stage-art {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(46vw, 560px);
  max-height: 100%;
  object-fit: contain;
  object-position: right top;
  opacity: .34;
  filter: saturate(1.12) contrast(1.04);
}

.lottery-machine,
.lottery-copy {
  position: relative;
  z-index: 1;
}

.lottery-machine {
  min-height: 360px;
  display: grid;
  place-items: center;
}

.lottery-art-machine {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1.05;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 28px 54px rgba(0, 0, 0, .46));
}

.lottery-turntable-base,
.lottery-turntable-wheel {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.lottery-turntable-base {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.lottery-turntable-wheel {
  top: 4%;
  left: 8%;
  width: 84%;
  height: 78%;
  z-index: 2;
  opacity: .86;
  transform-origin: 50% 48%;
  /* 只裁出转盘内圆参与旋转，外壳和木质挡板保持静止。 */
  clip-path: circle(31% at 50% 48%);
  animation: lottery-image-wheel 18s linear infinite;
  will-change: transform;
}

.lottery-showcase.is-drawing .lottery-turntable-wheel {
  animation-duration: .72s;
  filter: brightness(1.28) saturate(1.2);
}

.lottery-prize-port {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 5%;
  z-index: 3;
  transform: scale(.72);
  transform-origin: center bottom;
}

.lottery-prize-port .lottery-reel-window {
  height: 92px;
  border-width: 2px;
  border-radius: 14px;
}

.lottery-prize-port .lottery-reel-track {
  grid-auto-columns: 64px;
  gap: 8px;
  padding: 10px 8px;
}

.lottery-prize-port .lottery-reel-prize {
  width: 58px;
  height: 70px;
  padding: 5px;
  border-radius: 12px;
}

.lottery-prize-port .lottery-reel-prize i {
  width: 42px;
  height: 42px;
}

.lottery-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(255, 212, 106, 0.52);
  border-radius: 50%;
  animation: lottery-spin 8s linear infinite;
}

.lottery-ring.ring-b {
  width: 170px;
  height: 170px;
  border-color: rgba(41, 209, 124, 0.42);
  animation-duration: 5.8s;
  animation-direction: reverse;
}

.lottery-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff0ad;
  box-shadow: 0 0 24px rgba(255, 212, 106, 0.92);
  animation: lottery-pulse 1.5s ease-in-out infinite;
}

.lottery-spark.spark-a {
  margin-left: 112px;
  margin-top: -74px;
}
.lottery-spark.spark-b {
  margin-left: -98px;
  margin-top: 82px;
  background: #7dffbd;
  animation-delay: .45s;
}

.lottery-core {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 244, 188, 0.62);
  border-radius: 50%;
  color: #1d1200;
  background: radial-gradient(circle at 34% 24%, #fff7c7, #ffd46a 42%, #ff8b2a 100%);
  box-shadow: 0 24px 68px rgba(255, 147, 50, 0.36);
  animation: lottery-core 2.2s ease-in-out infinite;
}

.lottery-core span {
  font-size: 26px;
  font-weight: 900;
}

.lottery-core b {
  font-size: 14px;
}

.lottery-cabinet {
  position: relative;
  width: min(360px, 100%);
  min-height: 350px;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 3px solid rgba(255, 226, 122, .76);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 234, 144, .13), transparent 28%),
    linear-gradient(145deg, rgba(95, 35, 12, .9), rgba(8, 24, 14, .94));
  box-shadow:
    0 0 0 6px rgba(22, 8, 0, .54),
    0 28px 90px rgba(0, 0, 0, .48),
    inset 0 0 38px rgba(255, 199, 66, .14);
}

.lottery-cabinet::before,
.lottery-cabinet::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border-radius: 18px;
}

.lottery-cabinet::before {
  border: 1px solid rgba(255, 255, 255, .14);
}

.lottery-cabinet::after {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .28), transparent 13%),
    radial-gradient(circle at 88% 20%, rgba(255, 214, 92, .28), transparent 12%);
}

.lottery-cabinet-top,
.lottery-machine-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lottery-cabinet-top span,
.lottery-machine-foot span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #231000;
  background: linear-gradient(135deg, #fff2a8, #ffad3b);
  font-size: 11px;
  font-weight: 1000;
}

.lottery-cabinet-top b {
  min-width: 0;
  overflow: hidden;
  color: #fff4c0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 1000;
}

.lottery-machine-foot {
  justify-content: center;
}

.lottery-reel-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 132px;
  border: 3px solid rgba(255, 236, 169, .72);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .32), transparent 22%, transparent 78%, rgba(0, 0, 0, .32)),
    rgba(0, 0, 0, .38);
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, .54),
    0 0 22px rgba(255, 210, 91, .18);
}

.lottery-reel-window::before,
.lottery-reel-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 32px;
  pointer-events: none;
}

.lottery-reel-window::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .72), transparent);
}

.lottery-reel-window::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent);
}

.lottery-reel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86px;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 16px 12px;
  animation: lottery-reel-idle 16s linear infinite;
}

.lottery-showcase.is-drawing .lottery-reel-track,
.lottery-drawing-mask .lottery-reel-track {
  animation: lottery-reel-fast .62s linear infinite;
}

.lottery-reel-prize {
  position: relative;
  width: 78px;
  height: 96px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(255, 226, 122, .34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 40% 24%, rgba(255, 255, 255, .25), transparent 24%),
    rgba(7, 21, 13, .92);
  box-shadow: inset 0 0 18px rgba(255, 219, 118, .08);
}

.lottery-reel-prize i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  color: #1b0f00;
  background: linear-gradient(135deg, #ffdf7a, #ff9734);
  font-style: normal;
  font-weight: 1000;
}

.lottery-reel-prize i > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lottery-reel-prize b {
  color: #ffe8a0;
  font-size: 11px;
}

.lottery-reel-prize.grade-SSS {
  border-color: rgba(255, 218, 92, .8);
  background: linear-gradient(160deg, rgba(255, 201, 63, .26), rgba(50, 20, 0, .88));
}

.lottery-reel-prize.grade-SS {
  border-color: rgba(125, 255, 189, .55);
}

.lottery-status-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lottery-status-board div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 212, 106, .2);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
}

.lottery-status-board small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lottery-status-board strong {
  color: #ffe89c;
  font-size: 24px;
  font-weight: 1000;
}

.lottery-drawing-mask {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 214, 83, .28), transparent 28%),
    rgba(0, 0, 0, .74);
  backdrop-filter: blur(4px);
}

.lottery-opening-scene {
  position: relative;
  width: min(560px, 92vw);
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 28px;
  border: 3px solid rgba(255, 225, 112, .8);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, .24), transparent 24%),
    linear-gradient(180deg, rgba(86, 37, 12, .94), rgba(5, 18, 10, .94));
  box-shadow: 0 0 78px rgba(255, 198, 57, .42);
}

.lottery-opening-bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .48;
  pointer-events: none;
}

.lottery-opening-title {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #fff7d2;
}

.lottery-opening-title small {
  color: #ffe08a;
  font-weight: 900;
}

.lottery-opening-title strong {
  font-size: clamp(32px, 7vw, 58px);
  font-weight: 1000;
  line-height: 1;
  text-shadow:
    0 4px 0 #6c2a00,
    0 0 18px rgba(255, 235, 151, .9);
}

.lottery-opening-scene .lottery-reel-window {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
}

.lottery-opening-wheel {
  position: relative;
  z-index: 1;
  width: min(210px, 48vw);
  object-fit: contain;
  clip-path: circle(31% at 50% 48%);
  filter: drop-shadow(0 0 30px rgba(255, 218, 95, .72));
  animation: lottery-image-wheel .82s linear infinite;
}

.lottery-spotlight {
  position: absolute;
  inset: -20%;
  opacity: .55;
  background:
    conic-gradient(from 0deg, transparent, rgba(255, 236, 162, .3), transparent, rgba(255, 151, 64, .28), transparent);
  animation: lottery-spotlight 1.8s linear infinite;
}

.lottery-chest {
  position: relative;
  width: min(280px, 68vw);
  aspect-ratio: 1.28;
  display: grid;
  place-items: center;
  border: 4px solid #ffe27a;
  border-radius: 18px 18px 26px 26px;
  color: #2a1500;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .45), transparent 28%),
    repeating-linear-gradient(-35deg, #ffc738 0 26px, #f59b28 26px 52px);
  box-shadow:
    0 0 0 7px rgba(56, 22, 0, .74),
    0 0 54px rgba(255, 210, 77, .9),
    0 26px 80px rgba(0, 0, 0, .56);
  animation: lottery-chest-pop .72s ease-in-out infinite;
}

.lottery-chest strong {
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  font-size: 26px;
  font-weight: 1000;
  text-shadow: 0 2px #fff2a8;
}

.lottery-chest i {
  position: absolute;
  width: 12px;
  height: 24px;
  border-radius: 4px;
  background: #f45e82;
  box-shadow: 0 0 14px rgba(255, 255, 255, .6);
  animation: lottery-confetti .8s ease-in-out infinite;
}

.lottery-chest i:nth-child(1) {
  left: 16%;
  top: 18%;
  background: #5bdcff;
}

.lottery-chest i:nth-child(2) {
  right: 16%;
  top: 16%;
  background: #b46bff;
  animation-delay: .18s;
}

.lottery-chest i:nth-child(3) {
  left: 50%;
  bottom: 14%;
  background: #7dff9d;
  animation-delay: .34s;
}

.lottery-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.lottery-copy h2 {
  font-size: 38px;
  line-height: 1.08;
}

.lottery-copy p {
  max-width: 620px;
  color: #dbe5db;
  line-height: 1.7;
}

.lottery-meta,
.lottery-actions,
.lottery-rate-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lottery-meta span,
.lottery-rate {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f8f1d0;
  background: rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 900;
}

.lottery-actions {
  margin-top: 4px;
}

.lottery-draw-btn {
  width: auto;
  min-width: 156px;
  display: grid;
  gap: 2px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 239, 177, .42);
  color: #251100;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34), transparent 42%),
    linear-gradient(135deg, #ffe28a, #ff9f37);
  box-shadow:
    0 8px 0 rgba(115, 50, 0, .62),
    0 18px 36px rgba(255, 147, 50, .18);
}

.lottery-draw-btn span {
  font-size: 12px;
}

.lottery-draw-btn b {
  font-size: 22px;
  font-weight: 1000;
}

.lottery-draw-btn.featured {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .38), transparent 42%),
    linear-gradient(135deg, #ffef9a, #ffb139 44%, #ff6f3d);
}

.lottery-draw-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  filter: brightness(1.08);
}

.lottery-lucky {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(2, 8, 4, 0.58);
}

.lottery-lucky > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #ffe7a0;
  font-weight: 900;
}

.lottery-lucky-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.lottery-lucky-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--orange));
  transition: width .35s ease;
}

.lottery-rate-strip {
  margin-bottom: 2px;
}

.lottery-rate {
  min-width: 94px;
  display: grid;
  gap: 2px;
}

.lottery-pool-grid,
.lottery-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 12px;
}

.lottery-prize-card,
.lottery-result-card,
.lottery-extra {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(2, 8, 4, 0.58);
}

.lottery-prize-card {
  grid-template-columns: 52px minmax(0, 1fr);
}

.lottery-prize-card img,
.lottery-prize-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.lottery-prize-card img {
  object-fit: cover;
}

.lottery-prize-icon {
  display: grid;
  place-items: center;
  color: #160f02;
  background: linear-gradient(135deg, #ffe089, #ff9f37);
  font-weight: 900;
}

.lottery-prize-card em {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 3px;
  color: var(--gold);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.lottery-prize-card span,
.lottery-prize-card small,
.lottery-result-card small,
.lottery-extra span {
  color: var(--muted);
  line-height: 1.45;
}

.lottery-prize-card .reward-icon-list,
.activity-tier .reward-icon-list,
.lottery-extra .reward-icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lottery-prize-card .reward-icon-item,
.activity-tier .reward-icon-item,
.lottery-extra .reward-icon-item {
  width: 72px;
  min-height: 82px;
  padding: 6px;
}

.lottery-prize-card .reward-icon-item i,
.activity-tier .reward-icon-item i,
.lottery-extra .reward-icon-item i {
  width: 42px;
  height: 42px;
}

.lottery-prize-card .reward-icon-item b,
.activity-tier .reward-icon-item b,
.lottery-extra .reward-icon-item b {
  top: 32px;
  font-size: 13px;
}

.lottery-prize-card.grade-SSS,
.lottery-result-card.grade-SSS,
.lottery-rate.grade-SSS {
  border-color: rgba(255, 212, 106, 0.68);
  background: rgba(255, 147, 50, 0.13);
}

.lottery-prize-card.grade-SS,
.lottery-result-card.grade-SS,
.lottery-rate.grade-SS {
  border-color: rgba(125, 255, 189, 0.44);
  background: rgba(41, 209, 124, 0.09);
}

.lottery-prize-card.grade-S,
.lottery-result-card.grade-S,
.lottery-rate.grade-S {
  border-color: rgba(130, 183, 255, 0.42);
  background: rgba(68, 129, 255, 0.08);
}

.lottery-result-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at center, rgba(255, 204, 78, .16), rgba(0, 0, 0, .78) 56%),
    rgba(0, 0, 0, .58);
  animation: lottery-result-in .22s ease-out both;
}

.lottery-result-panel {
  position: relative;
  width: min(760px, 96vw);
  max-height: min(760px, 92vh);
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 74px 24px 22px;
  border: 4px solid rgba(255, 223, 111, .92);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(56, 39, 18, .96), rgba(17, 22, 13, .96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 22px);
  box-shadow:
    0 0 0 7px rgba(0, 0, 0, .54),
    0 30px 100px rgba(0, 0, 0, .72),
    inset 0 0 38px rgba(255, 202, 80, .16);
  animation: lottery-modal-pop .28s ease-out both;
}

.lottery-result-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  color: #ffe9ad;
  background: rgba(0, 0, 0, .42);
}

.lottery-win-banner {
  position: absolute;
  left: 50%;
  top: 14px;
  width: min(430px, 72%);
  height: 64px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border: 4px solid #381800;
  border-radius: 12px;
  color: #fff8de;
  background:
    linear-gradient(120deg, #ffd94f, #f6a824 48%, #ffdc59),
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, .2) 0 22px, transparent 22px 44px);
  box-shadow:
    0 5px 0 #7b3a00,
    0 0 34px rgba(255, 207, 75, .82);
}

.lottery-win-banner strong {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    0 3px 0 #713000,
    0 0 10px rgba(255, 255, 255, .76);
}

.lottery-win-banner span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
}

.lottery-result-subhead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #ffe8a0;
  font-weight: 900;
}

.lottery-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lottery-result-head h3 {
  margin-top: 4px;
  font-size: 22px;
}

.lottery-result-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  place-items: center;
  text-align: center;
  border-width: 2px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 229, 125, .24), transparent 42%),
    rgba(22, 26, 16, .9);
  animation: lottery-card-in .46s ease-out both;
  animation-delay: calc(var(--i, 0) * 42ms);
}

.lottery-result-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: lottery-shine 1.5s ease-out .1s;
}

.lottery-result-card em {
  position: absolute;
  left: 10px;
  top: 10px;
  width: max-content;
  min-width: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #321600;
  background: #ffd869;
  font-style: normal;
  font-size: 12px;
  font-weight: 1000;
}

.lottery-result-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 246, 189, .88);
  border-radius: 16px;
  color: #fff0b2;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, .8), transparent 20%),
    linear-gradient(135deg, #ff496f, #ff9d2f 44%, #773cff);
  box-shadow:
    0 0 0 3px rgba(65, 19, 10, .65),
    0 0 26px rgba(255, 211, 84, .76);
  font-size: 26px;
  font-weight: 1000;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .34);
}

.lottery-result-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lottery-self-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #071d12;
  background: #6effb8;
  font-size: 12px;
  font-weight: 1000;
}

.lottery-result-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #fff;
  font-size: 20px;
  text-shadow:
    0 2px 0 #2a1500,
    0 0 10px rgba(0, 0, 0, .7);
}

.lottery-result-card.hit-sss {
  border-color: rgba(255, 212, 106, 0.72);
  background: linear-gradient(135deg, rgba(255, 212, 106, 0.22), rgba(255, 147, 50, 0.12));
  box-shadow: 0 20px 50px rgba(255, 147, 50, 0.22);
}

.lottery-result-card.hit-sss .lottery-result-icon {
  animation: lottery-sss-glow 1.1s ease-in-out infinite;
}

.lottery-extra-list {
  display: grid;
  gap: 10px;
}

.lottery-result-actions {
  display: flex;
  justify-content: center;
}

.lottery-result-actions .activity-action {
  min-width: 160px;
}

@keyframes lottery-spin {
  to { transform: rotate(360deg); }
}

@keyframes lottery-image-wheel {
  to { transform: rotate(360deg); }
}

@keyframes lottery-reel-idle {
  from { transform: translateX(0); }
  to { transform: translateX(-960px); }
}

@keyframes lottery-reel-fast {
  from { transform: translateX(0); filter: brightness(1.2); }
  to { transform: translateX(-384px); filter: brightness(1.55); }
}

@keyframes lottery-spotlight {
  to { transform: rotate(360deg); }
}

@keyframes lottery-pulse {
  0%, 100% { opacity: .5; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes lottery-core {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes lottery-core-draw {
  0%, 100% { transform: scale(1) rotate(0); filter: brightness(1); }
  50% { transform: scale(1.12) rotate(3deg); filter: brightness(1.35); }
}

@keyframes lottery-chest-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}

@keyframes lottery-confetti {
  0%, 100% { transform: translateY(0) rotate(0); opacity: .65; }
  50% { transform: translateY(-14px) rotate(18deg); opacity: 1; }
}

@keyframes lottery-modal-pop {
  from { opacity: 0; transform: translateY(16px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lottery-result-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lottery-card-in {
  from { opacity: 0; transform: translateY(22px) scale(.72) rotateY(64deg); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lottery-shine {
  to { transform: translateX(120%); }
}

@keyframes lottery-sss-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(65, 19, 10, .65), 0 0 24px rgba(255, 211, 84, .72); }
  50% { box-shadow: 0 0 0 3px rgba(65, 19, 10, .65), 0 0 42px rgba(255, 229, 117, 1); }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-grid article {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(2, 8, 4, 0.58);
}

.info-grid strong,
.info-grid span {
  display: block;
}

.info-grid span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.empty {
  padding: 34px;
  border: 1px dashed rgba(255, 212, 106, 0.28);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  max-width: min(520px, calc(100% - 28px));
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border: 1px solid rgba(255, 212, 106, 0.34);
  border-radius: 8px;
  color: var(--text);
  background: rgba(2, 8, 4, 0.94);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1320px) {
  .goods-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .player-center {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .shop-workspace {
    padding: 26px 22px 44px;
  }

  .workspace-head,
  .workspace-actions,
  .overview-hero,
  .supply-panel,
  .wallet-layout,
  .lottery-stage {
    grid-template-columns: 1fr;
  }

  .workspace-head {
    display: grid;
  }

  .workspace-actions {
    display: grid;
  }

  .hero-art {
    display: none;
  }

  .coupon-list,
  .recharge-tier-grid,
  .privilege-grid,
  .flash-goods-row,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-mall {
    max-width: none;
  }

  .mall-player-strip {
    grid-template-columns: 52px minmax(0, 1fr) 120px;
  }

  .mall-role-picker {
    grid-column: 1 / 3;
  }

  .mall-player-actions {
    grid-column: 3;
    justify-content: stretch;
  }
}

@media (max-width: 780px) {
  .login-panel,
  .player-center {
    grid-template-columns: 1fr;
  }

  .player-center:not([data-active-page="overview"]) .shop-sidebar {
    display: none;
  }

  .login-panel {
    margin: 18px auto;
    padding: 18px;
  }

  .login-hero {
    min-height: 320px;
    padding: 24px;
  }

  .login-hero h1 {
    font-size: 42px;
  }

  .shop-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-logo {
    min-height: 56px;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-group {
    grid-column: 1 / -1;
  }

  .workspace-head h1 {
    font-size: 30px;
  }

  .player-center:not([data-active-page="overview"]) .shop-workspace {
    min-height: 100vh;
    padding: 12px 10px 34px;
    width: 100%;
  }

  .player-center:not([data-active-page="overview"]) .workspace-head {
    position: sticky;
    top: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: -12px -10px 12px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 8, 4, 0.96);
  }

  .player-center:not([data-active-page="overview"]) .workspace-head .eyebrow {
    display: none;
  }

  .player-center:not([data-active-page="overview"]) .workspace-head h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
  }

  .player-center:not([data-active-page="overview"]) .workspace-actions {
    display: none;
  }

  .player-center:not([data-active-page="overview"]) .mobile-page-back {
    display: inline-grid;
    place-items: center;
    min-height: 38px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .overview-hero {
    min-height: 220px;
    padding: 26px;
  }

  .hero-copy h2 {
    font-size: 42px;
  }

  .goods-grid,
  .metric-grid,
  .coupon-list,
  .recharge-tier-grid,
  .privilege-grid,
  .flash-goods-row,
  .info-grid,
  .quick-grid,
  .support-form,
  .recharge-form,
  .recharge-action-row {
    grid-template-columns: 1fr;
  }

  .flash-head,
  .flash-buy,
  .price-row {
    align-items: stretch;
    flex-direction: column;
  }

  .flash-head b {
    width: 100%;
  }

  .flash-goods,
  .privilege-card {
    grid-template-columns: 1fr;
  }

  .lottery-stage {
    min-height: 0;
    padding: 18px;
  }

  .lottery-copy h2 {
    font-size: 30px;
  }

  .lottery-actions {
    display: grid;
  }

  .lottery-draw-btn {
    width: 100%;
  }

  .action-confirm-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .action-confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .shop-workspace {
    padding: 20px 14px 36px;
  }

  .mall-player-strip {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .mall-player-rank {
    width: 40px;
    height: 40px;
  }

  .mall-player-balance,
  .mall-role-picker,
  .mall-player-actions {
    grid-column: 1 / -1;
  }

  .mall-player-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mall-tab-panel {
    padding: 10px;
  }

  .game-mall.detail-mode .mall-player-strip {
    display: none;
  }

  .mall-shop-layout {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .mall-category-item {
    min-height: 64px;
    padding: 6px 4px;
  }

  .mall-category-icon {
    width: 24px;
    height: 24px;
  }

  .mall-category-item span:last-child {
    font-size: 11px;
  }

  .game-mall .goods-card,
  .mall-product-row,
  .game-mall .privilege-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 0;
    padding: 9px;
  }

  .game-mall .goods-image,
  .game-mall .privilege-media,
  .mall-product-image {
    width: 88px;
    height: 88px;
  }

  .mall-product-title {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .mall-product-title strong {
    font-size: 15px;
  }

  .mall-product-main p {
    -webkit-line-clamp: 2;
  }

  .mall-product-extra {
    display: none;
  }

  .mall-product-buy {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    padding-left: 98px;
  }

  .mall-product-price {
    font-size: 20px;
  }

  .mall-product-price,
  .game-mall .origin-price {
    text-align: left;
  }

  .game-mall .buy-actions,
  .game-mall .privilege-actions {
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    width: auto;
  }

  .mall-detail-panel {
    padding: 10px;
  }

  .mall-detail-head {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 8px 0;
    background: rgba(2, 8, 4, 0.94);
  }

  .mall-detail-head button {
    min-height: 38px;
  }

  .mall-detail-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mall-detail-image {
    min-height: 220px;
  }

  .mall-detail-image img {
    max-height: 260px;
  }

  .mall-detail-summary h2 {
    font-size: 22px;
  }

  .mall-detail-items {
    grid-template-columns: 1fr;
  }

  .mall-detail-buybar {
    position: sticky;
    bottom: 0;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 -10px -10px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -18px 38px rgba(0, 0, 0, 0.36);
  }

  .mall-detail-buybar .buy-actions {
    width: 100%;
  }

  .mall-sale-head {
    align-items: stretch;
    flex-direction: column;
  }

  .mall-sale-head b {
    width: 100%;
  }
}
