:root {
  color-scheme: light;
  font-family: Roboto,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color: #202e45;
  background: #f5f6fa;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

main {
  max-width: 32rem;
  margin: 0 auto;
  padding: clamp(1.1rem,4vw,2rem) 1.15rem max(2rem,env(safe-area-inset-bottom));
}

h1,h2,p,dl {
  margin: 0;
}

h1 {
  font-size: 1.55rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 1.03rem;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,input:focus-visible {
  outline: 3px solid #2466c0;
  outline-offset: 3px;
}

.primary,.secondary {
  width: 100%;
  min-height: 3rem;
  margin: .75rem 0 0;
  border-radius: .65rem;
  font-weight: 650;
  padding: .6rem 1rem;
}

.primary {
  background: linear-gradient(110deg,#ebc995,#dfb278);
  color: #392b1c;
  border: 1px solid #dfb77f;
}

.secondary {
  background: white;
  color: #32496a;
  border: 1px solid #d7e0eb;
}

.primary:disabled,.secondary:disabled {
  opacity: .55;
  cursor: default;
}

.status {
  text-align: center;
  padding: 2.5rem .65rem 1.7rem;
}

.symbol,.logo {
  display: grid;
  place-items: center;
  margin: 0 auto 1.4rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: #e8eef6;
  color: #6687ad;
}

.symbol svg,.logo svg {
  width: 2rem;
  height: 2rem;
}

.symbol.check {
  background: #e2f5eb;
  color: #178757;
}

.symbol.qr {
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid #d5dfec;
}

.status p,.center,.hint,.countdown {
  color: #54647b;
  font-size: .92rem;
  margin-top: .65rem;
}

.center,.hint,.countdown,.loading {
  text-align: center;
}

.loading {
  padding: 4rem 1rem;
  color: #576782;
}

.pass {
  background: linear-gradient(115deg,#1c293e,#253852);
  padding: 1.5rem;
  color: #f4d5a8;
  border-radius: 1rem;
  margin: .35rem 0 1rem;
}

.pass span,.pass p {
  font-size: .85rem;
}

.pass h1 {
  margin: .5rem 0 1rem;
}

.pass p {
  color: #d3dbe7;
}

.pass strong {
  display: block;
  margin-top: .4rem;
}

.card {
  padding: 1.1rem;
  background: #fff;
  border: 1px solid #e1e6ee;
  border-radius: .85rem;
  margin: .7rem 0;
}

.card h2 {
  margin-bottom: .5rem;
}

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  padding: .4rem 0;
}

.row dt,.price span {
  color: #5f6e82;
  font-size: .88rem;
}

.row dt {
  flex-shrink: 0;
}

.row dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-size: .93rem;
  font-variant-numeric: tabular-nums;
}

.price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e6eaf0;
  padding-bottom: .65rem;
  margin-bottom: .35rem;
}

.price strong {
  font-size: 1.65rem;
  color: #795123;
}

.login {
  text-align: center;
  padding: 9vh .5rem;
}

.logo {
  background: linear-gradient(135deg,#05bcd2,#1686ea);
  color: white;
  border-radius: 1rem;
  width: 4rem;
  height: 4rem;
  margin-bottom: .7rem;
}

.consent {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .15rem;
  margin: 3.5rem 0 .65rem;
  font-size: .94rem;
}

.consent label {
  display: inline-flex;
  gap: .25rem;
  align-items: center;
}

.consent input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #446ea0;
}

.link {
  background: none;
  border: 0;
  color: #245caa;
  padding: .55rem .1rem;
}

.agreement {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: auto;
}

.agreement img {
  max-width: 100%;
  height: auto;
}

.agreement td,.agreement th {
  padding: .3rem;
  border: 1px solid #dde3eb;
}

.agreement table {
  border-collapse: collapse;
}

.camera {
  position: relative;
  margin: 1rem 0;
  background: #182331;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
}

.camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-frame {
  position: absolute;
  inset: 18%;
  border: 2px solid white;
  border-radius: .65rem;
}

.hint {
  margin: 1rem .3rem;
}

.countdown {
  font-variant-numeric: tabular-nums;
}

#notice:not(:empty) {
  position: fixed;
  bottom: max(1rem,env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  padding: .55rem 1rem;
  max-width: 92vw;
  width: max-content;
  text-align: center;
  background: #233147;
  color: #fff;
  border-radius: .55rem;
  box-shadow: 0 3px 14px #19243633;
}
