/* ============================================================
   Discover Koinos — design system.
   Official Koinos brand: purple #5d00b3, accent #9966FF, black
   #121212, white — with the koinos.io CTA gradient (#7827e6 →
   #8e44ad). Headings: Plus Jakarta Sans. Body: Inter.
   ============================================================ */

:root {
  --bg: #121212;
  --bg-raised: #1a1526;
  --bg-card: #1e1830;
  --bg-inset: #16121f;
  --line: #322a45;
  --line-strong: #4a3d68;
  --text: #d4d4d4;
  --text-dim: #9d94b5;
  --text-bright: #ffffff;
  --brand: #5d00b3;
  --accent: #9966ff;
  --accent-soft: #b795ff;
  --grad-a: #7827e6;
  --grad-b: #8e44ad;
  --good: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --radius: 14px;
  --radius-sm: 9px;
  --font-head: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
/* `hidden` must always win — several components set display via id/class
   selectors that would otherwise out-specify the UA [hidden] rule. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-bright); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-inset); border: 1px solid var(--line); border-radius: 5px; padding: .1em .4em; }
::selection { background: rgba(153, 102, 255, .35); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 18, .84);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text-bright); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo img { height: 30px; width: auto; display: block; }
.logo .logo-sub { color: var(--accent-soft); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--text-dim); padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: .92rem; }
.nav a:hover { color: var(--text-bright); background: var(--bg-raised); text-decoration: none; }
.nav a.active { color: var(--text-bright); background: var(--bg-card); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--accent-soft); white-space: nowrap;
}
.badge.demo { color: var(--warn); border-color: rgba(251, 191, 36, .4); }

.addr-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .82rem; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--line-strong);
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.addr-chip:hover { border-color: var(--accent); text-decoration: none; }
.addr-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.addr-chip.empty .dot { background: var(--text-dim); }

@media (max-width: 720px) {
  .nav { display: none; }
  .logo span { display: none; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: #fff; background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  border: 0; border-radius: 10px; padding: 13px 26px; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(120, 39, 230, .35); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); transform: none; box-shadow: none; }
.btn.big { font-size: 1.12rem; padding: 16px 34px; border-radius: 12px; }
.btn.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--text-bright); box-shadow: none; }
.btn.small { font-size: .85rem; padding: 8px 14px; border-radius: 8px; }
.btn.danger { background: transparent; border: 1px solid rgba(248, 113, 113, .5); color: var(--bad); }

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

.hero { position: relative; padding: 84px 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;  height: 130%;
  background:
    radial-gradient(600px 340px at 50% 0%, rgba(93, 0, 179, .38), transparent 70%),
    radial-gradient(900px 500px at 80% 20%, rgba(153, 102, 255, .12), transparent 70%),
    radial-gradient(700px 400px at 15% 15%, rgba(120, 39, 230, .16), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero .kicker {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-soft);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-dim); max-width: 640px; margin: 0 auto 30px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero .cta-note { font-size: .85rem; color: var(--text-dim); margin-top: 14px; }

/* ---------------- stats strip ---------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 42px 0 8px; }
.stat {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; text-align: left;
}
.stat .k { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.stat .v { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--text-bright); margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .75rem; color: var(--accent-soft); font-weight: 600; }

/* ---------------- progress ribbon ---------------- */

.ribbon { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 34px 0 10px; }
.ribbon .step {
  display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem;
  color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px;
}
.ribbon .step .n {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-inset); border: 1px solid var(--line-strong); font-size: .75rem; color: var(--text-dim);
}
.ribbon .step.done { color: var(--text-bright); border-color: rgba(74, 222, 128, .45); }
.ribbon .step.done .n { background: rgba(74, 222, 128, .15); border-color: rgba(74, 222, 128, .5); color: var(--good); }
.ribbon .arrow { color: var(--line-strong); }

