:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  padding: 0 1rem 3rem;
  background: #0f172a;
  color: #f1f5f9;
}

header {
  padding: 2rem 0 1rem;
  text-align: center;
}

header h1 {
  margin: 0 0 0.5rem;
}

nav a {
  color: #38bdf8;
}

main {
  max-width: 720px;
  margin: 0 auto;
}

.photo-wrap {
  position: relative;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
}

.photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.marker {
  position: absolute;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid #f43f5e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.num-marker {
  position: absolute;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f43f5e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

input {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: inherit;
  font-size: 1rem;
}

button {
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

button:disabled {
  background: #475569;
  color: #94a3b8;
  cursor: not-allowed;
}

#guess-status {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

.result {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  background: #1e293b;
  text-align: center;
}

.hint {
  color: #94a3b8;
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

#leaderboard-table tbody tr {
  cursor: pointer;
}

#leaderboard-table tbody tr:hover {
  background: #1e293b;
}

th, td {
  padding: 0.6rem;
  text-align: left;
  border-bottom: 1px solid #334155;
}
