: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;
}

.zone-binding-card,
.mall-zone-binding {
  display: flex;
  align-items: center;
  gap: 7px;
}

.zone-binding-card {
  min-height: 42px;
}

.zone-binding-card button,
.mall-zone-binding button {
  min-height: 38px;
  padding: 0 12px;
}

.zone-binding-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 196, 75, 0.42);
  border-radius: 999px;
  color: #ffd980;
  background: rgba(255, 170, 45, 0.08);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.zone-binding-status.bound {
  border-color: rgba(72, 206, 130, 0.48);
  color: #8bf0b4;
  background: rgba(54, 179, 110, 0.1);
}

.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);
}

.coin-lottery {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.coin-lottery-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 211, 96, .34);
  border-radius: 8px;
  background:
    linear-gradient(125deg, rgba(4, 11, 10, .98), rgba(20, 31, 22, .94) 46%, rgba(58, 26, 10, .84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 72px);
  box-shadow: inset 0 0 72px rgba(255, 185, 64, .08);
}

.coin-lottery-vault,
.coin-lottery-command {
  position: relative;
  z-index: 1;
}

.coin-lottery-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
  filter: saturate(1.08) contrast(1.06);
}

.coin-lottery-vault {
  min-height: 352px;
  display: grid;
  place-items: center;
}

.coin-vault-ring {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 232, 147, .72);
  border-radius: 50%;
  background:
    conic-gradient(from 12deg, rgba(255, 222, 120, .92), rgba(33, 180, 119, .64), rgba(220, 68, 72, .52), rgba(255, 222, 120, .92)),
    radial-gradient(circle, rgba(255, 255, 255, .12), rgba(0, 0, 0, .55) 66%);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .48),
    inset 0 0 0 18px rgba(4, 10, 8, .74);
  animation: coin-vault-spin 18s linear infinite;
}

.coin-lottery.is-drawing .coin-vault-ring {
  animation-duration: 1.1s;
}

.coin-vault-ring > span {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 237, 170, .78);
  border-radius: 50%;
  color: #251400;
  background: linear-gradient(135deg, #fff2a8, #ffb23c);
  font-size: 26px;
  font-weight: 1000;
  box-shadow: 0 0 42px rgba(255, 205, 71, .42);
}

.coin-vault-ring i {
  position: absolute;
  width: 12px;
  height: 52px;
  border-radius: 8px;
  background: rgba(255, 248, 204, .9);
  box-shadow: 0 0 18px rgba(255, 226, 126, .52);
}

.coin-vault-ring i:nth-child(2) { top: 16px; }
.coin-vault-ring i:nth-child(3) { right: 16px; transform: rotate(90deg); }
.coin-vault-ring i:nth-child(4) { bottom: 16px; }
.coin-vault-ring i:nth-child(5) { left: 16px; transform: rotate(90deg); }

.coin-vault-core {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 227, 141, .54);
  border-radius: 8px;
  color: #fff4c4;
  background: rgba(3, 9, 8, .74);
}

.coin-vault-core small,
.coin-vault-core span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.coin-vault-core strong {
  color: #ffe78d;
  font-size: 36px;
  line-height: 1;
}

.coin-vault-track {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.coin-vault-track b {
  min-width: 46px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #f8f1d0;
  background: rgba(0, 0, 0, .32);
  text-align: center;
  font-size: 12px;
}

.coin-lottery-command {
  display: grid;
  align-content: center;
  gap: 14px;
}

.coin-lottery-command h2 {
  font-size: 34px;
  line-height: 1.1;
}

.coin-lottery-command p {
  max-width: 680px;
  color: #dbe5db;
  line-height: 1.7;
}

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

.coin-ledger-grid div,
.coin-rate,
.coin-featured-card,
.coin-prize-card {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
}

.coin-ledger-grid div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
}

.coin-ledger-grid small,
.coin-rate small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.coin-ledger-grid strong {
  color: #ffe89c;
  font-size: 22px;
  font-weight: 1000;
  word-break: break-word;
}

.coin-lucky-line {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.coin-lucky-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #24c17d, #ffd15f, #e64f55);
  background-size: 220% 100%;
  transition: width .35s ease;
  animation: coin-lucky-flow 2.2s linear infinite;
}

.coin-lottery-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}

.coin-draw-btn {
  position: relative;
  overflow: hidden;
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 230, 145, .54);
  border-radius: 8px;
  color: #241500;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34), transparent 42%),
    linear-gradient(135deg, #ffe28a, #ffc14d 56%, #df5d44);
  box-shadow: 0 8px 0 rgba(79, 38, 0, .62);
  isolation: isolate;
}

.coin-draw-btn::after {
  content: "";
  position: absolute;
  inset: -40% -55%;
  z-index: -1;
  transform: translateX(-70%) rotate(10deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  animation: coin-button-shine 2.8s ease-in-out infinite;
}

.coin-draw-btn:nth-child(2)::after { animation-delay: .25s; }
.coin-draw-btn:nth-child(3)::after { animation-delay: .5s; }

.coin-draw-btn b,
.coin-draw-btn span {
  position: relative;
  z-index: 1;
}

.coin-draw-btn b {
  font-size: 22px;
  font-weight: 1000;
}

.coin-draw-btn span {
  font-size: 12px;
}

.coin-draw-btn.featured {
  border-color: rgba(125, 255, 189, .52);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34), transparent 42%),
    linear-gradient(135deg, #eafcbb, #ffd15f 48%, #20b879);
}

.coin-draw-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.coin-rate-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.coin-rate {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.coin-rate strong {
  color: #ffe89c;
  font-size: 20px;
}

.coin-featured-prizes,
.coin-prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.coin-featured-card,
.coin-prize-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
}

.coin-featured-card img,
.coin-featured-card > span,
.coin-prize-card img,
.coin-prize-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.coin-featured-card img,
.coin-prize-card img {
  object-fit: cover;
}

