.round-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(58, 173, 58, 0.24), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(201, 169, 110, 0.16), transparent 28rem),
    var(--bg-primary);
}

.round-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
}

.round-card {
  margin-bottom: 18px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 28px;
  background: rgba(20, 46, 22, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.round-status-card {
  max-width: 560px;
  margin-top: 12vh;
}

.round-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.round-logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.round-logo strong,
.round-eyebrow,
.round-meta strong {
  color: var(--gold);
}

.round-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.round-card h1,
.round-card h2,
.round-card h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.03em;
}

.round-card h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.98;
}

.round-card h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.round-muted {
  color: var(--text-muted);
}

.round-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.round-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.round-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 650;
}

.round-score {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

.round-score-number {
  color: var(--text);
  font-size: clamp(5rem, 16vw, 8rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.09em;
}

.round-to-par {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 900;
}

.round-to-par-over {
  color: #f59e0b;
}

.round-to-par-under {
  color: #4ade80;
}

.round-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.round-stat {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.round-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.round-stat strong {
  color: var(--text);
  font-size: 1.15rem;
}

.round-scorecard-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.round-scorecard-section {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.round-scorecard-section h3 {
  margin-bottom: 12px;
}

.round-scorecard-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  color: var(--text);
  font-weight: 800;
}

.round-scorecard-row + .round-scorecard-row {
  margin-top: 8px;
}

.round-scorecard-row-muted {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.round-scorecard-label {
  min-width: 5.5rem;
}

.round-scorecard-cell {
  display: grid;
  place-items: center;
  min-width: 2.2rem;
  min-height: 2rem;
  text-align: center;
}

.round-scorecard-total {
  min-width: 3rem;
  text-align: right;
}

.round-score-mark {
  display: inline-grid;
  place-items: center;
  min-width: 1.72rem;
  min-height: 1.72rem;
  padding: 0.04rem;
}

.round-score-birdie {
  border: 2px solid #4ade80;
  border-radius: 50%;
}

.round-score-eagle {
  border: 4px double #4ade80;
  border-radius: 50%;
}

.round-score-bogey {
  border: 2px solid #f59e0b;
  border-radius: 5px;
}

.round-score-double {
  border: 4px double #f59e0b;
  border-radius: 6px;
}

.round-download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.round-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.round-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.round-button-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--green-deep);
}

.round-button-secondary {
  border: 1px solid rgba(201, 169, 110, 0.38);
  color: var(--text);
}

@media (max-width: 760px) {
  .round-hero,
  .round-download-card {
    grid-template-columns: 1fr;
  }

  .round-score {
    justify-content: flex-start;
  }

  .round-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .round-stats-grid {
    grid-template-columns: 1fr;
  }

  .round-actions {
    flex-direction: column;
  }
}

/* Download modal */
.round-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.round-modal-overlay.open {
  display: flex;
}
.round-modal {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: roundModalIn 0.2s ease-out;
}
@keyframes roundModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.round-modal h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}
.round-modal p {
  margin: 0 0 20px;
  color: #666;
  font-size: 0.95rem;
}
.round-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
}
.round-modal-close:hover {
  color: #333;
}
.round-modal-qr {
  margin: 0 auto 20px;
  width: 200px;
  height: 200px;
}
.round-modal-qr img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
