:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.8);
  --gold: #d4b431;
  --green: #43ab78;
  --blue: #2a9ce4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: transparent;
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
}

body {
  overflow: hidden;
}

.overlay {
  width: 100vw;
  height: 100vh;
  padding: 18px 14px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.pattern-list {
  width: min(100%, 1010px);
  display: grid;
  gap: 12px;
}

.lot-card {
  min-height: 84px;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 6px;
  border-radius: 20px;
  background: linear-gradient(90deg, #202022 0%, #2b4159 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.lot-card--auction {
  grid-template-columns: 78px 1.5fr 1.5fr 0.8fr 0.8fr;
}

.lot-card--winner {
  grid-template-columns: 78px 1.7fr 1.9fr 0.9fr;
  background: linear-gradient(90deg, #9956b5 0%, #7f48a7 100%);
}

.lot-card--winner .lot-card__number {
  background: #7f0fae;
}

.lot-card__cell {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lot-card__cell--title,
.lot-card__cell--leader {
  justify-content: flex-start;
}

.lot-card__number {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
}

.lot-card__text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
}

.lot-card__leader {
  color: var(--green);
}

.lot-card__leader--empty {
  color: rgba(255, 255, 255, 0.48);
  font-style: italic;
}

.lot-card--winner .lot-card__leader {
  color: var(--text);
}

.lot-card__price {
  color: var(--gold);
  font-weight: 800;
}

.lot-card__timer--idle {
  color: rgba(255, 255, 255, 0.48);
  font-style: italic;
}

.lot-card__timer--alert {
  padding: 4px 10px;
  border-radius: 999px;
  background: #d97a17;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(217, 122, 23, 0.35);
}

.winner-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
