/* 预存福利 · 老板端 / 首页子页 */
.boss-recharge-page {
  background:
    radial-gradient(900px 380px at 10% -8%, rgba(251,207,232,.35), transparent 55%),
    radial-gradient(700px 320px at 95% 0%, rgba(212,255,0,.18), transparent 50%),
    linear-gradient(180deg, #FFF7ED 0%, #F8FAFC 42%, #EEF2FF 100%);
}
.boss-recharge-page .boss-head {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,23,42,.05);
}
.dep-page { padding: 0 16px 96px; max-width: 560px; margin: 0 auto; }
.dep-hero {
  position: relative; overflow: hidden;
  margin: 4px 0 16px; padding: 22px 18px 18px;
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.65) 0%, transparent 58%),
    linear-gradient(145deg, #FDF2F8 0%, #FCE7F3 38%, #FBCFE8 100%);
  border: 1px solid rgba(190,24,93,.12);
  box-shadow: 0 12px 32px rgba(190,24,93,.1);
}
.dep-hero::after {
  content: "💰"; position: absolute; right: 14px; top: 12px;
  font-size: 42px; opacity: .22; pointer-events: none;
}
.dep-hero-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 900; letter-spacing: .04em;
  color: #9D174D; background: rgba(255,255,255,.72);
  border: 1px solid rgba(190,24,93,.12); padding: 4px 10px;
  border-radius: 999px; margin-bottom: 10px;
}
.dep-hero-label { font-size: 13px; font-weight: 800; color: #831843; opacity: .85; }
.dep-hero-amt {
  margin-top: 6px; font-size: clamp(34px, 8vw, 42px); font-weight: 900;
  letter-spacing: -.03em; line-height: 1.05; color: #111;
}
.dep-hero-amt em { font-style: normal; font-size: .55em; font-weight: 900; color: #BE185D; margin-right: 2px; }
.dep-hero-sub { margin-top: 8px; font-size: 12px; font-weight: 700; line-height: 1.55; color: #9D174D; opacity: .88; }

.dep-section { margin-bottom: 14px; }
.dep-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 12px; padding: 0 2px;
}
.dep-section-head h3 { margin: 0; font-size: 16px; font-weight: 900; color: #0F172A; }
.dep-section-head span { font-size: 11px; font-weight: 800; color: #94A3B8; }

.dep-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.dep-card {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  padding: 16px 14px 14px; border-radius: 18px; text-align: left;
  background: rgba(255,255,255,.92);
  border: 1.5px solid rgba(15,23,42,.08);
  box-shadow: 0 4px 14px rgba(15,23,42,.04);
  cursor: pointer; font-family: inherit; color: inherit;
  appearance: none; -webkit-appearance: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dep-card:active { transform: scale(.98); }
.dep-card.on {
  border-color: #BE185D;
  background: linear-gradient(180deg, #FFF1F2 0%, #FFF 100%);
  box-shadow: 0 0 0 1px #BE185D inset, 0 10px 24px rgba(190,24,93,.14);
}
.dep-card.hot::before {
  content: "推荐"; position: absolute; top: 0; right: 0;
  font-size: 10px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #F43F5E, #BE185D);
  border-radius: 0 16px 0 12px; padding: 3px 8px;
}
.dep-card-pay { font-size: 24px; font-weight: 900; color: #111; line-height: 1.1; }
.dep-card-pay small { font-size: 14px; font-weight: 900; color: #BE185D; }
.dep-card-bonus {
  margin-top: 8px; display: inline-flex; align-items: center; align-self: flex-start;
  font-size: 11px; font-weight: 900; padding: 4px 8px; border-radius: 999px;
  background: #FFF1F2; color: #E11D48;
}
.dep-card-bonus.none { background: #F1F5F9; color: #64748B; }
.dep-card-got {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(15,23,42,.08);
  font-size: 12px; font-weight: 800; color: #64748B;
}
.dep-card-got strong { color: #0F766E; font-weight: 900; }

/* 自定义金额：档位网格下方通栏大卡 */
.dep-custom-pack {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 10px;
  cursor: text;
  gap: 12px;
  padding: 16px 16px 14px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.75) 0%, transparent 55%),
    linear-gradient(145deg, #FFF7ED 0%, #FDF2F8 48%, #FCE7F3 100%);
  border-color: rgba(190,24,93,.18);
  box-shadow: 0 8px 22px rgba(190,24,93,.08);
}
.dep-custom-pack.on {
  border-color: #BE185D;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.8) 0%, transparent 55%),
    linear-gradient(145deg, #FFF1F2 0%, #FCE7F3 55%, #FBCFE8 100%);
  box-shadow: 0 0 0 1px #BE185D inset, 0 12px 28px rgba(190,24,93,.16);
}
.dep-custom-label {
  font-size: 13px; font-weight: 900; color: #9D174D;
  letter-spacing: .02em;
}
.dep-custom-field {
  display: flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1.5px solid rgba(190,24,93,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.dep-custom-pack.on .dep-custom-field {
  border-color: rgba(190,24,93,.35);
  box-shadow: 0 0 0 3px rgba(190,24,93,.08);
}
.dep-custom-yen {
  flex: 0 0 auto;
  font-size: 26px; font-weight: 900; color: #BE185D; line-height: 1;
}
.dep-custom-pack .dep-custom-input {
  flex: 1; min-width: 0; width: 100%;
  border: 0; outline: none; background: transparent;
  font-size: 28px; font-weight: 900; letter-spacing: -.03em;
  color: #111; font-family: inherit; line-height: 1.1;
  padding: 0; -moz-appearance: textfield;
}
.dep-custom-pack .dep-custom-input::-webkit-outer-spin-button,
.dep-custom-pack .dep-custom-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dep-custom-pack .dep-custom-input::placeholder {
  font-size: 16px; font-weight: 800; color: #CBD5E1; letter-spacing: 0;
}
.dep-custom-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  padding-top: 2px;
  border-top: 1px dashed rgba(190,24,93,.18);
}
.dep-custom-meta .dep-card-bonus { margin-top: 0; }
.dep-custom-meta .dep-card-got {
  margin-top: 0; padding-top: 0; border-top: 0;
  margin-left: auto;
}

.dep-summary {
  margin: 14px 0; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,.88); border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 4px 16px rgba(15,23,42,.04);
}
.dep-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; font-size: 13px; font-weight: 800; color: #64748B;
}
.dep-summary-row + .dep-summary-row { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(15,23,42,.05); }
.dep-summary-row.total { font-size: 15px; color: #111; }
.dep-summary-row.total b { font-size: 20px; font-weight: 900; color: #BE185D; }

.dep-actions { display: grid; gap: 10px; margin-top: 4px; }
.dep-actions .boss-btn { margin-top: 0; }
.dep-actions .boss-btn.primary {
  background: linear-gradient(135deg, #BE185D, #E11D48);
  color: #fff; box-shadow: 0 10px 24px rgba(225,29,72,.22);
}
.dep-actions .boss-btn.outline { margin-top: 0; }

.dep-rules {
  margin-top: 16px; border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.78); border: 1px solid rgba(15,23,42,.06);
}
.dep-rules summary {
  cursor: pointer; list-style: none; padding: 14px 16px;
  font-size: 14px; font-weight: 900; color: #0F172A;
  display: flex; align-items: center; justify-content: space-between;
}
.dep-rules summary::-webkit-details-marker { display: none; }
.dep-rules summary::after { content: "›"; font-size: 18px; color: #94A3B8; transform: rotate(90deg); transition: transform .2s; }
.dep-rules[open] summary::after { transform: rotate(-90deg); }
.dep-rules .prepay-notes { margin: 0; padding: 0 16px 14px; }
.dep-rules .prepay-notes li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; line-height: 1.6; color: #475569; font-weight: 600;
  padding: 8px 0; border-bottom: 1px solid rgba(15,23,42,.05);
}
.dep-rules .prepay-notes li::before {
  content: "·"; flex: 0 0 auto; color: #BE185D; font-weight: 900; line-height: 1.6;
}
.dep-rules .prepay-notes li:last-child { border-bottom: none; }

/* 首页预存子页复用 */
.prepay-public-page .dep-page { padding-top: 4px; }
.prepay-public-page .dep-actions { margin-top: 16px; }

@media (min-width: 768px) {
  .dep-page { max-width: 640px; padding-bottom: 48px; }
  .dep-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

/* 抽奖页 */
.lottery-page {
  min-height: 100vh;
  color: #0F172A;
  background:
    radial-gradient(900px 420px at 0% -5%, rgba(254,202,202,.28), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(212,255,0,.2), transparent 52%),
    radial-gradient(600px 300px at 50% 100%, rgba(251,191,36,.12), transparent 60%),
    linear-gradient(180deg, #FFFBEB 0%, #F8FAFC 45%, #EEF2FF 100%);
}
.lot-shell { padding: 0 16px 96px; max-width: 560px; margin: 0 auto; }
.lot-hero {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: 22px 18px 18px; margin-bottom: 14px;
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(255,214,102,.45) 0%, transparent 55%),
    linear-gradient(145deg, #FFF7ED 0%, #FEF3C7 42%, #FDE68A 100%);
  border: 1px solid rgba(217,119,6,.16);
  box-shadow: 0 14px 36px rgba(217,119,6,.12);
}
.lot-hero-deco {
  position: absolute; right: -10px; top: -16px; width: 110px; height: 110px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(212,255,0,.55), transparent 68%);
}
.lot-hero-deco2 {
  position: absolute; left: -20px; bottom: -24px; width: 90px; height: 90px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(251,113,133,.25), transparent 70%);
}
.lot-kicker {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 900; letter-spacing: .04em; color: #92400E;
  background: rgba(255,255,255,.78); border: 1px solid rgba(217,119,6,.14);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 10px;
}
.lot-hero h1 {
  position: relative; z-index: 1; margin: 0 0 8px;
  font-size: clamp(22px, 5.4vw, 30px); font-weight: 900; line-height: 1.22; color: #111;
}
.lot-hero .sub {
  position: relative; z-index: 1; margin: 0 0 16px;
  font-size: 13px; font-weight: 700; line-height: 1.55; color: #B45309;
}
.lot-hero-meta {
  position: relative; z-index: 1;
  display: grid; gap: 8px; margin: 0 0 14px;
}
.lot-meta-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 2px 10px;
  align-items: baseline;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(217,119,6,.12);
}
.lot-meta-row.highlight {
  background: rgba(255,255,255,.9);
  border-color: rgba(217,119,6,.28);
  box-shadow: 0 4px 14px rgba(217,119,6,.1);
}
.lot-meta-lbl {
  grid-row: 1 / span 2; align-self: center;
  font-size: 11px; font-weight: 900; color: #92400E;
  padding: 4px 0;
}
.lot-meta-row strong {
  font-size: 15px; font-weight: 900; color: #111; line-height: 1.25;
  word-break: break-word;
}
.lot-meta-row em {
  font-style: normal; font-size: 11px; font-weight: 700; color: #B45309; opacity: .88;
}
.lot-chips {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.lot-chip {
  min-width: 0;
  background: rgba(255,255,255,.82); border: 1px solid rgba(15,23,42,.06);
  border-radius: 14px; padding: 10px 6px; text-align: center;
}
.lot-chip b {
  display: block; font-size: 13px; font-weight: 900; color: #111; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lot-chip span { display: block; margin-top: 3px; font-size: 10px; font-weight: 800; color: #94A3B8; }

.lot-card {
  background: rgba(255,255,255,.9); border: 1px solid rgba(15,23,42,.07);
  border-radius: 22px; padding: 18px 16px; margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.lot-card h2 {
  margin: 0 0 14px; font-size: 16px; font-weight: 900; color: #0F172A;
  display: flex; align-items: center; gap: 8px;
}
.lot-card h2::before {
  content: ""; width: 4px; height: 16px; border-radius: 4px;
  background: linear-gradient(180deg, #F59E0B, #D4FF00);
}

.lot-me-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.lot-me-name { font-size: 16px; font-weight: 900; line-height: 1.35; }
.lot-me-name small { display: block; margin-top: 3px; font-size: 12px; font-weight: 700; color: #64748B; }
.lot-badge {
  flex: 0 0 auto; padding: 6px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 900; background: #ECFDF5; color: #047857;
}
.lot-badge.warn { background: #FFF7ED; color: #C2410C; }
.lot-badge.bad { background: #FEF2F2; color: #B91C1C; }
.lot-badge.muted { background: #F1F5F9; color: #64748B; }

.lot-progress-wrap {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center;
  margin-bottom: 12px;
}
.lot-ring {
  --pct: 0;
  width: 88px; height: 88px; border-radius: 50%;
  background: conic-gradient(#84CC16 calc(var(--pct) * 1%), #E2E8F0 0);
  display: grid; place-items: center; position: relative;
}
.lot-ring::before {
  content: ""; width: 68px; height: 68px; border-radius: 50%; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.05);
}
.lot-ring-inner {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 18px; font-weight: 900; color: #111; line-height: 1;
}
.lot-ring-inner small { display: block; margin-top: 2px; font-size: 10px; font-weight: 800; color: #94A3B8; }
.lot-progress-meta .now { font-size: 28px; font-weight: 900; letter-spacing: -.02em; color: #111; line-height: 1.1; }
.lot-progress-meta .now em { font-style: normal; font-size: 14px; color: #94A3B8; margin-right: 2px; }
.lot-progress-meta .goal { margin-top: 4px; font-size: 12px; font-weight: 800; color: #64748B; }

.lot-tip { font-size: 12px; line-height: 1.65; color: #64748B; font-weight: 600; margin: 0; }
.lot-tip strong { color: #0F172A; }
.lot-notice{
  border:1px solid rgba(217,119,6,.22)!important;
  background:linear-gradient(180deg,#FFFBEB,#FEF3C7)!important;
}
.lot-notice h2{color:#92400E}
.lot-notice-body{color:#92400E!important;font-size:13px;line-height:1.7}

.lot-prize-win {
  margin-top: 12px; padding: 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(253,224,71,.28), rgba(254,243,199,.65));
  border: 1px solid rgba(217,119,6,.2);
}
.lot-prize-win .lbl { font-size: 12px; font-weight: 800; color: #92400E; margin-bottom: 4px; }
.lot-prize-win .val { font-size: 20px; font-weight: 900; color: #B45309; line-height: 1.3; }

.lot-btn {
  display: block; text-align: center; margin-top: 14px; padding: 14px 16px;
  border-radius: 16px; background: linear-gradient(135deg, #111, #1F2937);
  color: #D4FF00 !important; font-weight: 900; font-size: 15px;
  text-decoration: none !important; box-shadow: 0 10px 22px rgba(15,23,42,.14);
}
.lot-btn.ghost {
  background: #fff; color: #0F172A !important;
  border: 1px solid rgba(15,23,42,.08); box-shadow: none;
}

.lot-prizes { display: grid; gap: 10px; }
.lot-prize-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px;
  border-radius: 16px; background: #F8FAFC; border: 1px solid rgba(15,23,42,.06);
}
.lot-prize-item.jp {
  background: linear-gradient(135deg, rgba(255,241,194,.95), rgba(255,255,255,.92));
  border-color: rgba(245,158,11,.32);
  box-shadow: 0 6px 18px rgba(245,158,11,.1);
}
.lot-prize-item .ico {
  width: 40px; height: 40px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(145deg, #FEF3C7, #FDE68A);
}
.lot-prize-item.jp .ico { background: linear-gradient(145deg, #FECDD3, #FDE68A); }
.lot-prize-item .txt { flex: 1; min-width: 0; }
.lot-prize-item .txt b { display: block; font-size: 14px; font-weight: 900; color: #0F172A; line-height: 1.35; }
.lot-prize-item .txt span { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: #94A3B8; }
.lot-prize-item .tag {
  flex: 0 0 auto; font-size: 10px; font-weight: 900; padding: 4px 8px;
  border-radius: 999px; background: #FEF3C7; color: #B45309;
}
.lot-prize-note {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: #FFF7ED; border: 1px solid rgba(217,119,6,.18);
  color: #9A3412 !important; font-size: 12px; line-height: 1.7;
}
.lot-prize-note strong { color: #9A3412; }
.lot-coupon-notice-card {
  border: 1px solid rgba(217,119,6,.28) !important;
  background: linear-gradient(180deg, #FFFBEB, #FFFFFF) !important;
}
.lot-coupon-notice-card h2 { color: #92400E; }

.lot-result {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 16px; background: #F8FAFC; border: 1px solid rgba(15,23,42,.06);
}
.lot-result.jp { background: rgba(251,191,36,.12); border-color: rgba(217,119,6,.22); }
.lot-result .rank {
  width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 12px; font-weight: 900;
  background: #E2E8F0; color: #475569;
}
.lot-result.jp .rank { background: linear-gradient(135deg, #F59E0B, #FBBF24); color: #fff; }
.lot-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  object-fit: cover; background: #E2E8F0;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(15,23,42,.12);
}
.lot-avatar-fallback {
  display: grid; place-items: center;
  font-size: 13px; font-weight: 900; color: #64748B;
  background: linear-gradient(145deg, #F1F5F9, #E2E8F0);
}
.lot-result .who { flex: 1; min-width: 0; }
.lot-result .who b { display: block; font-size: 13px; font-weight: 900; color: #0F172A; }
.lot-result .who span { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: #94A3B8; }
.lot-result .got { font-size: 13px; font-weight: 900; color: #B45309; text-align: right; }

.lot-rules-wrap details {
  border: 1px solid rgba(15,23,42,.06); border-radius: 14px;
  background: #F8FAFC; margin-bottom: 8px; overflow: hidden;
}
.lot-rules-wrap details:last-child { margin-bottom: 0; }
.lot-rules-wrap summary {
  cursor: pointer; list-style: none; padding: 12px 14px;
  font-size: 13px; font-weight: 900; color: #0F172A;
}
.lot-rules-wrap summary::-webkit-details-marker { display: none; }
.lot-rules-wrap .lot-rule-body {
  padding: 0 14px 12px; font-size: 12px; line-height: 1.75;
  color: #64748B; font-weight: 600; white-space: pre-line;
}
.lot-seed {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(15,23,42,.08);
  font-size: 11px; line-height: 1.6; color: #94A3B8; word-break: break-all;
}
.lot-off { text-align: center; padding: 40px 16px; color: #64748B; font-weight: 700; }
.lot-results-grid { display: grid; gap: 8px; }

.lot-period-nav {
  margin: -4px 0 14px;
}
.lot-period-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.lot-period-chip {
  flex: 0 0 auto; min-width: 132px; max-width: 200px;
  padding: 10px 12px; border-radius: 14px; text-decoration: none !important;
  background: #fff; border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  display: flex; flex-direction: column; gap: 2px;
}
.lot-period-chip em {
  font-style: normal; font-size: 10px; font-weight: 800; color: #94A3B8; letter-spacing: .02em;
}
.lot-period-chip strong {
  font-size: 13px; font-weight: 900; color: #0F172A; line-height: 1.3;
}
.lot-period-chip span {
  font-size: 11px; font-weight: 700; color: #94A3B8;
}
.lot-period-in-card { margin: 0 0 12px; }
.lot-period-in-card .lot-period-scroll { padding-bottom: 4px; }
.lot-history-block h2 { margin-bottom: 12px; }
.lot-rules-foot {
  display: flex; justify-content: center; margin: 8px 0 20px;
}
.lot-rules-foot-btn {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; color: #64748B; font-size: 13px; font-weight: 800;
  box-shadow: 0 2px 10px rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.08);
}
.lot-rules-foot-btn:active { transform: scale(.98); }
.lot-period-chip.on {
  border-color: rgba(245,158,11,.55);
  background: linear-gradient(180deg, #FFFBEB, #FEF3C7);
  box-shadow: 0 4px 14px rgba(245,158,11,.18);
}
.lot-period-chip.on strong { color: #92400E; }
.lot-period-chip.on span { color: #B45309; }
.lot-period-chip.drawn:not(.on) {
  background: #F8FAFC;
}

.lot-rules-link {
  display: inline-flex; align-items: center; margin-top: 10px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.18); color: #fff; font-size: 12px; font-weight: 800;
  cursor: pointer; backdrop-filter: blur(4px);
}
.lot-rules-link:active { transform: scale(.98); }

.lot-past-list { display: grid; gap: 12px; }
.lot-past-item {
  display: block; color: inherit;
  padding: 12px 14px; border-radius: 16px;
  border: 1px solid rgba(15,23,42,.06); background: #F8FAFC;
}
.lot-past-item.on {
  border-color: rgba(245,158,11,.4);
  background: linear-gradient(180deg, #FFFBEB, #F8FAFC);
}
.lot-past-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-bottom: 10px; text-decoration: none !important; color: inherit;
}
.lot-past-head strong { font-size: 14px; font-weight: 900; color: #0F172A; }
.lot-past-head span { font-size: 11px; font-weight: 700; color: #94A3B8; text-align: right; }
.lot-past-winners { display: grid; gap: 6px; }
.lot-past-winner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 12px; background: #fff;
  border: 1px solid rgba(15,23,42,.04);
}
.lot-past-winner.jp { border-color: rgba(245,158,11,.35); background: #FFFBEB; }
.lot-past-winner.mute { opacity: .72; }
.lot-past-who { flex: 1; min-width: 0; }
.lot-past-who b { display: block; font-size: 12px; font-weight: 900; color: #0F172A; }
.lot-past-who .spend { display: block; font-size: 10px; font-weight: 700; color: #94A3B8; }
.lot-past-prize {
  flex: 0 1 auto; max-width: 46%;
  font-size: 11px; font-weight: 800; color: #B45309; text-align: right;
  word-break: break-word;
}
.lot-avatar.sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }

body.lot-modal-open { overflow: hidden; }
.lot-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: end center;
  padding: 0 12px 12px;
}
.lot-modal[hidden] { display: none !important; }
.lot-modal-backdrop {
  position: absolute; inset: 0; background: rgba(15,23,42,.45);
}
.lot-modal-panel {
  position: relative; z-index: 1; width: min(440px, 100%);
  max-height: min(72vh, 560px);
  background: #fff; border-radius: 22px 22px 18px 18px;
  box-shadow: 0 18px 48px rgba(15,23,42,.28);
  display: flex; flex-direction: column; overflow: hidden;
  animation: lotModalUp .22s ease;
}
@keyframes lotModalUp {
  from { transform: translateY(18px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}
.lot-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid rgba(15,23,42,.06);
}
.lot-modal-head h2 { margin: 0; font-size: 16px; font-weight: 900; color: #0F172A; }
.lot-modal-x {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #F1F5F9; color: #64748B; font-size: 20px; line-height: 1;
  cursor: pointer; font-weight: 700;
}
.lot-modal-body {
  padding: 12px 14px 16px; overflow: auto; -webkit-overflow-scrolling: touch;
}
.lot-rules-flat { display: grid; gap: 12px; }
.lot-rule-block {
  padding: 12px 14px; border-radius: 14px;
  background: #F8FAFC; border: 1px solid rgba(15,23,42,.06);
}
.lot-rule-block.lot-rule-highlight {
  background: #FFF7ED; border-color: rgba(217,119,6,.28);
}
.lot-rule-block.lot-rule-highlight h3 { color: #92400E; }
.lot-rule-block h3 {
  margin: 0 0 8px; font-size: 13px; font-weight: 900; color: #0F172A;
}
.lot-rules-flat .lot-rule-body {
  font-size: 12px; line-height: 1.75; color: #64748B; font-weight: 600;
  white-space: pre-line;
}
.lot-rule-highlight .lot-rule-body { color: #9A3412; }

@media (min-width: 768px) {
  .lot-shell { max-width: 980px; padding: 0 24px 48px; }
  .lottery-page .mall-sub-head, .lottery-page .bottom-nav { max-width: 980px; margin-left: auto; margin-right: auto; }
  .lot-hero { padding: 28px 26px 22px; border-radius: 28px; margin-bottom: 18px; }
  .lot-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: center; }
  .lot-hero .sub { margin-bottom: 0; }
  .lot-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; align-items: start; }
  .lot-grid > .lot-card { margin-bottom: 0; }
  .lot-span { grid-column: 1 / -1; }
  .lot-prizes { grid-template-columns: 1fr 1fr; }
  .lot-results-grid { grid-template-columns: 1fr 1fr; }
}