/* ---------------- cards ---------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin: 30px 0 70px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.card:hover { border-color: var(--line-strong); }
.card .card-head { display: flex; align-items: center; gap: 12px; padding-right: 52px; }
.card .card-icon {
  width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(120, 39, 230, .3), rgba(153, 102, 255, .12));
  border: 1px solid var(--line-strong); font-size: 1.25rem;
}
.card h3 { margin: 0; }
.card .sub { color: var(--text-dim); font-size: .92rem; margin: 0; }
.card .free-tag { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--good); border: 1px solid rgba(74, 222, 128, .4); padding: 3px 8px; border-radius: 999px; }
.card .grow { flex: 1; }
.card .more { font-size: .85rem; }

/* ---------------- forms ---------------- */

label.field { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
label.field input[type="text"], label.field input[type="number"], .input {
  display: block; width: 100%; margin-top: 6px;
  background: var(--bg-inset); color: var(--text-bright);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 11px 13px; font-size: 1rem; font-family: var(--font-body);
}
label.field input:focus, .input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.hint { font-size: .8rem; color: var(--text-dim); }

/* ---------------- mana meter ---------------- */

.mana { display: flex; flex-direction: column; gap: 6px; }
.mana .bar { height: 10px; border-radius: 999px; background: var(--bg-inset); border: 1px solid var(--line); overflow: hidden; }
.mana .fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--grad-a), var(--accent)); transition: width .8s ease; }
.mana .lbl { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-dim); }

/* ---------------- pixel studio ---------------- */

.studio { display: flex; flex-direction: column; gap: 12px; }
.studio canvas {
  width: 100%; max-width: 320px; aspect-ratio: 1; margin: 0 auto;
  background:
    repeating-conic-gradient(#241d33 0% 25%, #1b1528 0% 50%) 0 0 / 12.5% 12.5%;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  touch-action: none; image-rendering: pixelated; cursor: crosshair;
}
.palette { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.palette button {
  width: 26px; height: 26px; border-radius: 7px; border: 2px solid transparent; cursor: pointer; padding: 0;
}
.palette button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.palette button.eraser { background: var(--bg-inset) !important; color: var(--text-dim); font-size: .8rem; display: grid; place-items: center; }
.studio-tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------------- tx status / toasts ---------------- */

.status { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-inset); padding: 12px 14px; font-size: .9rem; display: none; }
.status.show { display: block; }
.status.ok { border-color: rgba(74, 222, 128, .45); }
.status.err { border-color: rgba(248, 113, 113, .5); color: var(--bad); }
.status .txline { font-family: var(--font-mono); font-size: .78rem; word-break: break-all; margin-top: 6px; }
.status .steps { display: flex; flex-direction: column; gap: 5px; }
.status .steps .s { display: flex; gap: 8px; align-items: center; color: var(--text-dim); }
.status .steps .s.on { color: var(--text-bright); }
.status .steps .s.done { color: var(--good); }

.spinner {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  background: var(--bg-card); border: 1px solid var(--line-strong); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem; box-shadow: var(--shadow);
  animation: slidein .25s ease;
}
.toast.ok { border-left-color: var(--good); }
.toast.err { border-left-color: var(--bad); }
@keyframes slidein { from { opacity: 0; transform: translateY(8px); } }

/* ---------------- sections ---------------- */

.section { padding: 60px 0; }
.section.alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section .section-head { max-width: 640px; margin-bottom: 30px; }
.section .section-head p { color: var(--text-dim); }

.funnel {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(105deg, rgba(93, 0, 179, .35), rgba(142, 68, 173, .2));
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 30px 34px; margin: 20px 0 60px;
}
.funnel h2 { margin: 0 0 4px; }
.funnel p { margin: 0; color: var(--text-dim); }

/* ---------------- galleries & tables ---------------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.gallery .nft {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px; text-align: center;
}
.gallery .nft img { width: 100%; aspect-ratio: 1; image-rendering: pixelated; border-radius: 6px; background: var(--bg-inset); }
.gallery .nft .nm { font-weight: 700; color: var(--text-bright); font-size: .88rem; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery .nft .by { font-family: var(--font-mono); font-size: .68rem; color: var(--text-dim); }

.tokens-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tokens-table th { text-align: left; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tokens-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tokens-table .sym { font-family: var(--font-head); font-weight: 800; color: var(--accent-soft); }
.tokens-table .mono { font-family: var(--font-mono); font-size: .78rem; }
.table-scroll { overflow-x: auto; }

/* ---------------- info blocks (build page) ---------------- */

.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
@media (min-width: 900px) { .explain { grid-template-columns: 1fr 1fr; } }
.explain .x {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.explain .x .n { font-family: var(--font-mono); color: var(--accent); font-size: .8rem; }
pre.code {
  background: var(--bg-inset); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; overflow-x: auto; font-family: var(--font-mono); font-size: .8rem; line-height: 1.55; color: #cfc6e8;
}
pre.code .c { color: #7d7395; }
pre.code .k { color: var(--accent-soft); }
pre.code .s { color: #86efac; }

.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.linklist li { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.linklist a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; color: var(--text); }
.linklist a:hover { text-decoration: none; border-color: var(--accent); color: var(--text-bright); }
.linklist .where { color: var(--text-dim); font-size: .85rem; }

/* ---------------- wallet page bits ---------------- */

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .95rem; align-items: baseline; }
.kv dt { color: var(--text-dim); font-weight: 600; }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.secret-box {
  font-family: var(--font-mono); font-size: .85rem; word-break: break-all;
  background: var(--bg-inset); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  padding: 14px; filter: blur(6px); transition: filter .2s; user-select: none;
}
.secret-box.revealed { filter: none; user-select: all; }
.copy-addr { font-family: var(--font-mono); font-size: .9rem; word-break: break-all; background: var(--bg-inset); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }

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

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 50px; margin-top: 40px; color: var(--text-dim); font-size: .9rem; }
.site-footer .wrap { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-footer .foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer img { height: 22px; opacity: .85; }

/* ---------------- modal ---------------- */

dialog.modal {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 28px; max-width: 480px; width: calc(100% - 40px);
  box-shadow: var(--shadow);
}
dialog.modal::backdrop { background: rgba(10, 8, 16, .7); backdrop-filter: blur(3px); }
dialog.modal h3 { margin-top: 0; }

/* ---------------- sign-in modal + account menu ---------------- */

.login-modal { max-width: 420px; }
.login-modal h3 { margin-top: 0; }
.login-modal .sub { color: var(--text-dim); margin-bottom: 18px; }
.auth-opts { display: flex; flex-direction: column; gap: 10px; }
.auth-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; color: var(--text-bright);
  background: var(--bg-inset); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 13px 16px; cursor: pointer; transition: border-color .12s, background .12s;
}
.auth-opt:hover { border-color: var(--accent); background: var(--bg-card); }
.auth-opt .ic { font-size: 1.15rem; width: 22px; text-align: center; flex: none; }
.auth-opt em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--good); }
.auth-opt.primary { background: linear-gradient(90deg, rgba(120,39,230,.28), rgba(142,68,173,.18)); border-color: var(--accent); }
/* Google: a face that matches the other buttons, with Google's own
   (invisible) sign-in iframe stretched over it as the real click target —
   only that iframe may open the popup, and it cannot be restyled. */
