:root{
  --ok: #1f8a3b;
  --no: #c62828;
  --border: #c9d1d8;
  --text: #1e2a4c;
  --bg: #ffffff;
}

*{
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
}

.page{
  width: min(950px, 100%);
  padding: 24px 20px 60px;
  text-align: center;
  margin: 0 auto;
}

.page-title{
  margin: 18px 0;
  font-size: 30px;
}

.section{
  margin: 22px 0;
  padding: 18px;
  border: 3px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.section-title{
  margin-bottom: 8px;
  font-size: 24px;
}

.section-note{
  margin-bottom: 14px;
  font-size: 16px;
  opacity: .9;
}

/* ======================
   SHARED TARGET STYLE
====================== */

.target{
  width: 110px;
  height: 110px;
  border-radius: 18px;
  border: 4px solid var(--border);
  background: #fff;
  font-size: 48px;
  font-weight: 800;
  display: grid;
  place-items: center;
  user-select: none;
  cursor: pointer;
}

.target:focus{
  outline: 4px solid #8090a9;
  outline-offset: 2px;
}

/* ======================
   PART 1 & 2 (5 ITEMS)
====================== */

#moveArea,
#clickArea{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 750px;
  margin: 0 auto;
}

/* stars */
.star{
  font-size: 56px;
}

.star.found{
  border-color: var(--ok);
  background: #f2fff5;
}

/* circles */
.circle{
  border-radius: 999px;
}

.circle.clicked{
  border-color: var(--ok);
  background: #f2fff5;
}

/* ======================
   PART 3 (6 ITEMS)
====================== */

#handArea{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 550px;
  margin: 0 auto;
}

.box{
  font-size: 26px;
}

.linkbox{
  text-decoration: none;
  color: var(--text);
}

.plainbox{
  cursor: default;
  opacity: .85;
}

.box.correct{
  border-color: var(--ok);
  background: #f2fff5;
}

.box.wrong{
  border-color: var(--no);
  background: #fff3f3;
}

/* ======================
   STATUS + FEEDBACK
====================== */

.status{
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
}

.feedback{
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
  min-height: 24px;
}