/* style.css — 인연 💝 (모바일 우선) */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #fff7f8;
  color: #333;
}
header {
  background: #fff;
  border-bottom: 1px solid #f3d9de;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
h1 { font-size: 20px; margin: 0 0 8px; }
main { max-width: 480px; margin: 0 auto; padding: 16px; }
h2 { font-size: 17px; margin: 20px 0 8px; }
h3 { font-size: 15px; margin: 0 0 12px; }

nav { display: flex; gap: 8px; }
nav button, .tabs button {
  border: 1px solid #ecc4cc;
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
}
nav button.active, .tabs button.active { background: #ff6b81; border-color: #ff6b81; color: #fff; }

.tabs { display: flex; gap: 8px; margin-bottom: 12px; }

.card {
  background: #fff;
  border: 1px solid #f3d9de;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.notice { background: #fff0f3; border-color: #ffb3c1; }

label { display: block; margin: 10px 0; font-size: 14px; }
label.inline { display: inline-block; margin-right: 12px; }
input, select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid #e5c9cf;
  border-radius: 10px;
  font-size: 14px;
}
label.inline input { display: inline-block; width: auto; }
.kw-row { display: flex; gap: 6px; }
.kw-row input { flex: 1; }

button {
  border: 1px solid #ecc4cc;
  background: #fff;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
}
button.primary, form button[type="submit"] {
  background: #ff6b81;
  border-color: #ff6b81;
  color: #fff;
  font-weight: 600;
}
button:disabled { opacity: 0.45; cursor: default; }

.hint { font-size: 12.5px; color: #99808a; }
.code { font-size: 22px; font-weight: 700; letter-spacing: 2px; margin: 4px 0; }
.kw {
  display: inline-block;
  background: #ffe9ed;
  color: #c2485c;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12.5px;
  margin-right: 4px;
}

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rank-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
.rank-item button { padding: 4px 8px; margin-left: 4px; }

.photo-row { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.match-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }

.hidden { display: none !important; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 100;
}
