/* ── Surf-spil layout ───────────────────────────────────── */

.surf-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px 32px;
  gap: 20px;
  width: 100%;
}

.surf-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#surf-canvas {
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  touch-action: none;
  cursor: pointer;
  max-width: 100%;
}

/* ── Mobile control buttons ─────────────────────────────── */
.surf-mobile-btns {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.surf-btn-left,
.surf-btn-right {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 900;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.surf-btn-left:active,
.surf-btn-right:active {
  background: rgba(255,255,255,0.3);
  transform: scale(0.93);
}

/* ── Highscore panel ────────────────────────────────────── */
.surf-scores-panel {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}

.surf-scores-panel h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-align: center;
  color: var(--text);
}

.surf-scores-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.surf-scores-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  font-size: 0.95rem;
}

.surf-scores-list li:first-child {
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.2);
}

.surf-score-name {
  font-weight: 700;
  color: var(--text);
}

.surf-score-time {
  font-weight: 800;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.surf-no-scores {
  text-align: center;
  color: var(--subtext);
  font-size: 0.9rem;
  padding: 8px;
}

/* ── Hide mobile buttons on desktop ─────────────────────── */
@media (min-width: 600px) {
  .surf-mobile-btns {
    display: none;
  }
}
