/* ------------------------------------------------------------------
   Blockdrop — plastic-tile system.
   Everything is a moulded tile: hard 3px outline, hard offset shadow,
   presses down when you touch it. One accent (coral), one reward
   colour (mint), one highlight (sun). Nothing else.
------------------------------------------------------------------- */

:root {
  --ink:       #14162e;
  --ink-soft:  #262a56;
  --paper:     #ffffff;
  --fog:       #efedf7;
  --fog-deep:  #ddd9ef;
  --coral:     #ff5a45;
  --sun:       #ffc531;
  --mint:      #17c295;
  --muted:     #6f739c;

  --tile-edge:   3px;
  --tile-drop:   6px;
  --radius:      14px;
  --radius-lg:   22px;

  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--fog);
  background-image: radial-gradient(var(--fog-deep) 1.6px, transparent 1.7px);
  background-size: 22px 22px;
  background-position: -11px -11px;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); }

.wrap {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- tile primitive ---------- */

.tile {
  background: var(--paper);
  border: var(--tile-edge) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--tile-drop) var(--tile-drop) 0 var(--ink);
}

/* ---------- header ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0 1.2rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  text-decoration: none;
}

.mark-cube {
  width: 26px; height: 26px;
  border: var(--tile-edge) solid var(--ink);
  border-radius: 7px;
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--ink);
}

.badge {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .38rem .7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
}

/* ---------- hero ---------- */

.hero { padding: 2rem 0 1rem; }

.hero-head {
  max-width: 22ch;
  margin: 0 0 .7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 7vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.hero-head em {
  font-style: normal;
  background: var(--sun);
  box-shadow: 0 0 0 4px var(--sun);
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  max-width: 48ch;
  margin: 0 0 2rem;
  font-size: 1.06rem;
  color: var(--muted);
}

/* ---------- panel: the two-stage card ---------- */

.stage {
  padding: 1.7rem;
  max-width: 470px;
}

.stage[hidden] { display: none; }

.field { margin-bottom: 1.05rem; }

.field label {
  display: block;
  margin-bottom: .35rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: .82rem .95rem;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--fog);
  border: var(--tile-edge) solid var(--ink);
  border-radius: var(--radius);
  transition: background .12s ease, box-shadow .12s ease;
}

.field input::placeholder { color: #a0a3c2; }

.field input:focus-visible {
  outline: none;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--coral);
}

.field-hint {
  margin: .4rem 0 0;
  font-size: .8rem;
  color: var(--muted);
}

.field-error {
  margin: .4rem 0 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--coral);
}

.field-error:empty { display: none; }

.honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .9rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  background: var(--coral);
  border: var(--tile-edge) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}

.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: 3px; }

.btn[disabled] { opacity: .55; cursor: progress; transform: none; box-shadow: 5px 5px 0 var(--ink); }

.btn-ghost {
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-mint { background: var(--mint); }

.btn-slim { width: auto; padding: .55rem .9rem; font-size: .88rem; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- verified card (signature element) ---------- */

.verified { text-align: center; }

.avatar-plate {
  position: relative;
  width: 190px;
  margin: 0 auto 1.1rem;
  padding: .6rem;
  border: var(--tile-edge) solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--sun);
  background-image: radial-gradient(rgba(20, 22, 46, .16) 2px, transparent 2.2px);
  background-size: 18px 18px;
  box-shadow: var(--tile-drop) var(--tile-drop) 0 var(--ink);
  animation: plate-drop .42s cubic-bezier(.2, 1.5, .4, 1) both;
}

.avatar-plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
}

.avatar-plate .tick {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--paper);
  background: var(--mint);
  border: var(--tile-edge) solid var(--ink);
  border-radius: 50%;
}

@keyframes plate-drop {
  from { transform: translateY(-26px) rotate(-5deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.verified-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.verified-handle {
  margin: .1rem 0 .2rem;
  font-weight: 600;
  color: var(--muted);
}

.verified-mail {
  margin: 0 0 1.3rem;
  font-size: .88rem;
  color: var(--muted);
  word-break: break-all;
}

.verified-actions {
  display: grid;
  gap: .6rem;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  padding: 3.4rem 0 3rem;
}

.step-n {
  display: inline-block;
  margin-bottom: .5rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: .2rem .5rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
}

.step h3 {
  margin: 0 0 .3rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- offerwall ---------- */

.deskbar {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .8rem 1rem;
  margin: 1.3rem 0 2rem;
}

.deskbar-face {
  width: 46px; height: 46px;
  flex: none;
  border: var(--tile-edge) solid var(--ink);
  border-radius: 12px;
  background: var(--sun);
  object-fit: cover;
}

.deskbar-who { flex: 1 1 auto; min-width: 0; }

.deskbar-who strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.deskbar-who span {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance {
  flex: none;
  text-align: right;
  padding-left: .8rem;
  border-left: 2px dashed var(--fog-deep);
}

.balance b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--mint);
}

.balance span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.wall-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.wall-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.wall-head p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.5rem 1.4rem;
  padding-bottom: 3.5rem;
}

.offer {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .1s ease, box-shadow .1s ease;
}

.offer:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }

.offer-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.offer-icon {
  width: 54px; height: 54px;
  flex: none;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 12px;
  /* visible as a moulded blank while the CDN icon loads, or if it 404s */
  background: var(--sun);
  background-image: radial-gradient(rgba(20, 22, 46, .18) 2px, transparent 2.2px);
  background-size: 15px 15px;
}

.offer-head { min-width: 0; }

.tag {
  display: inline-block;
  margin-bottom: .2rem;
  padding: .08rem .38rem;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 2px solid var(--fog-deep);
  border-radius: 5px;
}

.offer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.offer-desc {
  flex: 1 1 auto;
  margin: 0 0 .9rem;
  font-size: .87rem;
  color: var(--muted);
}

.offer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: .28rem;
  padding: .3rem .6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: -.01em;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--mint);
  color: var(--paper);
}

.chip small { font-size: .68rem; font-weight: 700; letter-spacing: .05em; }

/* ---------- notice / empty ---------- */

.notice {
  padding: 1.4rem 1.5rem;
  margin-bottom: 2rem;
  background: var(--paper);
}

.notice h3 {
  margin: 0 0 .3rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.notice p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- footer ---------- */

.foot {
  padding: 2rem 0 3rem;
  border-top: 2px solid var(--fog-deep);
  font-size: .82rem;
  color: var(--muted);
}

.foot p { margin: 0 0 .4rem; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  :root { --tile-drop: 5px; }
  .wrap { width: min(1080px, 100% - 1.6rem); }
  .stage { padding: 1.3rem; }
  .wall-head { flex-direction: column; align-items: flex-start; }
  .steps { padding: 2.4rem 0 2rem; gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
