.lbRedeemShell { color-scheme: dark; }
.lbRedeemShell *, .lbRedeemShell *::before, .lbRedeemShell *::after { box-sizing: border-box; }
.lbRedeemShell body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: "Segoe UI Variable", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.lbRedeem {
  flex: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.redeemPanel {
  position: relative;
  width: min(100%, 450px);
  min-width: 0;
  min-height: 282px;
  padding: 12px 16px 16px;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  background: radial-gradient(ellipse 85% 55% at 32% 0%, #202023 0%, transparent 100%), #0e0e10;
  box-shadow: 0 12px 36px #0006;
}
.redeemHandle { display: none; }
.redeemHeading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ffffff13;
}
.redeemHeading h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}
.redeemHeading p {
  margin: 0;
  color: #a0a0a7;
  font-size: 12px;
  line-height: 21px;
}
.redeemScan {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #ffffff05;
  border: 1px solid #ffffff22;
  border-radius: 12px;
  color: #f7f7fa;
  cursor: pointer;
}
.redeemScan:hover { background: #ffffff14; }
.redeemForm { margin-top: 16px; }
.redeemForm input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 51px;
  padding: 0 14px;
  border: 1px solid #ffffff19;
  border-radius: 8px;
  background: #ffffff0e;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.redeemForm input::placeholder { color: #9b9ba4; opacity: 1; font-size: 14px; }
.redeemForm #redeem-help {
  min-height: 36px;
  margin: 0;
  padding-top: 3px;
  color: #a0a0a7;
  font-size: 11px;
  line-height: 16px;
}
.redeemSubmit {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #f5f5f7;
  color: #0c0c0e;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.redeemSubmit:hover:not(:disabled) { background: #fff; }
.redeemSubmit:disabled { background: #858587; cursor: default; }
.redeemPanel :is(a,button,input):focus-visible { outline: 2px solid #d7d7ec; outline-offset: 2px; }
.redeemStatus {
  margin: 8px 0 0;
  min-height: 32px;
  color: #d6d6df;
  font-size: 12px;
  line-height: 16px;
}

@media (min-width: 1041px) and (min-height: 430px) {
  /* Center against the full viewport without positioning or restyling the dock. */
  .lbRedeem { padding-bottom: calc(14px + var(--lb-dock-clearance, 86px)); }
}

@media (max-width: 639px) {
  .lbRedeem {
    place-items: end center;
    padding: 18px 0 0;
  }
  .redeemPanel {
    min-height: calc(298px + env(safe-area-inset-bottom, 0px));
    padding-top: 28px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    border-end-start-radius: 0;
    border-end-end-radius: 0;
  }
  .redeemHandle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 72px;
    height: 26px;
  }
  .redeemHandle::before {
    content: "";
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #555663;
  }
}
