@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; justify-content: center; align-items: center;
  background: repeating-linear-gradient(45deg, #b3122b 0 24px, #8f0d21 24px 48px);
  font-family: 'Pretendard', -apple-system, 'Malgun Gothic', sans-serif; color: #222; padding: 16px;
}
.card {
  position: relative; z-index: 2; width: 100%; max-width: 480px; background: #fffdf4;
  border: 6px double #1f7a3a; border-radius: 18px; padding: 24px 20px; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: pop .35s ease;
}
@keyframes pop { from { transform: scale(.9) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.step { display: inline-block; background: #1f7a3a; color: #fff; padding: 3px 12px; border-radius: 99px; font-size: 13px; margin-bottom: 8px; }
h1 { font-size: 24px; margin: 8px 0 14px; line-height: 1.35; }
h1 em { color: #b3122b; font-style: normal; }
p { line-height: 1.6; }
img.pic { display: block; width: 100%; max-width: 340px; border-radius: 10px; border: 4px solid #e8b923; transform: rotate(-1.5deg); margin: 8px auto; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
button {
  font: inherit; font-weight: bold; cursor: pointer; border: 3px solid #1f7a3a; background: #fff;
  color: #1f7a3a; padding: 10px 16px; border-radius: 12px; transition: transform .1s;
}
button:hover { transform: scale(1.06) rotate(-1deg); }
button.main { background: #b3122b; border-color: #7d0b1d; color: #fff; }
button.sel { background: #1f7a3a; color: #fff; }
button.runaway { position: relative; }
.names button { min-width: 30%; }
.big { font-size: 56px; font-weight: 900; color: #b3122b; margin: 10px 0; }
.small { font-size: 12px; color: #777; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; z-index: 10; padding: 16px; }
.modal .box { background: #fff; border-radius: 16px; padding: 24px; max-width: 360px; border: 5px solid #b3122b; }
.list { text-align: left; margin: 12px 0; padding: 0; list-style: none; }
.list li { padding: 8px 10px; border-bottom: 1px dashed #ccc; }
.list li.sel { background: #e7f5ea; font-weight: bold; }
input[type=text] { font: inherit; padding: 10px; border: 3px solid #1f7a3a; border-radius: 10px; width: 100%; margin-top: 8px; }
.shake { animation: shake .4s infinite; }
@keyframes shake { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.flake { position: absolute; top: -20px; color: #fff; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }
.place { display: flex; gap: 10px; text-align: left; border: 3px solid #e5e0cc; border-radius: 12px; padding: 8px; margin: 10px 0; background: #fff; }
.place.sel { border-color: #1f7a3a; background: #e7f5ea; }
.place img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.place .info { flex: 1; min-width: 0; }
.place .votes { color: #b3122b; font-weight: bold; float: right; }
.place .row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 6px; }
.place a { font-size: 13px; color: #03a94d; font-weight: bold; text-decoration: none; }
.place button { padding: 4px 10px; font-size: 13px; }
.tally { text-align: left; border: 3px solid #e5e0cc; border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: #fff; }
.tally-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.tally .votes { color: #b3122b; font-weight: bold; }
.bar { height: 10px; background: #eee; border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #b3122b, #e8b923); transition: width .5s; }
.chip { display: inline-block; background: #1f7a3a; color: #fff; border-radius: 99px; padding: 3px 10px; margin: 2px; font-size: 13px; font-weight: bold; }
.chip.me { background: #b3122b; }