.coin-featured-card > span,
.coin-prize-icon {
  display: grid;
  place-items: center;
  color: #170e00;
  background: linear-gradient(135deg, #fff0a3, #ffae39);
  font-weight: 1000;
}

.coin-prize-card em {
  display: inline-flex;
  margin-top: 3px;
  color: var(--gold);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.coin-prize-card small {
  color: var(--muted);
}

.coin-featured-card .reward-icon-list,
.coin-prize-card .reward-icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coin-featured-card .reward-icon-item,
.coin-prize-card .reward-icon-item {
  width: 72px;
  min-height: 82px;
  padding: 6px;
}

.coin-featured-card .reward-icon-item i,
.coin-prize-card .reward-icon-item i {
  width: 42px;
  height: 42px;
}

.coin-prize-card.grade-SSS,
.coin-featured-card {
  border-color: rgba(255, 212, 106, .68);
  background: rgba(255, 147, 50, .12);
}

.coin-prize-card.grade-SS {
  border-color: rgba(125, 255, 189, .44);
  background: rgba(41, 209, 124, .09);
}

.coin-prize-card.grade-S {
  border-color: rgba(130, 183, 255, .42);
  background: rgba(68, 129, 255, .08);
}

.coin-drawing-mask {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(4px);
}

.coin-drawing-panel {
  width: min(420px, 90vw);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(255, 230, 145, .72);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(12, 27, 21, .96), rgba(62, 29, 9, .94));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .52);
}

.coin-drawing-panel strong {
  color: #ffe89c;
  font-size: 42px;
  line-height: 1;
}

.coin-drawing-panel small {
  color: #dbe5db;
  font-weight: 900;
}

.coin-drawing-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 56px;
}

.coin-drawing-bars i {
  width: 14px;
  height: 24px;
  border-radius: 8px;
  background: #ffd15f;
  animation: coin-bars .72s ease-in-out infinite;
}

.coin-drawing-bars i:nth-child(2) { animation-delay: .1s; background: #24c17d; }
.coin-drawing-bars i:nth-child(3) { animation-delay: .2s; background: #e64f55; }
.coin-drawing-bars i:nth-child(4) { animation-delay: .3s; background: #82b7ff; }

.coin-lottery .coin-drawing-mask {
  inset: auto 16px 126px auto;
  z-index: 6;
  display: block;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.coin-lottery .coin-drawing-panel {
  width: auto;
  min-width: 174px;
  gap: 5px;
  justify-items: start;
  padding: 12px 14px;
  border-color: rgba(255, 230, 145, .46);
  background: linear-gradient(135deg, rgba(0, 0, 0, .72), rgba(32, 25, 8, .72));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
}

.coin-lottery .coin-drawing-panel strong {
  font-size: 22px;
}

.coin-lottery .coin-drawing-panel small {
  font-size: 12px;
}

.coin-lottery .coin-drawing-bars {
  display: none;
}

@keyframes coin-vault-spin {
  to { transform: rotate(360deg); }
}

@keyframes coin-bars {
  0%, 100% { height: 22px; }
  50% { height: 54px; }
}

.coin-lottery-page {
  display: grid;
  gap: 14px;
}

.coin-lottery-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coin-lottery-page-head h2 {
  margin-top: 4px;
  font-size: 26px;
}

.coin-lottery-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coin-lottery-switch button {
  min-width: 170px;
  min-height: 58px;
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 210, 90, .34);
  border-radius: 8px;
  color: #f8f4df;
  background: rgba(5, 15, 13, .72);
}

.coin-lottery-switch button.active {
  color: #201302;
  background: linear-gradient(135deg, #ffe287, #f89d3f);
}

.coin-lottery-switch button span {
  color: inherit;
  opacity: .78;
  font-size: 12px;
}

.coin-lottery .coin-lottery-hero {
  min-height: 620px;
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: clamp(10px, 1.4vw, 22px);
  border-color: rgba(255, 205, 82, .48);
  background:
    linear-gradient(110deg, rgba(3, 8, 8, .98), rgba(8, 22, 21, .9) 42%, rgba(65, 28, 13, .86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 62px);
  box-shadow:
    inset 0 0 84px rgba(255, 190, 69, .1),
    0 22px 80px rgba(0, 0, 0, .28);
}

.coin-lottery .coin-lottery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 18%, rgba(255, 231, 143, .16) 44%, rgba(93, 255, 179, .08) 50%, transparent 64%);
  animation: coin-hero-scan 5.8s ease-in-out infinite;
  pointer-events: none;
}

.coin-lottery .coin-lottery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 208, 91, .22), transparent 28%),
    radial-gradient(circle at 30% 88%, rgba(33, 190, 130, .18), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .2) 54%, rgba(0, 0, 0, .62));
  pointer-events: none;
}

.coin-lottery .coin-lottery-art {
  opacity: .46;
  object-position: center;
  filter: saturate(1.18) contrast(1.08);
}

.coin-machine-shell {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 16px;
  width: min(1180px, 100%);
  min-height: 455px;
  margin-left: auto;
  padding: clamp(18px, 2.3vw, 30px);
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .36), rgba(0, 0, 0, .08) 56%, rgba(0, 0, 0, .28));
  box-shadow: none;
  backdrop-filter: none;
}

.coin-machine-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 12px);
  opacity: .26;
  animation: coin-panel-lines 8s linear infinite;
  pointer-events: none;
}

.coin-machine-shell.image-led {
  width: 100%;
  min-height: 0;
  align-content: stretch;
  gap: 12px;
  padding: 0;
  background: transparent;
}

.coin-machine-shell.image-led::after {
  display: none;
}

.coin-machine-stage {
  position: relative;
  min-height: min(64vw, 760px);
  overflow: hidden;
  border: 1px solid rgba(255, 205, 82, .36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 212, 88, .16), transparent 26%),
    #020403;
  box-shadow:
    inset 0 0 80px rgba(255, 190, 69, .08),
    0 24px 82px rgba(0, 0, 0, .42);
}

.coin-machine-main-art,
.coin-machine-fallback-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.coin-machine-main-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.08) contrast(1.04);
}

.coin-machine-fallback-art {
  z-index: 0;
  display: none;
  place-items: center;
  background: radial-gradient(circle, rgba(255, 210, 90, .18), rgba(0, 0, 0, .84));
}

.coin-machine-stage.image-missing .coin-machine-fallback-art {
  display: grid;
}

.coin-machine-fallback-art span {
  width: min(54vw, 520px);
  aspect-ratio: 2.3;
  border: 3px solid rgba(255, 218, 112, .5);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 210, 82, .48), transparent 32%),
    linear-gradient(135deg, #101816, #3b2b10 52%, #07140e);
}

.coin-machine-fallback-art i {
  position: absolute;
  width: 80px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff8b5, #ffd15f 46%, #93540f);
  box-shadow: 0 0 34px rgba(255, 207, 75, .4);
}

.coin-machine-fallback-art i:nth-child(2) { left: 31%; top: 45%; }
.coin-machine-fallback-art i:nth-child(3) { left: 46%; top: 45%; }
.coin-machine-fallback-art i:nth-child(4) { left: 61%; top: 45%; }

