* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
:root {
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #161c19;
  background: #f5f6f0;
}
body {
  margin: 0;
}
header {
  background: #161c19;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(6vw, 20px);
  min-height: 84px;
}
header img {
  display: block;
  width: 144px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
}
button {
  cursor: pointer;
  border: 0;
  font: inherit;
  font-weight: 650;
  border-radius: 10px;
  padding: 10px 16px;
}
header button,
.primary,
.item button {
  background: #cef23d;
  color: #161c19;
}
main {
  max-width: 730px;
  padding: clamp(28px, 6vw, 64px) 20px 70px;
  margin: auto;
}
section {
  margin-bottom: 30px;
}
.lookup {
  background: #fff;
  padding: clamp(24px, 6vw, 46px);
  border-radius: 20px;
  border: 1px solid #dadfd6;
}
h1 {
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 0 32px;
}
h1 span {
  color: #91b500;
}
h2 {
  font-size: 23px;
  margin: 0 0 10px;
}
label {
  display: block;
  font-weight: 600;
  margin: 0 0 5px;
}
.identity {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #161c19;
  margin: 8px 0 18px;
  padding: 4px 0;
}
.identity strong,
.identity input {
  font-size: 24px;
}
input {
  background: none;
  border: none;
  min-width: 0;
  width: 100%;
  font: inherit;
  padding: 8px;
}
#activationRow input {
  display: block;
  border: 1px solid #acb2a5;
  border-radius: 6px;
  margin: 8px 0;
}
.primary {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 13px 20px;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #586f00;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.55;
}
#message:empty {
  display: none;
}
#message {
  color: #824017;
}
.shop,
#history {
  padding: 0 6px;
}
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid #cdd2c7;
  padding: 15px 0;
}
.item small {
  display: block;
  color: #4f594d;
  overflow-wrap: anywhere;
}
.item button {
  white-space: nowrap;
}
dialog {
  width: min(380px, 90vw);
  border: 0;
  border-radius: 18px;
  padding: 28px;
  color: inherit;
}
dialog::backdrop {
  background: #0c170fa8;
}
dialog button {
  width: 100%;
  margin-top: 14px;
}
#content strong {
  font-size: 40px;
  display: block;
}
.amount {
  font-variant-numeric: tabular-nums;
}
p {
  margin: 10px 0;
}
