* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #14101a;
  color: #f5e6ee;
  min-height: 100vh;
}
.hidden { display: none !important; }

/* 年龄门 */
.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, #2a1b2e 0%, #14101a 70%);
}
.gate-card {
  background: #1e1626;
  border: 1px solid #3d2a44;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  max-width: 340px;
  width: 100%;
}
.gate-moon { font-size: 48px; margin-bottom: 12px; }
.gate-card h1 { color: #ff8fb3; margin-bottom: 10px; }
.gate-sub { color: #b9a3b8; font-size: 14px; line-height: 1.8; margin-bottom: 18px; }
.gate-card input[type="date"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #3d2a44;
  background: #14101a;
  color: #f5e6ee;
  margin-bottom: 12px;
}
.gate-check { display: block; font-size: 14px; margin-bottom: 16px; color: #b9a3b8; }
.gate-card button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #ff6b9d;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.gate-card button:hover { background: #ff87b0; }
.gate-err { color: #ff6b6b; font-size: 13px; margin-top: 10px; min-height: 18px; }

/* 主应用 */
#app { max-width: 560px; margin: 0 auto; padding: 20px 14px 40px; }
header { text-align: center; margin-bottom: 16px; }
header h1 { color: #ff8fb3; margin-bottom: 6px; }
.desc { color: #b9a3b8; font-size: 13px; margin-bottom: 8px; }
.stats { font-size: 14px; color: #f5e6ee; }
.stats b { color: #ff8fb3; font-size: 18px; }

.board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.cell {
  aspect-ratio: 1;
  background: #1e1626;
  border: 1px solid #3d2a44;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  padding: 6px;
  cursor: pointer;
  user-select: none;
  transition: all .15s;
  color: #e8d5e2;
}
.cell:hover { border-color: #ff6b9d; }
.cell.done {
  background: #ff6b9d;
  border-color: #ff6b9d;
  color: #fff;
  text-decoration: line-through;
}
.cell.free {
  background: #2a2136;
  border-color: #ff8fb3;
  color: #ff8fb3;
  cursor: default;
}
.cell.free.done { text-decoration: none; }

.actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.actions button {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #3d2a44;
  background: #1e1626;
  color: #f5e6ee;
  cursor: pointer;
  font-size: 14px;
}
.actions button:hover { border-color: #ff6b9d; }
footer { text-align: center; color: #6f5f6e; font-size: 12px; }

/* 奖励弹窗 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}
.modal-card {
  background: #1e1626;
  border: 1px solid #ff6b9d;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  max-width: 320px;
  width: 100%;
}
.modal-big { font-size: 28px; margin-bottom: 12px; }
.modal-card p { color: #e8d5e2; line-height: 1.8; margin-bottom: 18px; }
.modal-card button {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: #ff6b9d;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