.g-wrap { position: relative; }
.g-wrap .ic { display: inline-flex; align-items: center; justify-content: center; }
.g-wrap .g-mark { display: block; width: 18px; height: 18px; }
.g-wrap:focus-within { border-color: var(--accent); background: var(--bg-card); }
.g-wrap:active { transform: translateY(1px); }
.g-overlay {
  position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; opacity: .001;
}
/* Google's button is a fixed height shorter than our face, which would
   leave the top and bottom edges dead. A hair of scale spreads the hit area
   over the whole face — it is invisible, so nothing distorts on screen. */
.g-overlay > * { transform: scale(1.12); }
/* GSI never loaded: the face takes the click itself and explains why. */
.g-wrap.g-dead { opacity: .6; }
#auth-import { display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 0; }
.login-modal .hint { margin-top: 16px; }

.acct-menu {
  position: fixed; z-index: 200; min-width: 220px;
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; gap: 2px;
}
.acct-menu .acct-addr { font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim); word-break: break-all; padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-menu a, .acct-menu button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  color: var(--text); font-family: var(--font-body); font-size: .92rem; font-weight: 600;
  padding: 9px 10px; border-radius: 7px; cursor: pointer;
}
.acct-menu a:hover, .acct-menu button:hover { background: var(--bg-raised); color: var(--text-bright); text-decoration: none; }
.acct-menu button.danger { color: var(--bad); }

