* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: #111;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  background-color: #ffffff;
  background-image: url("./assets/4lork.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 24px);
}

.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
}

.action-bar {
  position: fixed;
  left: clamp(14px, 3vw, 42px);
  top: clamp(14px, 3vw, 36px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 28px);
}

.transfer-tip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: min(58vw, 560px);
  min-height: 58px;
  padding: 10px 18px 10px 10px;
  border: 3px solid #111;
  border-radius: 999px;
  color: #111;
  background: #f5b400;
  box-shadow: 0 12px 0 #111, 0 22px 38px rgba(0, 0, 0, 0.22);
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 950;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.transfer-tip:hover {
  transform: translateY(2px);
  box-shadow: 0 10px 0 #111, 0 18px 32px rgba(0, 0, 0, 0.2);
}

.transfer-tip:disabled {
  cursor: wait;
  opacity: 0.78;
}

.balance-panel {
  position: fixed;
  left: clamp(14px, 3vw, 42px);
  top: calc(clamp(14px, 3vw, 36px) + 94px);
  z-index: 9;
  display: grid;
  gap: 4px;
  min-width: min(92vw, 280px);
  padding: 12px 16px;
  border: 3px solid #111;
  border-radius: 18px;
  color: #111;
  background: #fff7d0;
  box-shadow: 0 8px 0 #111, 0 18px 30px rgba(0, 0, 0, 0.18);
}

.balance-label {
  font-size: 13px;
  font-weight: 850;
}

.balance-label a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

#receiverBalance {
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.15;
}

.verify-link,
.token-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 18px;
  border: 3px solid #111;
  border-radius: 999px;
  color: #111;
  background: #f5b400;
  box-shadow: 0 12px 0 #111, 0 22px 38px rgba(0, 0, 0, 0.22);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.token-link {
  max-width: min(42vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: clamp(12px, 1.7vw, 16px);
}

.verify-link:hover,
.token-link:hover {
  background: #ffd44d;
}

.coin-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid #111;
  border-radius: 50%;
  color: #111;
  background:
    radial-gradient(circle at 32% 24%, #fff6b8 0 16%, transparent 17%),
    linear-gradient(145deg, #ffd95d, #f0a600);
  box-shadow: inset -5px -6px 0 rgba(0, 0, 0, 0.14);
  font-size: 28px;
  font-weight: 1000;
}

@media (max-width: 720px) {
  .page {
    align-content: start;
    padding: 0;
    overflow-x: hidden;
  }

  body {
    background-position: center 112px;
    background-size: 100vw auto;
  }

  .action-bar {
    left: 10px;
    right: 10px;
    top: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 8px;
  }

  .transfer-tip {
    justify-content: center;
    max-width: none;
    min-height: 64px;
    padding: 8px 10px;
    border-width: 2px;
    border-radius: 30px;
    box-shadow: 0 8px 0 #111, 0 14px 24px rgba(0, 0, 0, 0.2);
    font-size: clamp(18px, 5.5vw, 24px);
  }

  .verify-link,
  .token-link {
    min-height: 64px;
    padding: 8px 10px;
    border-width: 2px;
    border-radius: 30px;
    white-space: normal;
    box-shadow: 0 8px 0 #111, 0 14px 24px rgba(0, 0, 0, 0.2);
    font-size: clamp(15px, 4.5vw, 20px);
    line-height: 1.2;
  }

  .token-link {
    grid-column: 1 / -1;
    max-width: none;
    min-height: 38px;
    padding: 6px 10px;
    border-radius: 18px;
    font-size: 11px;
    word-break: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 5px 0 #111, 0 10px 18px rgba(0, 0, 0, 0.18);
  }

  .balance-panel {
    left: 10px;
    right: 10px;
    top: 164px;
    min-width: 0;
    padding: 10px 14px;
    border-width: 2px;
    border-radius: 20px;
    box-shadow: 0 7px 0 #111, 0 14px 24px rgba(0, 0, 0, 0.18);
  }

  .balance-label {
    font-size: 12px;
  }

  #receiverBalance {
    font-size: clamp(24px, 8vw, 34px);
  }

  .coin-icon {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
}