.coin-machine-center-glow {
  position: absolute;
  left: 50%;
  top: 22%;
  z-index: 2;
  width: min(16vw, 170px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 225, .74), rgba(255, 211, 60, .46) 28%, rgba(255, 191, 44, .1) 56%, transparent 72%);
  mix-blend-mode: screen;
  animation: coin-image-core 1.9s ease-in-out infinite;
  pointer-events: none;
}

.coin-machine-reel-glow {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: 2;
  width: min(42vw, 530px);
  height: min(12vw, 140px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 216, 88, .28), rgba(92, 255, 149, .16), rgba(255, 216, 88, .28), transparent);
  mix-blend-mode: screen;
  animation: coin-image-reel-light 2.4s ease-in-out infinite;
  pointer-events: none;
}

.coin-lottery.is-drawing .coin-machine-main-art {
  animation: coin-machine-draw-shake .32s linear infinite;
}

.coin-lottery.is-drawing .coin-machine-center-glow {
  animation-duration: .55s;
  filter: brightness(1.35);
}

.coin-lottery.is-drawing .coin-machine-reel-glow {
  animation-duration: .42s;
}

.coin-machine-reel-coins {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.coin-machine-reel-coins span {
  position: absolute;
  top: 53.5%;
  width: clamp(38px, 6.2vw, 86px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) perspective(180px) rotateY(0deg) rotateZ(0deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border-radius: 50%;
  background:
    linear-gradient(88deg, rgba(92, 48, 4, .78) 0 8%, transparent 11% 89%, rgba(92, 48, 4, .82) 92% 100%),
    radial-gradient(circle at 31% 23%, rgba(255, 255, 237, .98), rgba(255, 239, 146, .72) 15%, transparent 24%),
    radial-gradient(circle at 50% 50%, #fff097 0 18%, #ffd95e 19% 43%, #c57515 44% 66%, #5a2d05 67% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 248, 188, .68),
    inset 0 0 0 10px rgba(114, 64, 7, .22),
    inset 12px 0 14px rgba(255, 255, 210, .16),
    inset -12px 0 16px rgba(72, 32, 2, .4),
    0 0 20px rgba(255, 204, 66, .76),
    0 0 34px rgba(67, 255, 144, .18);
}

.coin-machine-reel-coins span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28%;
  height: 28%;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(255, 247, 169, .92);
  clip-path: polygon(50% 0, 62% 34%, 100% 38%, 70% 58%, 80% 100%, 50% 76%, 20% 100%, 30% 58%, 0 38%, 38% 34%);
}

.coin-machine-reel-coins span::after {
  content: "";
  position: absolute;
  inset: 9% 13%;
  border: 2px solid rgba(94, 50, 4, .44);
  border-radius: inherit;
  box-shadow:
    inset 7px 0 8px rgba(255, 255, 210, .2),
    inset -7px 0 8px rgba(70, 31, 2, .34);
}

.coin-machine-reel-coins span:nth-child(1) { left: 42.9%; }
.coin-machine-reel-coins span:nth-child(2) { left: 50%; animation-delay: -120ms; }
.coin-machine-reel-coins span:nth-child(3) { left: 57.1%; animation-delay: -240ms; }

.coin-lottery.is-drawing .coin-machine-reel-coins {
  opacity: .96;
}

.coin-lottery.is-drawing .coin-machine-reel-coins span {
  animation: coin-overlay-reel-spin .62s linear infinite;
}

.coin-lottery.draw-100 .coin-machine-reel-coins span {
  background:
    linear-gradient(88deg, rgba(0, 70, 52, .76) 0 8%, transparent 11% 89%, rgba(0, 70, 52, .8) 92% 100%),
    radial-gradient(circle at 32% 24%, rgba(255, 255, 237, .98), rgba(198, 255, 231, .72) 15%, transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(255, 239, 117, .98) 0 24%, transparent 25%),
    conic-gradient(from 0deg, #fff78f, #78ffd8, #32c6ff, #3cff92, #fff78f);
  box-shadow:
    inset 0 0 0 3px rgba(255, 252, 195, .62),
    inset 0 0 0 11px rgba(55, 255, 174, .16),
    inset 12px 0 16px rgba(225, 255, 238, .22),
    inset -12px 0 16px rgba(0, 66, 48, .38),
    0 0 24px rgba(255, 225, 82, .84),
    0 0 42px rgba(75, 255, 198, .54),
    0 0 56px rgba(50, 198, 255, .34);
  animation-duration: .34s;
}

.coin-machine-topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.coin-machine-topbar > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 221, 122, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 0, 0, .64), rgba(0, 18, 11, .36));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  backdrop-filter: blur(4px);
}

.coin-machine-topbar span,
.coin-machine-playbar-title span,
.coin-info-dialog header span,
.coin-info-block-head span {
  color: #ffe69b;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
}

.coin-machine-topbar strong {
  max-width: min(48vw, 560px);
  overflow: hidden;
  color: #fff7d1;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .56);
}

.coin-machine-topbar small {
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: #08160e;
  background: #62f1ad;
  font-weight: 1000;
}

.coin-info-open {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 221, 122, .52);
  border-radius: 8px;
  color: #fff6cf;
  background: linear-gradient(135deg, rgba(44, 37, 13, .88), rgba(3, 18, 11, .76));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
  font-weight: 1000;
}

.coin-info-open:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.coin-machine-playbar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(150px, .24fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(255, 221, 122, .32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 9, 6, .94), rgba(8, 22, 13, .86)),
    rgba(0, 0, 0, .42);
  box-shadow: 0 16px 52px rgba(0, 0, 0, .28);
}

.coin-machine-playbar-title {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 6px;
}

.coin-machine-playbar-title strong {
  color: #fff7d1;
  font-size: 18px;
}

.coin-machine-playbar .coin-lottery-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coin-machine-playbar .coin-draw-btn {
  min-height: 72px;
}

.coin-info-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.coin-info-sheet.open {
  display: flex;
}

.coin-info-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(4px);
}

.coin-info-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 221, 122, .42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 211, 87, .16), transparent 35%),
    linear-gradient(135deg, rgba(1, 15, 9, .98), rgba(23, 23, 9, .96));
  box-shadow: 0 30px 120px rgba(0, 0, 0, .56);
}

.coin-info-dialog header,
.coin-info-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coin-info-dialog header h3 {
  color: #fff7d1;
  font-size: 26px;
  line-height: 1.15;
}

.coin-info-dialog header button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 221, 122, .32);
  border-radius: 8px;
  color: #fff7d1;
  background: rgba(0, 0, 0, .28);
  font-size: 24px;
  font-weight: 900;
}

