* {
  box-sizing: border-box;
}

/* ===== ?? ===== */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #f0f4ff, #f8f8f8);
  padding: 24px;
  margin: 0;
}

h1, h2 {
  margin-top: 0;
}

/* ===== ?????????? ===== */

.builder {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 720px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.builder label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
}

.builder input {
  width: 100%;
  max-width: 360px;
  padding: 8px 10px;
  margin-top: 4px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ???? */
#itemInputs input {
  display: block;
  width: 100%;
  max-width: 360px;
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ===== ??? ===== */

button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #4f6df5;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  margin: 8px 8px 8px 0;
}

button:hover {
  background: #3c55d4;
}

/* =========================
   ??????????????
========================= */

#sheet {
  width: 720px;
  background: #fffacd; /* ???? */
  padding: 16px;
  margin: 0;
}

/* ???? */
#sheetTitle {
  font-size: 32px;
  font-weight: 900;
  color: #d90000;
  text-align: center;
  margin-bottom: 12px;
}

/* ?????? */
#stampRally {
  display: grid;
  gap: 0;
  border: 2px solid #000;
}

/* ?? */
.stamp {
  aspect-ratio: auto;      /* ?????? */
  height: 64px;            /* ???? */
  border: 1px solid #000;
  background: transparent;

  display: flex;
  align-items: flex-start; /* ??? */
  justify-content: flex-start;
  padding: 6px;
}

/* ????? */
.stamp span {
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

/* ???? */
#sheetFooter {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
}
