* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #1c2430 0%, #2a2440 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
}

#app {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
}
.hero p {
  margin: 0;
  color: #cfd8e3;
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px 14px 18px;
  transition: transform .15s ease, background .15s ease;
}
.card:active {
  transform: scale(.97);
  background: rgba(255,255,255,.1);
}

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.75) contrast(.9);
  transition: filter .25s ease;
}
.thumb.won img {
  filter: none;
}
.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 20px;
  background: rgba(0,0,0,.45);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card h2 {
  margin: 0 0 2px;
  font-size: 17px;
}
.card .role {
  margin: 0 0 8px;
  color: #9aa5b3;
  font-size: 13px;
}
.card .score {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #ffd25c;
}