.coin-info-summary,
.coin-info-costs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.coin-info-summary div,
.coin-info-costs div {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
}

.coin-info-summary small,
.coin-info-costs small {
  color: #b9c8bf;
  font-size: 12px;
  font-weight: 900;
}

.coin-info-summary strong,
.coin-info-costs strong {
  color: #ffe69b;
  font-size: 20px;
  word-break: break-word;
}

.coin-info-lucky,
.coin-info-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 221, 122, .2);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
}

.coin-info-lucky > span {
  color: #dce9e2;
  font-weight: 900;
}

.coin-info-block-head strong {
  color: #fff7d1;
  font-size: 18px;
}

.coin-info-rule-list {
  display: grid;
  gap: 10px;
}

.coin-info-rule-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
}

.coin-info-rule-list b {
  color: #fff7d1;
}

.coin-info-rule-list span {
  color: #dce9e2;
}

.coin-machine-hud {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(0, 1.25fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 221, 122, .34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, .76), rgba(5, 18, 14, .66)),
    rgba(0, 0, 0, .45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  backdrop-filter: blur(5px);
}

.coin-machine-hud-title {
  display: grid;
  align-content: center;
  gap: 4px;
}

.coin-machine-hud-title span {
  color: #ffe69b;
  font-size: 12px;
  font-weight: 1000;
}

.coin-machine-hud-title h2 {
  color: #fff7d1;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.08;
}

.coin-machine-hud-title small {
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: #091710;
  background: #62f1ad;
  font-weight: 1000;
}

.coin-machine-hud .coin-machine-status {
  grid-column: 2;
}

.coin-machine-hud .coin-lucky-line,
.coin-machine-hud .coin-rate-strip,
.coin-machine-hud .coin-lottery-actions {
  grid-column: 1 / -1;
}

.coin-machine-topline,
.coin-prize-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffe69b;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
}

.coin-machine-topline b {
  padding: 4px 10px;
  border-radius: 999px;
  color: #091710;
  background: #62f1ad;
  animation: coin-live-badge 1.9s ease-in-out infinite;
}

.coin-machine-title {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.coin-machine-title h2 {
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.08;
  color: #fff7d1;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .48);
}

.coin-machine-title p {
  max-width: 660px;
  color: #dce9e2;
  line-height: 1.65;
}

.coin-visual-console {
  position: relative;
  min-height: 210px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 108px;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 221, 122, .24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 42%),
    linear-gradient(90deg, rgba(5, 15, 14, .74), rgba(10, 22, 20, .38), rgba(64, 25, 10, .52));
  box-shadow: inset 0 0 46px rgba(255, 203, 82, .08);
}

.coin-energy-core,
.coin-jackpot-core {
  position: relative;
  width: 82px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
}

.coin-energy-core span,
.coin-jackpot-core span {
  width: 58px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .9), transparent 18%),
    radial-gradient(circle, #ffe28a, #24c17d 58%, rgba(17, 55, 41, .2) 62%);
  box-shadow:
    0 0 28px rgba(255, 213, 91, .46),
    0 0 54px rgba(36, 193, 125, .28);
  animation: coin-core-pulse 1.8s ease-in-out infinite;
}

.coin-jackpot-core span {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .9), transparent 18%),
    radial-gradient(circle, #ffe28a, #ff7e45 56%, rgba(86, 25, 9, .28) 64%);
}

.coin-energy-core i,
.coin-jackpot-core i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 225, 134, .35);
  border-radius: 50%;
  animation: coin-orbit 4s linear infinite;
}

.coin-energy-core i:nth-child(3),
.coin-jackpot-core i:nth-child(3) {
  inset: 10px;
  animation-direction: reverse;
  animation-duration: 2.8s;
}

.coin-energy-core i:nth-child(4) {
  inset: 22px;
  border-color: rgba(98, 241, 173, .42);
  animation-duration: 2s;
}

.coin-reel-bank {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.coin-reel-window {
  position: relative;
  height: 174px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 226, 138, .14), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .58));
  box-shadow:
    inset 0 18px 22px rgba(0, 0, 0, .34),
    inset 0 -18px 22px rgba(0, 0, 0, .42);
}

.coin-reel-window::before,
.coin-reel-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 36px;
  pointer-events: none;
}

.coin-reel-window::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .76), transparent);
}

.coin-reel-window::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), transparent);
}

.coin-reel-strip {
  display: grid;
  gap: 10px;
  padding: 10px;
  animation: coin-reel-roll 7.5s linear infinite;
  animation-delay: calc(var(--lane, 0) * -720ms);
}

.coin-lottery.is-drawing .coin-reel-strip {
  animation-duration: .75s;
}

.coin-reel-prize {
  position: relative;
  min-height: 144px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 221, 122, .18), transparent 42%),
    rgba(3, 13, 12, .64);
}

.coin-reel-prize em {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 999px;
  color: #141006;
  background: #ffe077;
  font-size: 11px;
  font-style: normal;
  font-weight: 1000;
}

.coin-visual-icon {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 239, 177, .64);
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, .82), transparent 20%),
    linear-gradient(135deg, #ffd76a, #ff9445 48%, #24c17d);
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, .28),
    0 0 28px rgba(255, 211, 84, .34);
}

.coin-visual-icon img,
.coin-visual-icon .client-item-sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coin-visual-icon.generated i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #fff9c8, #ffd15f 45%, #a65d13 72%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}

.coin-visual-icon.generated i:nth-child(1) {
  width: 58px;
  height: 58px;
  left: 12px;
  top: 18px;
}

.coin-visual-icon.generated i:nth-child(2) {
  width: 40px;
  height: 40px;
  right: 10px;
  bottom: 11px;
}

.coin-visual-icon.generated i:nth-child(3) {
  width: 26px;
  height: 26px;
  right: 17px;
  top: 12px;
}

.coin-visual-icon.generated.grade-SSS {
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, .9), transparent 20%),
    linear-gradient(135deg, #fff0a7, #ff7b45 48%, #ffcf5a);
}

.coin-visual-icon.generated.grade-SS {
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, .85), transparent 20%),
    linear-gradient(135deg, #e7ffd0, #24c17d 50%, #ffd15f);
}

.coin-visual-icon.generated.grade-S {
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, .85), transparent 20%),
    linear-gradient(135deg, #e9f5ff, #559dff 52%, #ffd15f);
}

.coin-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coin-feature-chip {
  width: 64px;
  height: 64px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 229, 137, .36);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
}

