@import url('data:text/css,');
:root{
  font-family: system-ui, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: #25304a;
  background: #f7f8ff;
  font-synthesis: none;
  font-weight: 450;
}
*{ box-sizing: border-box; }
body{
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0, #fff1d9 0, transparent 38%), #f7f8ff;
}
a{ color: #6255d9; }
.site-header{
  max-width: 1040px;
  margin: auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand{
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
  color: #322b60;
  white-space: nowrap;
}
.brand span{ color: #796bed; }
.site-header nav{
  display: flex;
  gap: clamp(8px, 2vw, 22px);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-header nav a{
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #525875;
}
main{ min-height: 65vh; padding: 24px 20px 64px; }
.hero{ text-align: center; max-width: 880px; margin: 46px auto; }
.eyebrow{
  letter-spacing: 0.15em;
  color: #7668d9;
  font-size: 12px;
  font-weight: 800;
}
.hero h1{
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1.1;
  margin: 12px 0;
}
.hero > p:not(.eyebrow){
  font-size: 18px;
  color: #727891;
}
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.card, .panel{
  background: #fff;
  border: 1px solid #e7e8f1;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 32px #3e35610d;
}
.card{
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s;
}
.card:hover{ transform: translateY(-4px); }
.card > span{ font-size: 32px; }
.card h2{ margin: 12px 0 5px; }
.card p{ color: #777d92; margin: 0; }
.narrow{ max-width: 660px; margin: 28px auto; }
.narrow > h1{
  font-size: clamp(32px, 7vw, 44px);
  margin: 8px 0 12px;
}
.narrow > p{ color: #747b91; }
.panel{ margin: 24px 0; }
.panel h2{ margin-top: 0; }
.choice, .button{
  font: inherit;
  border: 0;
  border-radius: 16px;
  background: #7162e8;
  color: white;
  padding: 15px 20px;
  font-weight: 750;
  cursor: pointer;
  min-height: 54px;
}
.choice{
  background: #f0efff;
  border: 2px solid #e2dfff;
  color: #38315e;
}
.choice:hover{ background: #e5e2ff; }
.choice small{
  display: block;
  color: #757091;
  font-weight: 500;
  font-size: 12px;
}
.pack-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.wide{
  display: block;
  width: 100%;
  margin: 12px 0;
  font-size: 18px;
}
.progress{
  font-weight: 800;
  color: #7063dc;
}
.progressbar{
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 10px;
  background: #eeeef5;
  margin-bottom: 24px;
  overflow: hidden;
}
.progressbar::-webkit-progress-bar{
  background: #eeeef5;
  border-radius: 10px;
}
.progressbar::-webkit-progress-value{
  background: #8477f2;
  border-radius: 10px;
  transition: width 0.2s;
}
.progressbar::-moz-progress-bar{
  background: #8477f2;
  border-radius: 10px;
}
.badge{
  display: inline-block;
  background: #fff2ce;
  color: #805d00;
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}
.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin: 8px 8px 8px 0;
}
.secondary{ background: #eeeefe; color: #5046a0; }
.text-button{
  display: block;
  border: 0;
  background: none;
  color: #6255d9;
  padding: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.notice{
  font-size: 14px;
  background: #fff7e6;
  padding: 14px 16px;
  border-radius: 14px;
  color: #645938 !important;
}
.error{
  font-size: 14px;
  background: #fdecec;
  color: #a83232;
  padding: 14px 16px;
  border-radius: 14px;
  margin: 0;
}
.panel label{
  display: block;
  font-weight: 700;
  margin-bottom: 16px;
}
.panel input{
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid #dedfeb;
  border-radius: 12px;
  font: inherit;
}
.pyramid{
  text-align: center;
  line-height: 1.9;
  font-weight: 700;
  color: #665ac9;
  padding: 8px 0;
  font-variant-numeric: tabular-nums;
}
.pyramid-row{
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.pyramid-msg{
  margin-top: 12px;
  font-weight: 700;
  color: #5046a0;
  text-align: center;
}
.reaction-pad{
  width: 100%;
  min-height: 230px;
  border: 0;
  border-radius: 22px;
  background: #f1efff;
  color: #443a85;
  font-size: 22px;
  font-weight: 800;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  cursor: pointer;
}
.reaction-pad.waiting{
  background: #ed8a83;
  color: white;
}
.reaction-pad.go{
  background: #48bd83;
  color: white;
}
.reaction-progress{
  text-align: center;
  color: #6255d9;
  font-weight: 700;
  margin-top: 12px;
  font-size: 14px;
}
.reaction-list{
  text-align: center;
  color: #5046a0;
  font-weight: 700;
  margin: 12px 0;
}
.reaction-band{
  text-align: center;
  font-weight: 800;
  color: #38315e;
  margin: 8px 0 24px;
}
.reaction-band small{
  color: #928dba;
  font-weight: 500;
}
.result-list{
  list-style: none;
  padding: 0;
  margin: 16px 0;
  counter-reset: balance;
}
.result-list li{
  background: #f6f6fc;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 1px solid #eeeef5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-weight: 600;
}
.result-list li.match{
  background: #f0f7f0;
  border-color: #cce8d2;
}
.result-list li .q-num{
  color: #928dba;
  font-weight: 700;
  min-width: 28px;
}
.result-list li .mine{
  font-weight: 800;
  color: #38315e;
}
.result-list li.match .mine{
  color: #2a7a48;
}
.result-list li .theirs{
  color: #9999b0;
  text-decoration: line-through;
  font-weight: 500;
}
.result-list li.match .theirs{
  color: #6c8a73;
}
.match-tag{
  margin-left: auto;
  background: #e3f4e7;
  color: #2a7a48;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
}
.button-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.button-row .button{ margin: 0; }
.prose{ line-height: 1.8; }
.site-header + main{ max-width: 1040px; margin: auto; }
footer{
  border-top: 1px solid #e8e8f1;
  text-align: center;
  padding: 24px;
  color: #73798c;
  font-size: 14px;
}
footer div{ display: flex; justify-content: center; gap: 20px; }
footer a{ color: #6255d9; }
footer p{ margin: 12px; }
footer small{ font-size: 12px; }

@media (max-width: 720px) {
  .site-header{ display: block; padding: 14px 16px; }
  .site-header nav{
    justify-content: flex-start;
    overflow: auto;
    flex-wrap: nowrap;
    margin-top: 12px;
    padding-bottom: 5px;
  }
  .site-header nav a{ white-space: nowrap; }
  .cards{ grid-template-columns: 1fr; gap: 12px; }
  .card{ padding: 18px; }
  .hero{ margin: 28px auto; }
  .hero h1{ font-size: 42px; }
  main{ padding: 20px 16px 16px; }
  .narrow{ margin: 12px auto; }
  .reaction-pad{ min-height: 280px; font-size: 24px; }
  .result-list li{
    padding: 10px 14px;
    font-size: 14px;
  }
  .match-tag{
    margin-left: 0;
    margin-top: 4px;
  }
}