/* Player app: phone first. */

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 1rem 6rem;
}

.masthead {
  padding: 1rem;
  text-align: center;
}
.masthead__logo {
  color: var(--text);
  text-decoration: none;
  /* The brand repeats on every page, so it sits below the page title and sections. */
  font-size: 0.75rem;
  text-shadow: 0 0 12px rgb(167 139 250 / 0.7);
}
.masthead__logo span { color: var(--warn); margin-left: 0.5em; }

/* ---------- home ---------- */

.banner {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.banner strong { color: var(--warn); }

.points {
  text-align: center;
  margin: 0.5rem 0 0.25rem;
}
.points__value {
  display: block;
  font-family: var(--pixel);
  font-size: 2.75rem;
  line-height: 1.2;
  color: var(--warn);
  text-shadow: 0 0 18px rgb(250 204 21 / 0.45);
}
.points__label { color: var(--muted); }

.who {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.section-head h2 { margin-bottom: 0.75rem; }

/* ---------- passport stamps ---------- */

.passport {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
}

.stamp {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 9rem;
  height: 100%;
  padding: 0.85rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}
.stamp:hover { border-color: var(--accent); }
.stamp__name { font-weight: 700; line-height: 1.25; }
.stamp__value { font-size: 0.85rem; color: var(--muted); }
.stamp__state { margin-top: auto; font-size: 0.85rem; font-weight: 600; }
.stamp__confirm { position: absolute; top: -0.6rem; right: -0.4rem; }

.stamp--took_part { border-style: solid; border-color: var(--accent); }
.stamp--took_part .stamp__state { color: var(--accent); }
.stamp--won, .stamp--hole_in_one { border-style: solid; border-color: var(--good); background: linear-gradient(160deg, rgb(74 222 128 / 0.14), var(--panel) 60%); }
.stamp--won .stamp__state, .stamp--hole_in_one .stamp__state { color: var(--good); }
.stamp--hole_in_one { border-color: var(--warn); box-shadow: 0 0 16px rgb(250 204 21 / 0.25); }
.stamp--hole_in_one .stamp__state { color: var(--warn); }
.stamp--waiting { border-style: solid; border-color: var(--muted); }
.stamp--waiting .stamp__state { color: var(--muted); }

/* ---------- register ---------- */

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  border: 0;
  padding: 0;
  margin: 1.25rem 0;
}
.choices legend { font-weight: 600; margin-bottom: 0.6rem; padding: 0; }
.choice { position: relative; margin: 0; font-weight: 600; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0.5rem;
  text-align: center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
}
.choice span::before {
  content: '';
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex: none;
  background: var(--squad, transparent);
  border: 2px solid var(--squad, var(--muted));
}
.choice input:checked + span { border-color: var(--squad, var(--accent)); background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--squad, var(--accent)); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- game page ---------- */

.back { display: inline-block; margin-bottom: 0.75rem; min-height: 44px; line-height: 44px; }

.game-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; color: var(--muted); margin-bottom: 1rem; }
.game-meta strong { color: var(--text); }

.status-line { font-weight: 600; margin-bottom: 1rem; }

.claim-list, .confirm-list { list-style: none; padding: 0; margin: 0; }
.claim-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
}
.confirm-list li {
  padding: 0.85rem; margin-bottom: 0.75rem;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel-2);
}
.confirm-list .claim-text { margin-bottom: 0.65rem; }
.hio { color: var(--warn); font-weight: 700; }

.footer-actions { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; justify-content: center; margin-top: 2rem; }
