/* Lottery — premium indigo commerce */
.lottery-hero {
  padding: 18px 16px;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(96,121,255,.12) 0%, rgba(255,255,255,.95) 50%, #fff 100%);
  border: 1px solid rgba(96,121,255,.12);
}
.expect-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}
.expect-item .label { font-size: 11px; color: var(--muted); font-weight: 600; }
.expect-item .value { font-size: 17px; color: var(--text); font-weight: 800; letter-spacing: -.02em; }
.period-block { min-width: 132px; }
.period-badge {
  margin-top: 6px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(96,121,255,.28);
}
.period-prefix {
  font-size: 11px;
  font-weight: 600;
  opacity: .85;
  letter-spacing: .04em;
}
.period-code {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.period-next-block { min-width: 110px; }
.period-next {
  margin-top: 8px;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(96,121,255,.45);
  color: var(--primary-deep);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.countdown {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.countdown span {
  min-width: 38px;
  padding: 7px 5px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #eef2ff);
  color: var(--primary-deep);
  border: 1px solid rgba(96,121,255,.18);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
}
.countdown em { font-style: normal; color: var(--muted); font-weight: 700; }

.play-panel { padding: 14px; }
.play-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.play-btn {
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: .15s ease;
}
.play-btn .play-ico {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto 6px;
  background: #f3f5fb;
}
.play-btn strong { display: block; font-size: 15px; margin-bottom: 2px; font-weight: 800; }
.play-btn small { color: var(--muted); font-size: 11px; }
.play-btn.on {
  border-color: transparent;
  background: linear-gradient(160deg, #eef2ff, #fff);
  box-shadow: 0 0 0 2px rgba(96,121,255,.45), 0 8px 18px rgba(96,121,255,.12);
}

.order-ticker {
  height: 176px;
  overflow: hidden;
  margin: 4px 14px 14px;
  position: relative;
}
.order-ticker-track { will-change: transform; }
.order-ticker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  box-sizing: border-box;
}
.order-ticker-item .ot-user {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--primary-deep);
  min-width: 72px;
}
.order-ticker-item .ot-prod {
  flex: 1;
  text-align: right;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bet-amount-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.bet-currency {
  padding: 0 4px 0 14px;
  font-weight: 800;
  color: var(--primary);
  font-size: 15px;
}
.bet-amount-input {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  padding: 12px 14px 12px 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  font-variant-numeric: tabular-nums;
}
.bet-amount-input::-webkit-outer-spin-button,
.bet-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bet-amount-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.bet-amount-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .lottery-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 14px;
    align-items: start;
  }
  .play-grid { grid-template-columns: repeat(4, 1fr); }
}
