:root {
  --orange: #e78324;
  --amber: #f7941d;
  --yellow: #fff200;
  --ink: #0b0300;
  --muted: #6b625c;
  --bg: #fffdf7;
  --card: #ffffff;
  --line: #ece6dc;
  --grad: linear-gradient(90deg, var(--orange), var(--yellow));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

.glow {
  position: fixed;
  inset: -40vh -20vw auto auto;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(closest-side, rgba(255, 242, 0, .35), rgba(231, 131, 36, .15) 60%, transparent);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.top { padding: 28px 32px; }
.logo { height: 44px; display: block; }

.wrap {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 6vh 16px 48px;
}

h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.grad {
  /* stop short of pure yellow so the text stays readable on a light background */
  background: linear-gradient(90deg, var(--orange), var(--amber) 60%, #f5c400);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub { color: var(--muted); font-size: 17px; margin: 0 0 32px; }

.field {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--orange);
  transition: box-shadow .15s, transform .15s;
}
.field:focus-within { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--orange); }

.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  padding: 12px 12px;
  background: transparent;
  color: var(--ink);
}

.field button, .btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.field button {
  border: 0;
  padding: 12px 24px;
  color: var(--ink);
  background: var(--grad);
  transition: filter .15s;
}
.field button:hover { filter: saturate(1.2) brightness(1.03); }
.field button:disabled { opacity: .6; cursor: wait; }

.error { color: #c0392b; font-weight: 600; margin: 14px 4px 0; }

.card {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 40px -20px rgba(11, 3, 0, .18);
  animation: rise .35s ease-out;
}

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.qr {
  flex: none;
  padding: 10px;
  border-radius: 14px;
  background: var(--grad);
}
.qr img { display: block; width: 168px; height: 168px; background: #fff; border-radius: 8px; }

.info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.short { font-size: 24px; font-weight: 800; color: var(--ink); text-decoration: none; word-break: break-all; }
.short:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.orig { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.btn { padding: 10px 18px; border: 2px solid var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2a2320; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }

@media (max-width: 560px) {
  .top { padding: 20px 16px; }
  .logo { height: 36px; }
  .field { flex-direction: column; }
  .field button { padding: 14px; }
  .card { flex-direction: column; text-align: center; }
  .info { align-items: center; width: 100%; }
  .short { font-size: 19px; }
  .orig { max-width: 100%; }
  .actions { justify-content: center; }
}
