html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  color: #f6edd4;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.stage { position: relative; width: 100%; height: 100%; }

.board {
  position: absolute;
  left: 28px;
  bottom: 22px;
  width: min(340px, 42vw);
  padding: 12px 14px 8px;
  background:
    linear-gradient(180deg, rgba(232, 197, 71, 0.18), transparent 28px),
    #14241c;
  box-shadow:
    inset 0 0 0 1px #8d6b2e,
    inset 0 0 0 5px #102018,
    8px 10px 0 rgba(0, 0, 0, 0.45);
}

.board-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232, 197, 71, 0.45);
}

.coin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff4c2 0 2px, transparent 3px),
    radial-gradient(circle, #e8c547 0 58%, #8d6b2e 60% 100%);
  box-shadow: inset 0 0 0 2px #6e5018, 0 1px 0 #3a2a0c;
}

.board h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f6edd4;
}

.row {
  display: grid;
  grid-template-columns: 22px 32px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-top: 1px solid rgba(246, 237, 212, 0.08);
}

.row.empty { grid-template-columns: 1fr; color: #b7c7bc; }

.rank {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14px;
  text-align: center;
  color: #e8c547;
}

.row img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  background: #0c1812;
  box-shadow: inset 0 0 0 1px #c6a15b;
}

.name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.pts {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #e8c547;
}

.toast {
  position: absolute;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  min-width: 320px;
  max-width: min(520px, 80vw);
  background: #f6edd4;
  color: #24180c;
  box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.5);
  animation: pop 0.28s ease;
}

.toast[hidden] { display: none; }

.stub {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  background: #10b981;
  color: #062016;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  border-right: 2px dashed #24180c;
}

.toast img {
  width: 72px;
  height: 72px;
  margin: 10px 0 10px 12px;
  object-fit: cover;
  background: #d9c79a;
  box-shadow: inset 0 0 0 1px #8d6b2e;
}

.ticket-copy {
  padding: 12px 18px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.toast strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
}

.toast span {
  margin-top: 2px;
  font-weight: 700;
  color: #8a5a12;
}

.sb-note {
  position: absolute;
  left: 16px;
  bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #d1fae5;
  opacity: 0;
}

.sb-note.show { opacity: 1; }

@keyframes pop {
  0% { transform: translateX(-50%) translateY(8px); opacity: 0; }
  100% { transform: translateX(-50%); opacity: 1; }
}