.coin-feature-chip .coin-visual-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.coin-feature-chip b {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #140f03;
  background: #ffe077;
  font-size: 10px;
}

.coin-particle-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.coin-particle-field i {
  position: absolute;
  left: calc((var(--p) * 7%) + 2%);
  top: calc(6% + (var(--p) * 6%));
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffd15f;
  opacity: .34;
  animation: coin-particle-float 4.8s ease-in-out infinite;
  animation-delay: calc(var(--p) * -220ms);
}

.coin-lottery.is-drawing .coin-particle-field i {
  animation-duration: 1.1s;
  opacity: .7;
}

.coin-draw-effect {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}

.coin-draw-effect i {
  position: absolute;
  display: block;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(88deg, rgba(92, 48, 4, .7) 0 8%, transparent 11% 89%, rgba(92, 48, 4, .72) 92% 100%),
    radial-gradient(circle at 30% 24%, rgba(255, 255, 235, .98), rgba(255, 237, 145, .72) 16%, transparent 22%),
    radial-gradient(circle, #fff0a3 0 18%, #ffe58a 19% 36%, #f2aa2f 37% 63%, #8c4f0d 64% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 241, 156, .45),
    inset 0 0 0 8px rgba(150, 85, 10, .18),
    inset 8px 0 10px rgba(255, 255, 210, .16),
    inset -8px 0 10px rgba(72, 32, 2, .36),
    0 0 18px rgba(255, 205, 67, .66);
  filter: saturate(1.12);
}

.coin-draw-effect i::before {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 38%, rgba(125, 75, 8, .5) 39% 45%, transparent 46%),
    linear-gradient(-45deg, transparent 38%, rgba(255, 255, 180, .42) 39% 45%, transparent 46%);
}

.coin-draw-effect i::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 2px solid rgba(122, 70, 7, .46);
  border-radius: 50%;
}

.coin-draw-effect i span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(255, 247, 163, .82);
  clip-path: polygon(50% 0, 62% 34%, 100% 38%, 70% 58%, 80% 100%, 50% 76%, 20% 100%, 30% 58%, 0 38%, 38% 34%);
}

.coin-draw-effect b,
.coin-draw-effect em {
  position: absolute;
  display: block;
  width: clamp(22px, 2.6vw, 42px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(88deg, rgba(92, 48, 4, .7) 0 8%, transparent 11% 89%, rgba(92, 48, 4, .72) 92% 100%),
    radial-gradient(circle at 30% 24%, rgba(255, 255, 235, .96), rgba(255, 237, 145, .72) 16%, transparent 23%),
    radial-gradient(circle, #fff0a3 0 18%, #ffe58a 19% 36%, #f2aa2f 37% 63%, #8c4f0d 64% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 241, 156, .42),
    inset 0 0 0 8px rgba(150, 85, 10, .16),
    inset 8px 0 10px rgba(255, 255, 210, .16),
    inset -8px 0 10px rgba(72, 32, 2, .34),
    0 0 18px rgba(255, 205, 67, .58);
}

.coin-draw-effect b::before,
.coin-draw-effect em::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(255, 247, 163, .82);
  clip-path: polygon(50% 0, 62% 34%, 100% 38%, 70% 58%, 80% 100%, 50% 76%, 20% 100%, 30% 58%, 0 38%, 38% 34%);
}

.coin-draw-effect.rain::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 62%;
  z-index: 0;
  width: min(72vw, 1040px);
  height: min(34vw, 390px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 72%, rgba(255, 224, 99, .54), rgba(255, 163, 38, .16) 34%, transparent 62%),
    radial-gradient(circle at 28% 40%, rgba(82, 255, 198, .2), transparent 36%),
    radial-gradient(circle at 72% 36%, rgba(46, 194, 255, .18), transparent 36%);
  filter: blur(18px);
  opacity: 0;
  animation: coin-tray-glow 1.28s ease-out both;
}

.coin-draw-effect.rain-100::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(110deg, transparent 8%, rgba(96, 255, 207, .16) 36%, rgba(255, 238, 132, .2) 50%, rgba(52, 195, 255, .14) 64%, transparent 92%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: coin-rain-stage-flash 1.64s ease-out both;
}

.coin-draw-effect.rain i,
.coin-draw-effect.rain b,
.coin-draw-effect.rain em {
  background:
    linear-gradient(88deg, rgba(0, 70, 52, .74) 0 8%, transparent 11% 89%, rgba(0, 70, 52, .78) 92% 100%),
    radial-gradient(circle at 30% 24%, rgba(255, 255, 245, .98), rgba(202, 255, 231, .72) 16%, transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(255, 239, 117, .98) 0 25%, transparent 26%),
    conic-gradient(from var(--rot), #fff78f, #78ffd8, #32c6ff, #3cff92, #fff78f);
  box-shadow:
    inset 0 0 0 3px rgba(255, 252, 195, .52),
    inset 0 0 0 8px rgba(55, 255, 174, .16),
    inset 8px 0 10px rgba(225, 255, 238, .2),
    inset -8px 0 10px rgba(0, 66, 48, .36),
    0 0 16px rgba(255, 225, 82, .74),
    0 0 28px rgba(75, 255, 198, .48),
    0 0 34px rgba(50, 198, 255, .28);
}

.coin-tray-spin,
.coin-tray-burst {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.coin-tray-spin b {
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform-origin: 50% 50%;
  animation: coin-tray-spin-piece 1.24s ease-out both;
  animation-delay: calc(var(--i) * 24ms);
}

.coin-tray-burst em {
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  z-index: 3;
  width: clamp(20px, 2.4vw, 38px);
  transform-origin: 50% 50%;
  animation: coin-tray-burst-piece 1.02s cubic-bezier(.16, .76, .26, 1) both;
  animation-delay: calc(420ms + var(--i) * 18ms);
}

.coin-draw-effect.rain .coin-tray-spin b {
  animation-name: coin-tray-spin-piece, coin-rainbow-coin-glint;
  animation-duration: 1.24s, .72s;
  animation-timing-function: ease-out, linear;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
}

.coin-draw-effect.rain .coin-tray-burst em {
  animation-name: coin-tray-burst-piece, coin-rainbow-coin-glint;
  animation-duration: 1.02s, .58s;
  animation-timing-function: cubic-bezier(.16, .76, .26, 1), linear;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
}

.coin-draw-effect.single i {
  left: 50%;
  top: 61%;
  width: clamp(58px, 7vw, 92px);
  animation: coin-single-pop 1.38s cubic-bezier(.18, .8, .18, 1) both;
}

.coin-draw-effect.pile i {
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: clamp(28px, 3.6vw, 54px);
  animation: coin-pile-pop 1.45s cubic-bezier(.18, .78, .22, 1) both;
  animation-delay: calc(var(--i) * 38ms);
}

.coin-draw-effect.rain i {
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  z-index: 2;
  width: clamp(20px, 2.4vw, 42px);
  animation:
    coin-rain-fall 2.15s linear both,
    coin-rain-spin .54s linear infinite,
    coin-rainbow-coin-glint .72s linear infinite;
  animation-delay: calc(760ms + var(--i) * 10ms);
}

.coin-lottery.draw-10 .coin-machine-center-glow,
.coin-lottery.draw-100 .coin-machine-center-glow {
  filter: brightness(1.55);
}

.coin-lottery.draw-100 .coin-machine-reel-glow {
  width: min(66vw, 820px);
  opacity: .9;
}

.coin-machine-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.coin-machine-reel {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(0, 0, 0, .18)),
    rgba(0, 0, 0, .38);
  animation: coin-reel-breathe 3.8s ease-in-out infinite;
}

.coin-machine-reel:nth-child(2) { animation-delay: .22s; }
.coin-machine-reel:nth-child(3) { animation-delay: .44s; }

.coin-machine-reel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
  transform: translateX(-120%);
  animation: coin-reel-scan 3.4s ease-in-out infinite;
}

