:root {
  --pink: #f7c8d8;
  --pink-deep: #d96b93;
  --ink: #33302e;
  --muted: #8a837e;
  --line: #e5ddd8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Sans", sans-serif;
  color: var(--ink);
  background: #fffaf8;
  padding-bottom: 76px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 16px 6px;
}
header h1 { font-size: 20px; margin: 0; }
#whoami { color: var(--muted); font-size: 14px; }
main { padding: 8px 16px 16px; }
h2 { font-size: 16px; margin: 22px 0 8px; }
.error { color: #b3261e; min-height: 1.2em; }
.note { color: var(--muted); font-size: 13px; text-align: center; }

#today-status, #my-total { text-align: center; margin: 8px 0; }
#my-total { font-size: 18px; font-weight: 600; }
#press {
  display: block;
  width: 220px;
  height: 220px;
  margin: 28px auto 12px;
  border: none;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 6px 0 var(--pink-deep);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#press:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--pink-deep); }
#press:disabled { opacity: 0.55; }
#press-result { text-align: center; min-height: 1.5em; font-size: 17px; }

input, select, button { font-size: 16px; }
input, select {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
#register-form { display: flex; gap: 8px; }
#register-form input { flex: 1; }
#claim-list { display: flex; flex-wrap: wrap; gap: 8px; }
#claim-list button { border-radius: 999px; }

.row { display: flex; gap: 18px; align-items: center; margin-bottom: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { border-collapse: collapse; font-size: 13px; white-space: nowrap; }
th, td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 5px 7px; text-align: center; }
th:first-child, td:first-child {
  position: sticky; left: 0; background: #fff; text-align: left; font-weight: 600;
}
td.hit { color: var(--pink-deep); font-weight: 700; }
td.total, th.total { font-weight: 700; background: #fff5f8; }

#settings-form { display: grid; gap: 10px; max-width: 420px; }
#settings-form label { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#settings-form input, #settings-form select { width: 170px; }
.admin-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.admin-row .grow { flex: 1; }
.admin-row button { padding: 5px 10px; font-size: 13px; }
.counted-on { background: var(--pink); border-color: var(--pink-deep); }

#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
#tabbar button {
  flex: 1; border: none; border-radius: 0; background: none;
  padding: 14px 0; font-size: 15px; color: var(--muted);
}
#tabbar button.active { color: var(--ink); font-weight: 700; }
