body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #fbe9e7, #f3e5f5);
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 24px;
  margin-top: 24px;
}

h1, h2, h3 {
  font-weight: 700;
  color: #4e342e;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: #ec407a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .1s, box-shadow .1s, background .2s;
}

.btn:hover {
  background: #d81b60;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #8e24aa;
}

input[type="text"], input[type="password"], select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d7ccc8;
  margin: 6px 0 14px;
  box-sizing: border-box;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #efebe9;
  text-align: left;
}

th {
  background: #fbe9e7;
}

.rank-1 {
  color: #d4af37;
  font-weight: bold;
}

.rank-2 {
  color: #9e9e9e;
  font-weight: bold;
}

.rank-3 {
  color: #795548;
  font-weight: bold;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8bbd0;
  font-size: 13px;
  margin-left: 8px;
}

.hidden {
  display: none;
}

.error {
  color: #e53935;
}

/* Video y Canvas */
#video, #photo-canvas {
  width: 100%;
  border-radius: 16px;
  background: #000;
  max-height: 400px;
  object-fit: cover;
}

.tools {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tools input[type="color"],
.tools input[type="range"] {
  cursor: pointer;
}