.coin-lottery.is-drawing .coin-machine-reel::before {
  animation: coin-reel-scan .8s linear infinite;
}

.coin-lottery.is-drawing .coin-machine-reel {
  animation-duration: 1.1s;
}

.coin-machine-reel small {
  color: #ffe69b;
  font-size: 13px;
  font-weight: 1000;
}

.coin-machine-reel strong {
  color: #fff;
  font-size: 20px;
}

.coin-machine-reel span {
  color: #c9d7cf;
  font-size: 13px;
  line-height: 1.4;
}

.coin-machine-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.coin-machine-status div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
}

.coin-machine-status small {
  color: #b9c8bf;
  font-size: 12px;
  font-weight: 900;
}

.coin-machine-status strong {
  color: #ffe69b;
  font-size: 21px;
  word-break: break-word;
}

.coin-rate-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coin-rate-token {
  min-width: 92px;
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: #f8f4df;
  background: rgba(0, 0, 0, .28);
  animation: coin-token-glow 3.2s ease-in-out infinite;
}

.coin-rate-token:nth-child(2) { animation-delay: .16s; }
.coin-rate-token:nth-child(3) { animation-delay: .32s; }
.coin-rate-token:nth-child(4) { animation-delay: .48s; }

.coin-rate-token b {
  color: #0b160f;
  padding: 3px 7px;
  border-radius: 6px;
  background: #ffd76a;
  font-size: 12px;
}

.coin-rate-token strong {
  font-size: 14px;
  text-align: right;
}

.coin-draw-btn {
  min-height: 86px;
  justify-items: center;
  border-color: rgba(255, 235, 162, .68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .32), transparent 42%),
    linear-gradient(135deg, #ffe38a, #f7a948 45%, #e35f45);
}

.coin-draw-btn.featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 42%),
    linear-gradient(135deg, #eafebc, #ffd15f 44%, #24bd7d);
}

.coin-prize-board,
.coin-fallback-board {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 205, 82, .35);
  border-radius: 8px;
  background: rgba(3, 12, 10, .7);
}

.coin-prize-board-head strong {
  color: #fff7d1;
  font-size: 18px;
}

.coin-prize-board.visual {
  background:
    linear-gradient(135deg, rgba(3, 12, 10, .86), rgba(40, 20, 8, .48)),
    rgba(3, 12, 10, .72);
}

.coin-prize-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
}

.coin-prize-showcase-card {
  position: relative;
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 12px 8px 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 221, 122, .16), transparent 42%),
    rgba(0, 0, 0, .24);
  animation: coin-prize-idle 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -130ms);
}

.coin-prize-showcase-card .coin-visual-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.coin-prize-showcase-card span {
  position: absolute;
  left: 8px;
  bottom: 6px;
  color: #ffe69b;
  font-size: 12px;
  font-weight: 1000;
}

.coin-prize-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.coin-prize-lane {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .2);
}

.coin-prize-lane header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff2bd;
}

.coin-prize-lane header b {
  font-size: 18px;
}

.coin-prize-lane header span {
  color: #ffe69b;
  font-weight: 1000;
}

.coin-prize-lane > div {
  display: grid;
  gap: 8px;
}

.coin-prize-lane article,
.coin-fallback-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.coin-prize-lane article strong,
.coin-fallback-row b {
  color: #f8f4df;
}

.coin-prize-lane article small,
.coin-fallback-row small {
  color: #bfcfc6;
  line-height: 1.45;
}

.coin-prize-lane article em {
  width: max-content;
  color: #0d160e;
  padding: 3px 7px;
  border-radius: 999px;
  background: #7dffbd;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.coin-fallback-row {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
}

.coin-fallback-row > span {
  color: #231500;
  padding: 7px 10px;
  border-radius: 8px;
  background: #ffe28a;
  text-align: center;
  font-weight: 1000;
}

@keyframes coin-reel-scan {
  to { transform: translateX(120%); }
}

@keyframes coin-reel-roll {
  from { transform: translateY(0); }
  to { transform: translateY(-462px); }
}

@keyframes coin-core-pulse {
  0%, 100% { transform: scale(.96); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.22); }
}

