:root {
  color-scheme: dark;
  --bg: #080b11;
  --panel: #10151e;
  --border: #222a38;
  --text: #f0f3fc;
  --muted: #a0a9ba;
  --blue: #377dff;
  --green: #b5f680;
  --display: 'Manrope', sans-serif;
  --body: 'DM Sans', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #86baff;
  outline-offset: 5px;
}
button {
  min-height: 44px;
}
a {
  color: inherit;
}
p {
  line-height: 1.7;
}
button.primary {
  border: 1px solid #6198ff;
  background: var(--blue);
  color: white;
  padding: 16px 28px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 8px 32px #377dff26;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 56px;
}
button.primary:hover {
  background: #4c8aff;
}
button.secondary {
  background: transparent;
  border: 1px solid #354153;
  border-radius: 9px;
  color: var(--text);
  padding: 14px 22px;
  font-weight: 500;
}
.text-button {
  border: 0;
  background: none;
  color: #86baff;
  padding: 0 4px;
  font-size: 13px;
}
.hidden {
  display: none !important;
}
.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}
.page:before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 40% 45%, rgba(55, 125, 255, 0.14), transparent);
  transition: background 0.6s;
}
body[data-tone='red'] .page:before {
  background: radial-gradient(ellipse 50% 40% at 37% 45%, rgba(226, 43, 40, 0.13), transparent);
}
body[data-tone='green'] .page:before {
  background: radial-gradient(ellipse 50% 40% at 38% 45%, rgba(181, 246, 128, 0.1), transparent);
}
.header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  gap: 12px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -1px;
  text-decoration: none;
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand-mark {
  width: 20px;
  height: 22px;
  border: 2px solid #86baff;
  transform: rotate(-12deg);
  border-radius: 4px;
  position: relative;
}
.brand-mark:after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid #86baff;
  border-radius: 1px;
}
.by {
  font: 400 11px var(--body);
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 9px;
}
.wallet {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #111821;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0 16px;
  font-size: 12px;
  color: var(--text);
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex-shrink: 0;
  background: var(--green);
  border-radius: 50%;
}
.stage {
  flex: 1;
  display: grid;
  grid-template-columns: 340px 440px;
  gap: 88px;
  align-items: center;
  justify-content: center;
  padding: 64px 32px 90px;
  min-height: 620px;
}
.card-space {
  perspective: 1200px;
  justify-self: end;
  position: relative;
}
.card {
  width: 300px;
  height: 400px;
  position: relative;
  transform: rotate(-4deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card.revealed {
  transform: rotate(3deg);
}
.card.revealed .card-inner {
  transform: rotateY(180deg);
}
.card.landed {
  transform: rotate(0);
}
.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 40px 80px #0009;
  border: 1px solid #ffffff15;
  display: flex;
  flex-direction: column;
}
.back {
  background: linear-gradient(160deg, #1a2333, #0c1119);
  align-items: center;
  justify-content: center;
}
.back:before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px dashed #53637a;
  border-radius: 12px;
  opacity: 0.6;
}
.question {
  font: 400 100px var(--display);
  color: #aabbd6;
  line-height: 1;
}
.back-label {
  position: absolute;
  bottom: 37px;
  max-width: 200px;
  text-align: center;
  line-height: 1.8;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #9cabbe;
}
.front {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #2a1416, #120a0b);
  box-shadow:
    0 40px 80px #0009,
    0 0 80px #e22b2826;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #d1b1b3;
}
.token-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e22b28;
  font: 800 28px var(--display);
  color: white;
}
.card-value {
  margin: auto 0;
}
.quantity {
  font: 800 72px var(--display);
  letter-spacing: -5px;
  line-height: 1.15;
}
.ticker {
  font: 600 22px var(--display);
  color: #ffb4b4;
  margin: 6px 0 0;
  letter-spacing: 1px;
}
.estimate {
  font-size: 12px;
  color: #d3b7b9;
  margin: 18px 0 0;
}
.card-bottom {
  border-top: 1px solid #ffffff20;
  padding-top: 17px;
  font-size: 11px;
  color: #d1b1b3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-bottom span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-bottom .dot {
  width: 5px;
  height: 5px;
}
.badge {
  position: absolute;
  right: -12px;
  top: 85px;
  background: var(--green);
  color: #183008;
  border: 1px solid #dafdbc;
  border-radius: 6px;
  box-shadow: 0 8px 20px #0005;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 700;
  transform: rotate(-3deg);
  animation: badge-in 0.35s ease-out;
}
.badge.queued {
  background: #172b49;
  color: #b3d4ff;
  border-color: #365c92;
}
.badge.expired {
  background: #3c2b15;
  color: #ffd69b;
  border-color: #806039;
}
.card.expired .front {
  filter: grayscale(0.85);
}
.card.loading {
  animation: pulse 1.2s ease-in-out infinite;
}
.copy {
  max-width: 440px;
  min-width: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  color: #a0b9df;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow .line {
  width: 20px;
  height: 1px;
  background: #719cd8;
}
h1 {
  font: 700 46px/1.14 var(--display);
  letter-spacing: -2px;
  margin: 0 0 22px;
}
h1 span {
  color: var(--muted);
}
.description {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 395px;
}
.description strong {
  font-weight: 500;
  color: #e0e5f0;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.helper {
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0 0;
  line-height: 1.65;
}
.destination {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.destination strong {
  font-size: 12px;
  color: #d3dbea;
  font-weight: 500;
}
.destination .text-button {
  margin-left: auto;
}
.network-icon {
  width: 25px;
  height: 25px;
  border: 1px solid #34402b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
}
.deadline {
  font-size: 11px;
  color: var(--muted);
  margin: 14px 0 0;
}
.deadline .text-button {
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.details {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  min-height: 44px;
}
.details p {
  margin: 8px 0;
}
.inline-notice {
  font-size: 12px;
  color: #b9d5ff;
  border-left: 2px solid #377dff;
  padding: 10px 14px;
  margin: 18px 0;
  background: #13223a66;
}
.inline-notice.warning {
  color: #f1cb93;
  border-color: #b58442;
}
.progress {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bdd8ff;
  font-size: 13px;
  margin-bottom: 22px;
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #3f5575;
  border-top-color: #a9d1ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 48px;
  border-top: 1px solid #ffffff07;
  color: #8b97aa;
  font-size: 11px;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.prototype-label {
  font-size: 9px;
  letter-spacing: 1.4px;
}
.preview-select {
  border: 1px solid var(--border);
  background: #10151e;
  border-radius: 6px;
  color: #a9b7cf;
  font-size: 11px;
  padding: 8px;
  min-height: 36px;
  max-width: 100%;
}
dialog {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  background: var(--panel);
  border: 1px solid #334057;
  border-radius: 17px;
  color: var(--text);
  max-height: calc(100svh - 32px);
}
dialog[open] {
  animation: sheet-in 0.25s ease-out;
}
dialog::backdrop {
  background: #03060bd9;
  backdrop-filter: blur(6px);
}
.modal {
  padding: 32px;
  position: relative;
}
.close {
  position: absolute;
  right: 8px;
  top: 8px;
  background: none;
  border: 0;
  color: var(--muted);
  width: 44px;
  font-size: 25px;
}
.modal h2 {
  font: 700 27px/1.25 var(--display);
  letter-spacing: -1px;
  margin: 12px 20px 18px 0;
}
.modal p {
  font-size: 13px;
  color: var(--muted);
}
.modal .primary,
.modal .secondary {
  width: 100%;
}
.modal .secondary {
  margin-top: 10px;
}
.modal-info {
  border-block: 1px solid var(--border);
  padding: 12px 0;
  margin: 22px 0;
}
.modal-info > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  font-size: 12px;
  color: var(--muted);
}
.modal-info strong {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  max-width: 245px;
  overflow-wrap: anywhere;
}
.long-address {
  font-size: 11px;
}
.choice {
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 1px solid #34435c;
  border-radius: 9px;
  background: #172235;
  color: var(--text);
  margin-top: 10px;
}
.choice small {
  display: block;
  color: #a7b5cb;
  margin-top: 5px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes badge-in {
  from {
    opacity: 0;
    translate: 0 -10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 1400px) {
  .stage {
    gap: 110px;
  }
}
@media (max-width: 960px) {
  .stage {
    grid-template-columns: 300px minmax(0, 400px);
    gap: 48px;
  }
  .header {
    padding: 0 28px;
  }
  .footer {
    padding: 22px 28px;
  }
  h1 {
    font-size: 40px;
  }
}
@media (max-width: 720px) {
  .header {
    padding: 0 22px;
    height: 76px;
  }
  .brand {
    font-size: 21px;
  }
  .by {
    display: none;
  }
  .wallet {
    padding: 0 12px;
    font-size: 11px;
  }
  .stage {
    display: flex;
    flex-direction: column;
    gap: 45px;
    padding: 35px 24px 48px;
    min-height: 0;
  }
  .card-space {
    align-self: center;
  }
  .card {
    width: 260px;
    height: 346px;
  }
  .face {
    padding: 23px;
  }
  .quantity {
    font-size: 64px;
  }
  .card-top {
    font-size: 10px;
  }
  .estimate {
    margin-top: 12px;
  }
  .card-bottom {
    font-size: 10px;
    padding-top: 14px;
  }
  .copy {
    width: 100%;
    max-width: 440px;
  }
  h1 {
    font-size: 36px;
    letter-spacing: -1.6px;
    margin-bottom: 18px;
  }
  .eyebrow {
    margin-bottom: 15px;
    font-size: 9px;
  }
  .description {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .actions {
    flex-direction: column;
  }
  .actions button {
    width: 100%;
  }
  .destination {
    margin-top: 18px;
  }
  .footer {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .prototype-label {
    font-size: 8px;
    max-width: 125px;
    line-height: 1.6;
  }
  .preview-select {
    font-size: 10px;
  }
  dialog {
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 90svh;
    border-radius: 17px 17px 0 0;
  }
  .modal {
    padding: 28px 24px;
  }
  .modal-info strong {
    max-width: 195px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .card-inner {
    transform: none !important;
    transform-style: flat;
  }
  .front {
    transform: none;
  }
  .face {
    transition: opacity 0.15s !important;
  }
  .card .front {
    opacity: 0;
  }
  .card.revealed .front {
    opacity: 1;
  }
  .card.revealed .back {
    opacity: 0;
  }
}

.receiver-confirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
}
.receiver-confirm input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.staging-label {
  color: #b5c7df;
  border: 1px solid #344153;
  border-radius: 5px;
  padding: 6px 10px;
  letter-spacing: 1px;
  font-size: 10px;
}

@media (max-width: 720px) {
  .copy > .primary,
  .copy > .secondary {
    width: 100%;
  }
}

/* Minimal wallet and claim sheets. */
.inj-logo {
  width: 28px;
  height: 28px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.inj-logo img {
  position: absolute;
  width: 56px;
  height: 56px;
  max-width: none;
  left: -14px;
  top: -14px;
}
.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 24px;
}
.wallet-option {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  text-align: left;
}
.wallet-option:hover {
  background: #1a2230;
  border-color: #2d3b50;
}
.wallet-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}
.wallet-row-hint {
  margin-left: auto;
  font-size: 13px;
  color: #8e9fb8;
}
.icon-okx {
  filter: invert(1);
}
.modal h2 {
  font-size: 25px;
  margin-top: 2px;
}
.claim-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0 24px;
  margin-top: 24px;
}
.claim-summary strong {
  display: block;
  font: 700 28px var(--display);
  letter-spacing: -1px;
}
.claim-summary div > span {
  color: var(--muted);
  font-size: 12px;
  display: block;
  margin-top: 4px;
}
.claim-destination {
  padding: 17px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 18px;
}
.claim-destination > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.claim-destination strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.claim-more {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}
.claim-more summary {
  min-height: 28px;
}
.picker-back {
  display: block;
  margin: 14px auto 0;
}
@media (max-width: 720px) {
  .brand {
    gap: 8px;
    font-size: 20px;
  }
  .brand .by {
    display: inline;
    margin-left: 0;
    font-size: 10px;
  }
  .wallet {
    padding: 0 10px;
  }
  .header {
    padding: 0 18px;
  }
  .wallet-option {
    padding: 10px 8px;
    gap: 8px;
  }
  .wallet-grid {
    gap: 4px;
  }
}
@media (max-width: 360px) {
  .brand {
    gap: 5px;
    font-size: 18px;
  }
  .brand .by {
    font-size: 9px;
  }
  .inj-logo {
    width: 22px;
    height: 22px;
  }
  .inj-logo img {
    width: 44px;
    height: 44px;
    left: -11px;
    top: -11px;
  }
  .header {
    padding: 0 12px;
  }
}
