.hero {
  width: min(calc(100% - 28px), 720px);
  margin: 12px auto 0;
  border-radius: 20px;
}
.hero-inner { min-height: 188px; padding: 26px 24px 48px; }
.hero h1 { font-size: clamp(29px, 4.5vw, 40px); margin: 11px 0 7px; }
.hero p { font-size: 15px; }
.hero-art {
  width: 128px;
  height: 128px;
  top: 24px;
  right: 25px;
  line-height: 128px;
  border-radius: 28px;
}
.hero-art span:first-child { font-size: 62px; }
.hero-art span:last-child { font-size: 22px; }
.page { margin-top: -24px; }

.query-card textarea { margin-bottom: 10px; }
.clear-input[hidden], .result-check[hidden] { display: none; }
.clear-input {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px dashed #d9c5a5;
  border-radius: 10px;
  background: #fff;
  color: #785f42;
  cursor: pointer;
}
.clear-input:focus-visible { outline: 3px solid #e69a14; outline-offset: 2px; }
.query-message:empty { display: none; }

.result-card { padding: 16px 18px; margin-top: 14px; }
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f2ea;
}
.result-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; line-height: 1.35; }
.result-head p { margin: 0; color: #81705d; font-size: 11px; white-space: nowrap; }
.result-check {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 50%;
  background: #16845b;
  color: #fff;
}
.store-result { padding: 14px; background: #fff; }
.store-caption { margin-bottom: 4px; }
.store-result h3 { margin-bottom: 10px; font-size: 18px; line-height: 1.35; }
.coupon-content { min-height: 58px; gap: 9px; padding: 11px 13px; }
.coupon-amount { font-size: 35px; }
.coupon-amount small { font-size: 18px; }
.coupon-detail { font-size: 14px; }
.official-button { margin-top: 10px; padding: 11px; }
.location-retry-button {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(100deg, #ffd421, #ffb11c);
  box-shadow: 0 5px 12px #eeb12a44;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
}
.location-retry-button[hidden] { display: none; }
.location-retry-button:focus-visible { outline: 3px solid #e69a14; outline-offset: 2px; }
.no-coupon-red-packet-button {
  display: block;
  margin-top: 12px;
  padding: 13px;
  border-radius: 10px;
  background: linear-gradient(100deg, #ffd421, #ffb11c);
  box-shadow: 0 5px 12px #eeb12a44;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}
.no-coupon-red-packet-button[hidden] { display: none; }
.result-card[data-status="no_coupon"] .official-button {
  border: 1px solid #e9d9bd;
  background: #fff;
  color: #806742;
  font-weight: 700;
}
.fine-print { margin: 9px 0 0; font-size: 11px; line-height: 1.45; }

.result-card[data-status="coupon"] {
  border: 1px solid #a4dfbd;
  background: linear-gradient(180deg, #f5fff8 0, #fff 54%);
  box-shadow: 0 10px 28px #30845b24;
}
.result-card[data-status="coupon"] .result-head { border: 1px solid #92d9b2; background: #e7f9ee; color: #116342; }
.result-card[data-status="coupon"] .store-result { border-color: #a4dfbd; background: #f8fff9; }
.result-card[data-status="coupon"] .coupon-content { border: 1px solid #9bdfb7; background: linear-gradient(110deg, #d6f7e5, #edfff2); }
.result-card[data-status="coupon"] .coupon-amount { color: #117a51; }
.result-card[data-status="coupon"] .coupon-detail { color: #195e43; }

@media (max-width: 540px) {
  .hero { margin-top: 10px; }
  .hero-inner { min-height: 160px; padding: 23px 18px 42px; }
  .hero h1 { font-size: clamp(26px, 7.3vw, 30px); }
  .hero p { font-size: 13px; line-height: 1.4; }
  .hero-art { display: none; }
  .page { margin-top: -20px; }
  .result-card { padding: 14px; }
}