/* ---------------- NFT studio tabs + upload ---------------- */

.tabs {
  display: flex; gap: 6px; background: var(--bg-inset);
  border: 1px solid var(--line-strong); border-radius: 13px; padding: 6px;
  margin: 0 auto 24px; max-width: 460px;
}
.tabs button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; color: var(--text-dim);
  background: transparent; border: 0; border-radius: 9px; padding: 12px 16px; cursor: pointer;
  transition: color .12s, background .12s;
}
.tabs button:hover { color: var(--text-bright); }
.tabs button[aria-selected="true"] {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: #fff; box-shadow: 0 4px 16px rgba(120, 39, 230, .35);
}
.tabs.mini { margin: 0 0 14px; max-width: none; padding: 4px; border-radius: 11px; }
.tabs.mini button { padding: 8px 10px; font-size: .88rem; border-radius: 8px; }
.tabpane[hidden] { display: none; }

.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-inset);
  padding: 26px; text-align: center; cursor: pointer; transition: border-color .12s, background .12s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--bg-card); }
.dropzone .hint { margin: 6px 0 0; }
.upload-preview { max-width: 100%; max-height: 260px; border-radius: var(--radius-sm); margin: 0 auto; display: block; }
.badge-ouro { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; color: var(--accent-soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 9px; }

/* ---------------- share modal + confetti ---------------- */

.share-modal { max-width: 460px; }
.share-modal .share-head h3 { margin: 0 0 2px; }
.share-modal .share-head .sub { color: var(--text-dim); margin-bottom: 14px; }
.share-img {
  display: block; width: 132px; height: 132px; object-fit: contain; margin: 0 auto 14px;
  image-rendering: pixelated; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-inset);
}
.share-modal textarea.input { resize: vertical; font-size: .95rem; line-height: 1.5; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.share-btns .btn { flex: 1 1 auto; padding: 11px 14px; font-size: .92rem; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
#confetti i {
  position: absolute; top: -16px; display: block; border-radius: 2px; opacity: .95;
  animation-name: confetti-fall; animation-timing-function: cubic-bezier(.25,.4,.55,1); animation-fill-mode: forwards;
}
@keyframes confetti-fall {
  to { transform: translate(var(--drift, 0), 105vh) rotate(var(--spin, 360deg)); opacity: .7; }
}

/* ---------------- build page: your journey ---------------- */

.yours {
  margin-top: 16px; padding: 14px; border-radius: var(--radius-sm);
  background: rgba(120, 39, 230, .1); border: 1px solid var(--line-strong);
}
.yours .yours-k { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--good); margin-bottom: 8px; }
.yours .mono { font-family: var(--font-mono); font-size: .8rem; word-break: break-all; }
.yours .mini-gallery { display: flex; gap: 8px; flex-wrap: wrap; }
.yours .mini-gallery img { width: 56px; height: 56px; border-radius: 8px; image-rendering: pixelated; border: 1px solid var(--line-strong); background: var(--bg-inset); }
.yours .tok-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; background: var(--bg-inset); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; margin: 0 6px 6px 0; }
.yours .tok-pill .dexed { font-size: .68rem; color: var(--good); }
.yours .not-yet { color: var(--text-dim); font-size: .9rem; }
.yours .not-yet a { font-weight: 700; }
.yours .share-inline { margin-top: 10px; }


/* ---------------- multi-image upload thumbs ---------------- */

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.thumbs .thumb { position: relative; width: 72px; height: 72px; }
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg-inset); }
.thumbs .thumb button {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--bad);
  font-size: .65rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.thumbs .thumb.add {
  display: grid; place-items: center; border: 1.5px dashed var(--line-strong); border-radius: 8px;
  color: var(--text-dim); font-size: 1.3rem; cursor: pointer;
}
.nft-upload.compact .dropzone { padding: 16px; }
.nft-upload.compact .thumbs .thumb { width: 56px; height: 56px; }

.thumbs .thumb .thumb-loading { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg-inset); font-size: 1.1rem; }