@keyframes coin-orbit {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes coin-particle-float {
  0%, 100% { transform: translateY(0) scale(.82); opacity: .18; }
  45% { transform: translateY(-26px) scale(1.1); opacity: .72; }
}

@keyframes coin-prize-idle {
  0%, 100% { transform: translateY(0); border-color: rgba(255, 255, 255, .12); }
  50% { transform: translateY(-3px); border-color: rgba(255, 221, 122, .34); }
}

@keyframes coin-image-core {
  0%, 100% { opacity: .62; transform: translate(-50%, -50%) scale(.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes coin-image-reel-light {
  0%, 100% { opacity: .34; transform: translate(-50%, -50%) scaleX(.86); }
  50% { opacity: .86; transform: translate(-50%, -50%) scaleX(1.06); }
}

@keyframes coin-machine-draw-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

@keyframes coin-overlay-reel-spin {
  from {
    transform: translate(-50%, -50%) perspective(180px) rotateY(0deg) rotateZ(0deg) scale(1);
    filter: brightness(1);
  }
  24% {
    transform: translate(-50%, -50%) perspective(180px) rotateY(78deg) rotateZ(88deg) scaleX(.46) scale(1.05);
    filter: brightness(1.5);
  }
  50% {
    transform: translate(-50%, -50%) perspective(180px) rotateY(180deg) rotateZ(180deg) scale(1.08);
    filter: brightness(1.32);
  }
  76% {
    transform: translate(-50%, -50%) perspective(180px) rotateY(282deg) rotateZ(272deg) scaleX(.46) scale(1.05);
    filter: brightness(1.52);
  }
  to {
    transform: translate(-50%, -50%) perspective(180px) rotateY(360deg) rotateZ(360deg) scale(1);
    filter: brightness(1);
  }
}

@keyframes coin-tray-glow {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.82); }
  22% { opacity: .95; transform: translate(-50%, -50%) scale(1.08); }
  68% { opacity: .8; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}

@keyframes coin-tray-spin-piece {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) perspective(220px) rotateY(0deg) rotateZ(var(--rot)) scale(.68);
    filter: brightness(.9);
  }
  18% {
    opacity: 1;
    transform: translate3d(0, 0, 0) perspective(220px) rotateY(96deg) rotateZ(var(--rot)) scaleX(.5) scale(1.04);
    filter: brightness(1.32);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -12px, 0) perspective(220px) rotateY(276deg) rotateZ(var(--rot-rain)) scale(1.08);
    filter: brightness(1.45);
  }
  100% {
    opacity: .18;
    transform: translate3d(0, -4px, 0) perspective(220px) rotateY(360deg) rotateZ(var(--rot-rain)) scale(.88);
    filter: brightness(1.05);
  }
}

@keyframes coin-tray-burst-piece {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) perspective(220px) rotateY(0deg) rotateZ(var(--rot)) scale(.25);
  }
  18% {
    opacity: 1;
    transform: translate3d(0, -10px, 0) perspective(220px) rotateY(84deg) rotateZ(var(--rot)) scaleX(.56) scale(1.08);
  }
  72% {
    opacity: 1;
    transform: translate3d(var(--out-x), var(--out-y), 0) perspective(220px) rotateY(280deg) rotateZ(var(--rot-rain)) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--out-x-end), var(--out-y-end), 0) perspective(220px) rotateY(360deg) rotateZ(var(--rot-rain)) scale(.78);
  }
}

@keyframes coin-rainbow-coin-glint {
  0%, 100% {
    filter: brightness(.98) saturate(1.08) hue-rotate(0deg);
  }
  50% {
    filter: brightness(1.42) saturate(1.35) hue-rotate(38deg);
  }
}

@keyframes coin-single-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, 90px) scale(.26) rotate(0deg);
    filter: brightness(1);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, 6px) scale(1.16) rotate(120deg);
    filter: brightness(1.42);
  }
  64% {
    opacity: 1;
    transform: translate(-50%, -118px) scale(1.02) rotate(270deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -168px) scale(.72) rotate(390deg);
    filter: brightness(1.18);
  }
}

@keyframes coin-pile-pop {
  0% {
    opacity: 0;
    transform: translate3d(var(--from-x), 72px, 0) scale(.22) rotate(0deg);
  }
  28% {
    opacity: 1;
    transform: translate3d(0, -22px, 0) scale(1.12) rotate(var(--rot));
  }
  68% {
    opacity: 1;
    transform: translate3d(0, 12px, 0) scale(1) rotate(var(--rot-mid));
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 38px, 0) scale(.92) rotate(var(--rot-end));
  }
}

@keyframes coin-rain-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20vh, 0) perspective(240px) rotateY(0deg) rotateZ(var(--rot)) scale(.72);
  }
  10% {
    opacity: 1;
  }
  46% {
    transform: translate3d(var(--drift-mid), 48vh, 0) perspective(240px) rotateY(184deg) rotateZ(var(--rot-mid)) scaleX(.54) scale(1.06);
  }
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 118vh, 0) perspective(240px) rotateY(360deg) rotateZ(var(--rot-rain)) scale(1.04);
  }
}

@keyframes coin-rain-stage-flash {
  0% { opacity: 0; transform: translateX(-24%) skewX(-10deg); }
  18% { opacity: .95; }
  54% { opacity: .55; }
  100% { opacity: 0; transform: translateX(28%) skewX(-10deg); }
}

@keyframes coin-rain-spin {
  from { filter: brightness(.92) saturate(1.05); }
  50% { filter: brightness(1.38) saturate(1.22); }
  to { filter: brightness(.92) saturate(1.05); }
}

