:root{
  --bg:#ffffff;        /* white background */
  --panel:#f2f2f2;     /* light gray panels */
  --card:#e6e6e6;      /* light gray cards */
  --text:#000000;      /* black text */
  --muted:#333333;     /* dark gray text */
  --ring:#FFD400;      /* bright yellow highlight */
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  text-align:center;
  overflow: hidden;
} 

.topbar{
  display:flex;
  gap:20px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  padding:20px;
}

.titles h1{ margin:0; font-size:40px; }
.titles h2{ margin:6px 0 0; font-size:18px; color:var(--muted); font-weight:normal; }

.legend{
  background: var(--panel);
  padding:12px 16px;
  border-radius:14px;
  text-align:left;
  min-width:220px;
}

.legend-title{ font-weight:bold; margin-bottom:8px; }
.legend-items{ display:grid; gap:6px; color:var(--muted); font-size:14px; }

.grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 260px));
  gap: 18px;
  justify-content: center;
  padding: 20px;
}

.card{
  border:none;
  background: var(--card);
  border-radius:18px;
  padding:14px;
  cursor:pointer;
  transition: transform 0.15s, outline 0.15s, background 0.15s;
}

.card:hover{ transform: translateY(-2px); }

.card img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:14px;
  display:block;
}

.name{
  margin-top:10px;
  font-size:18px;
  font-weight:bold;
}

.active{
  outline: 6px solid #FFD400;
  box-shadow: 0 0 25px #FFD400;
  background: #fff6b3;
}

.tip{
  color: var(--muted);
  margin: 16px 0 24px;
}