@keyframes coin-hero-scan {
  0%, 18% { transform: translateX(-120%); opacity: 0; }
  28% { opacity: .9; }
  52% { transform: translateX(120%); opacity: 0; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes coin-panel-lines {
  from { background-position-y: 0; }
  to { background-position-y: 96px; }
}

@keyframes coin-live-badge {
  0%, 100% { box-shadow: 0 0 0 rgba(98, 241, 173, 0); filter: brightness(1); }
  50% { box-shadow: 0 0 22px rgba(98, 241, 173, .42); filter: brightness(1.12); }
}

@keyframes coin-reel-breathe {
  0%, 100% { border-color: rgba(255, 255, 255, .15); box-shadow: inset 0 0 0 rgba(255, 220, 126, 0); }
  50% { border-color: rgba(255, 220, 126, .34); box-shadow: inset 0 0 24px rgba(255, 220, 126, .08); }
}

@keyframes coin-lucky-flow {
  from { background-position-x: 0; }
  to { background-position-x: 220%; }
}

@keyframes coin-token-glow {
  0%, 100% { border-color: rgba(255, 255, 255, .14); }
  50% { border-color: rgba(255, 218, 112, .42); }
}

@keyframes coin-button-shine {
  0%, 38% { transform: translateX(-70%) rotate(10deg); opacity: 0; }
  50% { opacity: 1; }
  68%, 100% { transform: translateX(70%) rotate(10deg); opacity: 0; }
}

.lottery-sss-coin-burst {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.lottery-sss-coin-burst span {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: clamp(24px, 3.45vw, 54px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(88deg, rgba(70, 20, 78, .82) 0 8%, transparent 11% 89%, rgba(70, 20, 78, .82) 92% 100%),
    radial-gradient(circle at 30% 24%, rgba(255, 255, 245, .98), rgba(255, 226, 247, .72) 16%, transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(255, 238, 129, .98) 0 25%, transparent 26%),
    conic-gradient(from var(--rot), #fff48a, #ff7ae8, #9f7aff, #63e8ff, #fff48a);
  box-shadow:
    inset 0 0 0 3px rgba(255, 252, 195, .58),
    inset 0 0 0 9px rgba(255, 90, 220, .16),
    inset 9px 0 12px rgba(255, 235, 250, .2),
    inset -9px 0 12px rgba(59, 15, 70, .42),
    0 0 20px rgba(255, 229, 90, .82),
    0 0 38px rgba(255, 92, 223, .52),
    0 0 54px rgba(108, 232, 255, .34);
  animation:
    lottery-sss-coin-burst 1.42s cubic-bezier(.16, .76, .26, 1) both,
    coin-rainbow-coin-glint .58s linear infinite;
  animation-delay: calc(var(--i) * 12ms);
}

.lottery-sss-coin-burst span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(255, 247, 163, .86);
  clip-path: polygon(50% 0, 62% 34%, 100% 38%, 70% 58%, 80% 100%, 50% 76%, 20% 100%, 30% 58%, 0 38%, 38% 34%);
}

.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;
  z-index: 2;
  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-backdrop.has-sss::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 226, 85, .38), transparent 34%),
    radial-gradient(circle at 38% 32%, rgba(255, 92, 223, .22), transparent 24%),
    radial-gradient(circle at 64% 30%, rgba(108, 232, 255, .2), transparent 24%);
  animation: lottery-sss-backdrop-pulse 1.2s ease-in-out infinite;
  pointer-events: none;
}

.lottery-result-backdrop.has-sss::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  background:
    conic-gradient(from 0deg, transparent 0 8%, rgba(255, 238, 132, .18) 9% 11%, transparent 12% 22%, rgba(255, 92, 223, .15) 23% 25%, transparent 26% 38%, rgba(108, 232, 255, .14) 39% 41%, transparent 42% 100%);
  mix-blend-mode: screen;
  opacity: .78;
  animation: lottery-sss-ray-spin 7s linear infinite;
  pointer-events: none;
}

.lottery-result-backdrop.coin-result {
  background:
    linear-gradient(135deg, rgba(7, 24, 18, .78), rgba(70, 29, 8, .72)),
    rgba(0, 0, 0, .68);
}

.lottery-result-panel.coin-result {
  border: 1px solid rgba(255, 230, 145, .78);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(8, 21, 17, .97), rgba(56, 30, 11, .96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 34px);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, .74),
    inset 0 0 46px rgba(36, 193, 125, .09);
}

.lottery-result-panel.coin-result .lottery-win-banner {
  border-width: 1px;
  border-radius: 8px;
  color: #fff8de;
  background:
    linear-gradient(135deg, #214e39, #ffd15f 48%, #9b3b26);
  box-shadow:
    0 8px 0 rgba(0, 0, 0, .28),
    0 0 34px rgba(255, 207, 75, .34);
}

.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-sss-coin-burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) perspective(240px) rotateY(0deg) rotateZ(var(--rot)) scale(.24);
  }
  16% {
    opacity: 1;
    transform: translate3d(0, -8px, 0) perspective(240px) rotateY(96deg) rotateZ(var(--rot)) scaleX(.54) scale(1.12);
  }
  44% {
    opacity: 1;
    transform: translate3d(var(--out-x-mid), var(--out-y-mid), 0) perspective(240px) rotateY(210deg) rotateZ(var(--rot-end)) scale(1.16);
  }
  74% {
    opacity: 1;
    transform: translate3d(var(--out-x), var(--out-y), 0) perspective(240px) rotateY(318deg) rotateZ(var(--rot-end)) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--out-x-end), var(--out-y-end), 0) perspective(240px) rotateY(420deg) rotateZ(var(--rot-end)) scale(.72);
  }
}

@keyframes lottery-sss-backdrop-pulse {
  0%, 100% { opacity: .72; filter: saturate(1); }
  50% { opacity: 1; filter: saturate(1.35); }
}

@keyframes lottery-sss-ray-spin {
  to { transform: rotate(360deg); }
}

@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,
  .coin-lottery-hero,
  .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;
  }

  .coin-lottery-hero {
    min-height: 0;
    padding: 18px;
  }

  .coin-lottery-vault {
    min-height: 280px;
  }

  .coin-vault-ring {
    width: min(260px, 78vw);
  }

  .coin-ledger-grid,
  .coin-rate-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coin-lottery-command h2 {
    font-size: 30px;
  }

  .lottery-copy h2 {
    font-size: 30px;
  }

  .lottery-actions {
    display: grid;
  }

  .lottery-draw-btn {
    width: 100%;
  }

  .coin-lottery-actions,
  .coin-featured-prizes,
  .coin-prize-grid {
    grid-template-columns: 1fr;
  }

  .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%;
  }
}

@media (max-width: 1080px) {
  .coin-machine-reels,
  .coin-prize-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coin-machine-status,
  .coin-info-summary,
  .coin-info-costs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coin-machine-playbar {
    grid-template-columns: 1fr;
  }

  .coin-machine-hud {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 10px;
    grid-template-columns: 1fr;
  }

  .coin-machine-hud .coin-machine-status {
    grid-column: 1;
  }
}

@media (max-width: 780px) {
  .coin-lottery .coin-lottery-hero {
    padding: 12px;
  }

  .coin-lottery-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .coin-machine-shell {
    min-height: 0;
    padding: 14px;
  }

  .coin-machine-shell.image-led {
    padding: 0;
  }

  .coin-machine-stage {
    min-height: min(86vw, 520px);
  }

  .coin-machine-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .coin-machine-topbar > div {
    padding: 10px;
  }

  .coin-machine-topbar strong {
    max-width: 58vw;
    font-size: 20px;
  }

  .coin-info-open {
    min-height: 40px;
    padding: 0 12px;
  }

  .coin-machine-playbar .coin-lottery-actions,
  .coin-info-summary,
  .coin-info-costs {
    grid-template-columns: 1fr;
  }

  .coin-info-sheet {
    padding: 12px;
  }

  .coin-machine-center-glow {
    width: 72px;
  }

  .coin-machine-reel-glow {
    width: 190px;
    height: 58px;
  }

  .coin-machine-title h2 {
    font-size: 30px;
  }

  .coin-machine-reels,
  .coin-machine-status,
  .coin-prize-lanes {
    grid-template-columns: 1fr;
  }

  .coin-rate-token {
    flex: 1 1 128px;
  }

  .coin-fallback-row {
    grid-template-columns: 1fr;
  }
}
