/* =========================================================
   GIVER: kyberia.sk heritage × cypherpunk terminal
   ========================================================= */
@font-face {
  font-family: "Share Tech Mono";
  src: url("/fonts/share-tech-mono-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --bg: #000;
  --bg-2: #050a05;
  --surface: #000;
  --surface-2: #0a140a;
  --line: #1f3a12;
  --line-2: #6dae42;          /* kyberia green: node borders */
  --ink: #ffffff;             /* kyberia: titles & links are white */
  --ink-2: #6dae42;           /* kyberia: meta text is green */
  --ink-3: #4f7d31;
  --neon: #00ff80;            /* giver terminal green */
  --acid: #00ff80;
  --cyber: #66ffcc;
  --accent-ink: #000;
  --danger: #ff3b3b;          /* kyberia's single red */
  --warn: #ffd400;
  --ok: #00ff80;
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: 0 0 18px rgba(0, 255, 128, .15);
  --font: Tahoma, Verdana, "DejaVu Sans", "Lucida Grande", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, Menlo, monospace;
  --display: var(--mono);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 13px/1.45 var(--font); }
body::after { /* CRT scanlines from the 0th giver */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .22;
  background: repeating-linear-gradient(rgba(0,0,0,0) 0, rgba(0,0,0,.35) 1px, rgba(0,0,0,0) 3px);
}
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 16px 56px; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--neon); text-decoration: underline; }
h1, h2, h3 { font-family: var(--mono); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 4.4vw, 44px); color: var(--neon); text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 0 12px rgba(0,255,128,.55); }
h2 { font-size: 22px; color: var(--neon); text-transform: uppercase; letter-spacing: .05em; }
h3 { font: bold 13px var(--font); color: var(--ink-2); text-transform: lowercase; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 11px; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.sechead { text-align: center; font: bold 12px var(--font); color: var(--ink-2); margin: 4px 0 10px; text-transform: none; }
.sechead b { color: var(--ink); }

/* ---------- buttons (0th giver style) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 14px; border: 1px solid var(--line-2); background: transparent; color: var(--neon);
  font: 15px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
  text-decoration: none !important; white-space: nowrap; transition: all .15s;
}
.btn:hover { background: var(--neon); color: #000; box-shadow: 0 0 14px rgba(0,255,128,.7); border-color: var(--neon); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; background: transparent; color: var(--neon); }
.btn.primary { background: var(--neon); color: #000; border-color: var(--neon); box-shadow: 0 0 10px rgba(0,255,128,.35); }
.btn.primary:hover { background: #7dffbf; }
.btn.primary:disabled { background: var(--neon); color: #000; }
.btn.ghost { border-color: transparent; color: var(--ink-2); }
.btn.lg { padding: 11px 20px; font-size: 18px; }
.btn.block { width: 100%; white-space: normal; }   /* long labels wrap on phones */
.btn.sm { padding: 4px 9px; font-size: 13px; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #000; box-shadow: none; }
.iconbtn { background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 4px 6px; font: 14px var(--mono); }
.iconbtn:hover { color: var(--neon); }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: #000; border-bottom: 1px solid var(--line-2); box-shadow: 0 0 12px rgba(0,255,128,.12); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--neon); font: 24px var(--mono); letter-spacing: .18em; text-shadow: 0 0 10px rgba(0,255,128,.7); text-decoration: none !important; }
.brand img { width: 34px; height: 34px; image-rendering: pixelated; }
.brand small { font-size: 11px; letter-spacing: .05em; color: var(--ink-2); text-shadow: none; font-family: var(--font); }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink); padding: 5px 10px; font: bold 12px var(--font); text-transform: lowercase; border: 1px solid transparent; }
.nav a:hover { color: var(--neon); text-decoration: none; border-color: var(--line); }
.nav a.active { color: var(--neon); border-color: var(--line-2); }
.topbar .spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 1px 7px; border: 1px solid var(--line-2); color: var(--ink-2); }
.pill.net { color: var(--warn); border-color: var(--warn); }
.pill.ok { color: var(--neon); border-color: var(--neon); }
.pill.accent { color: var(--neon); border-color: var(--neon); }
.walletchip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px 3px 4px; background: #000; border: 1px solid var(--line-2); color: var(--neon); cursor: pointer; font: 14px var(--mono); }
.walletchip img { width: 20px; height: 20px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: #000; border: 2px solid var(--line-2); padding: 4px; z-index: 60; box-shadow: var(--shadow); }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; color: var(--ink); background: none; border: 0; font: 12px var(--font); cursor: pointer; text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--neon); }
.menu .sep { border-top: 1px solid var(--line); margin: 4px 0; }
.mobile-nav { display: none; }
@media (max-width: 760px) {
  .nav, .topbar .pill.net, .brand small { display: none; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: #000; border-top: 1px solid var(--line-2);
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .mobile-nav a { color: var(--ink-2); font: 13px var(--mono); text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 14px; text-decoration: none; }
  .mobile-nav a.active { color: var(--neon); text-shadow: 0 0 8px rgba(0,255,128,.6); }
  .mobile-nav svg { width: 20px; height: 20px; }
  main { padding-bottom: 90px; }
}
.devnet-bar { background: #000; color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 11px; text-align: center; padding: 4px 12px; }
.devnet-bar b { color: var(--warn); }
.devnet-bar a { color: var(--ink); text-decoration: underline; }

/* ---------- kyberia three-column home ---------- */
.portal { display: grid; grid-template-columns: 200px minmax(0, 1fr) 230px; gap: 18px; align-items: start; }
.portal aside { font-size: 11px; }
.portal aside .item-s { margin-bottom: 10px; line-height: 1.35; }
.portal aside .item-s a { color: var(--ink); }
.portal aside .meta { color: var(--ink-2); }
.portal aside .meta b { color: var(--ink); font-weight: normal; }
.giverrow { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.giverrow .av { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); }
@media (max-width: 1000px) {
  .portal { grid-template-columns: minmax(0, 1fr) 220px; }
  .portal .left { grid-column: 1 / -1; }
  .portal .left .steps { grid-template-columns: repeat(3, 1fr); }
  .portal .left .feed { display: none; }   /* fresh nodes / last redeemed: desktop only */
}
@media (max-width: 600px) { .portal .left .steps { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .portal { grid-template-columns: 1fr; } .portal .right { order: 2; } }

.manifest { border: 2px solid var(--line-2); padding: 14px 16px; margin-bottom: 16px; }
.manifest h1 { font-size: clamp(22px, 3.4vw, 32px); margin-bottom: 8px; }
.manifest p { color: var(--ink-2); margin-bottom: 10px; }
.manifest p b { color: var(--ink); font-weight: normal; }
.terminal { font: 13px/1.6 var(--mono); color: var(--neon); }
.terminal span { color: var(--ink-3); }
.cursor::after { content: "█"; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* steps (used on sell page) */
.steps { display: grid; gap: 8px; }
.step { display: flex; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); }
.step .n { flex: 0 0 22px; height: 22px; display: grid; place-items: center; font: 14px var(--mono); color: #000; background: var(--neon); }
.step b { display: block; color: var(--ink); }
.step span { color: var(--ink-2); font-size: 11px; }

/* ---------- toolbar / tabs ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; justify-content: center; }
.tabs { display: inline-flex; gap: 0; border: 1px solid var(--line-2); }
.tabs button { background: none; border: 0; color: var(--ink-2); font: 14px var(--mono); text-transform: uppercase; padding: 4px 12px; cursor: pointer; letter-spacing: .05em; }
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button.active { background: var(--neon); color: #000; }
.search { flex: 1; min-width: 180px; max-width: 360px; position: relative; margin: 0; }
.search svg { display: none; }
.search input[type=search] { text-align: center; }

/* ---------- nodes (listing cards, kyberia style) ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.card { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 0 12px; padding: 8px; border: 2px solid var(--line-2); background: #000;
  color: var(--ink); text-decoration: none !important; transition: box-shadow .15s, border-color .15s; position: relative; }
.card:hover { border-color: var(--neon); box-shadow: var(--shadow); color: var(--ink); }
.card .cover { width: 82px; height: 102px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .cover .badge-wrap { display: none; }
.card .body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card .title { font: 13px/1.3 var(--font); color: var(--ink); }
.card:hover .title { text-decoration: underline; }
.card .teaser { color: var(--ink-2); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { color: var(--ink-2); font-size: 11px; margin-top: auto; }
.card .meta b { color: var(--ink); font-weight: normal; }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.price { font: 16px var(--mono); color: var(--neon); }
.price small { font-size: 12px; color: var(--ink-2); margin-left: 4px; }
.badge { display: inline-block; white-space: nowrap; font: 12px var(--mono); padding: 0 6px; border: 1px solid var(--line-2); color: var(--ink-2); text-transform: uppercase; }
.badge.hot { color: var(--warn); border-color: var(--warn); }
.badge.out { color: var(--danger); border-color: var(--danger); }
.badge.key { color: var(--cyber); border-color: var(--cyber); }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); border: 1px dashed var(--line-2); }
.skeleton { background: linear-gradient(90deg, #000 0%, #0b1a0b 50%, #000 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border: 1px solid var(--line); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- panels / forms ---------- */
.panel { background: #000; border: 2px solid var(--line-2); padding: 14px 16px; }
.panel + .panel { margin-top: 14px; }
.panel h3 { margin-bottom: 10px; }
label { display: block; font: bold 11px var(--font); margin: 0 0 4px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
.field .hint { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
input[type=text], input[type=number], input[type=search], textarea, select {
  width: 100%; padding: 6px 8px; border: 1px solid #555; background: #000; color: var(--ink); font: 13px var(--font); border-radius: 0; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--neon); box-shadow: 0 0 8px rgba(0,255,128,.35); }
input::placeholder, textarea::placeholder { color: #666; }
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
textarea.keys { font: 13px/1.5 var(--mono); min-height: 130px; }
.inline { display: flex; gap: 8px; }
.inline > * { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border: 1px solid var(--line); background: #000; color: var(--ink-2); font: 14px var(--mono); cursor: pointer; text-transform: lowercase; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.active { border-color: var(--neon); color: #000; background: var(--neon); }
.drop { border: 2px dashed var(--line-2); padding: 24px 16px; text-align: center; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--neon); box-shadow: inset 0 0 20px rgba(0,255,128,.12); }
.drop svg { width: 30px; height: 30px; color: var(--neon); }
.drop b { display: block; font: 17px var(--mono); color: var(--neon); text-transform: uppercase; margin: 6px 0 2px; }
.filelist { list-style: none; padding: 0; margin: 10px 0 0; }
.filelist li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); margin-top: 4px; }
.filelist .ext { font: 12px var(--mono); text-transform: uppercase; color: #000; background: var(--ink-2); padding: 0 5px; min-width: 40px; text-align: center; }
.filelist .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist .size { color: var(--ink-3); font: 12px var(--mono); }
.keybox { font: 15px var(--mono); color: var(--cyber); background: #001510; border: 1px dashed var(--cyber); padding: 6px 10px; display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 6px; word-break: break-all; }
.callout { padding: 9px 12px; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.callout b { color: var(--ink); }
.callout.ok { border-color: var(--neon); box-shadow: inset 0 0 18px rgba(0,255,128,.08); }
.callout.err { border-color: var(--danger); color: #ffb3b3; }
.callout.warn { border-color: var(--warn); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); }
.seg button { background: #000; border: 0; color: var(--ink-2); padding: 9px 6px; cursor: pointer; font: 12px var(--font); text-align: center; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button b { display: block; font: 16px var(--mono); text-transform: uppercase; color: var(--ink); }
.seg button.active { background: var(--neon); color: #000; }
.seg button.active b { color: #000; }

/* ---------- item page ---------- */
.item { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.item .art { position: sticky; top: 70px; }
.item .art img { width: 100%; border: 2px solid var(--line-2); display: block; background: var(--bg-2); }
.item .metaline { color: var(--ink-2); font-size: 12px; }
.item .metaline a, .item .metaline b { color: var(--ink); font-weight: normal; }
.meter { height: 10px; border: 1px solid var(--line-2); background: #000; }
.meter span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--neon) 0 6px, transparent 6px 8px); }
.buybox { padding: 14px 16px; border: 2px solid var(--neon); box-shadow: var(--shadow); }
.buybox .bigprice { font: 34px var(--mono); color: var(--neon); text-shadow: 0 0 10px rgba(0,255,128,.5); }
.desc { white-space: pre-wrap; color: var(--ink); overflow-wrap: anywhere; }
/* long unbroken strings (sha-256, mint addresses, signatures) wrap instead of widening the page on phones */
.item > * { min-width: 0; }
.item p, .item dd, .item li, .item .mono { overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 12px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
pre.code { font: 12px/1.5 var(--mono); color: var(--neon); background: #020802; border: 1px solid var(--line); padding: 10px; overflow-x: auto; white-space: pre; }
@media (max-width: 760px) { .item { grid-template-columns: minmax(0, 1fr); } .item .art { position: static; max-width: 280px; } }

/* ---------- sell page ---------- */
.sell { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sell .preview { position: sticky; top: 70px; }
@media (max-width: 900px) { .sell { grid-template-columns: minmax(0, 1fr); } .sell .preview { position: static; } }
.progress { list-style: none; padding: 0; margin: 0 0 10px; font-family: var(--mono); font-size: 15px; }
.progress li { display: flex; gap: 8px; align-items: center; padding: 3px 0; color: var(--ink-3); }
.progress li::before { content: "[ ]"; }
.progress li.active { color: var(--ink); }
.progress li.active::before { content: "[»]"; color: var(--neon); }
.progress li.done { color: var(--neon); }
.progress li.done::before { content: "[✓]"; }
.progress li.fail { color: var(--danger); }
.progress li.fail::before { content: "[!]"; }
.progress .dot { display: none; }
.bar { height: 6px; border: 1px solid var(--line); }
.bar span { display: block; height: 100%; width: 0; background: var(--neon); transition: width .2s; }

/* ---------- modal & toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .8); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow: auto; background: #000; border: 2px solid var(--neon); box-shadow: 0 0 30px rgba(0,255,128,.25); padding: 16px 18px; }
.modal.wide { max-width: 520px; }
.modal header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal header h3 { margin: 0; font: 18px var(--mono); color: var(--neon); text-transform: uppercase; }
@media (max-width: 520px) { .overlay { align-items: flex-end; padding: 0; } .modal { max-width: none; padding-bottom: calc(18px + env(safe-area-inset-bottom)); } }
.walletlist { display: grid; gap: 6px; }
.walletlist button, .walletlist a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); background: #000;
  color: var(--ink); font: 13px var(--font); cursor: pointer; text-align: left; text-decoration: none !important; }
.walletlist button:hover, .walletlist a:hover { border-color: var(--neon); color: var(--neon); }
.walletlist img { width: 28px; height: 28px; }
.walletlist .tag { margin-left: auto; font: 12px var(--mono); color: var(--neon); text-transform: uppercase; }
.qr { background: #fff; padding: 10px; width: 250px; max-width: 100%; margin: 0 auto; border: 2px solid var(--neon); }
.qr svg { width: 100%; height: auto; display: block; }
.toasts { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: 20px; display: grid; gap: 6px; width: min(440px, calc(100vw - 24px)); }
.toast { padding: 9px 12px; background: #000; border: 1px solid var(--line-2); font: 12px var(--font); color: var(--ink); box-shadow: var(--shadow); }
.toast a { text-decoration: underline; }
.toast.err { border-color: var(--danger); }
.toast.ok { border-color: var(--neon); color: var(--neon); }
@media (max-width: 760px) { .toasts { bottom: 76px; } }

/* ---------- tables & shop ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; font: bold 11px var(--font); color: var(--ink-2); padding: 5px 8px; border-bottom: 1px solid var(--line-2); text-transform: lowercase; }
.table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.shoprow { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 2px solid var(--line-2); }
.shoprow + .shoprow { margin-top: 8px; }
.shoprow img { width: 50px; height: 62px; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 600px) { .shoprow { grid-template-columns: 50px 1fr; } .shoprow > .row { grid-column: 1 / -1; justify-content: flex-start !important; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 16px; }
.stat { padding: 10px 12px; border: 2px solid var(--line-2); }
.stat b { display: block; font: 26px var(--mono); color: var(--neon); font-weight: normal; }
.stat span { color: var(--ink-2); font-size: 11px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 11px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 18px 16px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.foot a { color: var(--ink); }
.foot .links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; padding-bottom: 86px; } .foot .links { justify-content: flex-start; } }

.spin { width: 12px; height: 12px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
input[type=file] { color: var(--ink-2); font: 12px var(--font); max-width: 100%; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 4px 10px; border: 1px solid var(--line-2); background: #000; color: var(--neon); font: 14px var(--mono); text-transform: uppercase; cursor: pointer; }

a.gnsh { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
a.gnsh:hover { color: var(--neon); text-decoration-style: solid; }

#slogan { min-height: 1.15em; }
@media (max-width: 760px) { #slogan { min-height: 2.3em; } }

/* ---------- wordmark: the keyhole-G logo is the G of GIVER ---------- */
.brand { gap: 0; }
.brand .brand-g { width: 30px; height: 30px; margin-right: 2px; image-rendering: pixelated; }
.brand .brand-rest { line-height: 1; }
.eu-tag { display: inline-flex; align-items: center; gap: 7px; margin-left: 4px; }
.eu-tag small { color: var(--ink-2); font: 11px var(--font); letter-spacing: .03em; }
.eu-flag { width: 24px; height: 16px; image-rendering: pixelated; vertical-align: middle; }
.eu-line .eu-flag { width: 21px; height: 14px; margin-right: 4px; }
.lang-sel { width: auto; padding: 3px 6px; font: 13px var(--mono); background: #000; color: var(--ink-2); border: 1px solid var(--line); }
.lang-sel:focus { color: var(--ink); }
.devnet-bar { position: relative; padding-right: 34px; }
.devnet-bar .bar-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 0 6px; font-size: 12px; }
@media (max-width: 1100px) { .eu-tag small { display: none; } }
@media (max-width: 760px) { .lang-sel { max-width: 70px; } }

/* ---------- collapsible blocks (remembered per browser / wallet) ---------- */
.fold-head { cursor: pointer; user-select: none; }
.fold-head::after { content: " ▾"; color: var(--ink-3); font-size: .9em; }
.fold.folded > .fold-head::after, .fold.folded .foot-toggle .fold-head::after { content: " ▸"; }
.fold.folded > .fold-body, .fold.folded .fold-body { display: none !important; }
.foot-toggle { max-width: 1180px; margin: 0 auto; padding: 4px 16px 0; text-align: right; }
.foot-toggle .fold-head { font: 12px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.foot.folded { border-top-color: var(--line); }

/* ---------- views / fomo ---------- */
.views { color: var(--ink-2); font: 12px var(--mono); white-space: nowrap; }
.views svg { width: 13px; height: 13px; vertical-align: -2px; }
.views .hot { color: var(--warn); }
.fomo { color: var(--warn); font: 12px var(--mono); }
.sortsel { width: auto; padding: 4px 8px; font: 13px var(--mono); }

/* footer newsletter sign-up */
.news-form { margin: 4px 0 12px; max-width: 420px; }
.news-box { border: 1px solid var(--line-2); padding: 10px 12px 2px; margin-bottom: 18px; }
.news-box .news-form { margin: 0 0 8px; }
.news-box .news-form label { color: var(--neon); font-weight: bold; text-transform: lowercase; }
.news-box .news-form .inline { flex-wrap: wrap; }
.news-box .news-form input { flex: 1 1 100%; }
.news-box .news-form button { flex: 1 1 100%; }
.news-form label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; text-transform: lowercase; }
.news-form .inline { gap: 6px; }
.news-form input { flex: 1; min-width: 0; }
.news-form .small { margin-top: 4px; }

/* full-screen photo viewer (lightbox) */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .96); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100vw; max-height: 100vh; width: auto; height: auto; object-fit: contain; display: block; }
.lightbox button { position: absolute; background: rgba(0, 0, 0, .6); color: var(--neon); border: 1px solid var(--line-2); font: inherit; cursor: pointer; }
.lightbox .lb-close { top: 10px; right: 10px; width: 44px; height: 44px; font-size: 20px; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 72px; font-size: 34px; line-height: 1; }
.lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }
.lightbox .lb-count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: var(--ink-2, #9fd47a); font-size: 13px; }
.lightbox .lb-open { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--ink-3, #6dae42); }
.zoomable { cursor: zoom-in; }

/* wide tables (redemption history) scroll inside their box instead of widening the page on phones */
.item .table { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 420px) {   /* small Android phones (360 dp): keep the wallet button whole */
  .topbar-in { gap: 8px; padding: 8px 10px; }
  .lang-sel { max-width: 54px; }
  #walletSlot .btn { padding-left: 8px; padding-right: 8px; letter-spacing: 0; }
}
/* home: marketplace token + overall statistics (right column) */
.mica { display: block; border: 1px dashed var(--warn); padding: 6px 8px; color: var(--ink); text-decoration: none; }
.mica:hover { background: rgba(255, 212, 0, .06); }
.draftpill { display: inline-block; background: var(--warn); color: #000; font: bold 10px var(--font); text-transform: uppercase; letter-spacing: .06em; padding: 1px 5px; margin-bottom: 3px; }
.mica-t { display: block; }
table.gstats { width: 100%; border-collapse: collapse; }
table.gstats td { padding: 3px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
table.gstats td:first-child { color: var(--ink-2); }
table.gstats td:last-child { text-align: right; font-family: var(--mono); color: var(--neon); white-space: nowrap; padding-left: 8px; }
table.gstats td:last-child .faint { color: var(--ink-3); font-size: 11px; }
/* help page */
.hnote { border: 1px dashed var(--warn); padding: 8px 12px; margin: 10px 0 16px; color: var(--ink); }
.htoc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.htoc li { margin: 3px 0; break-inside: avoid; }
.htoc a { color: var(--ink); }
.hchap { margin-top: 18px; scroll-margin-top: 70px; }
.hchap h2 { display: flex; gap: 10px; align-items: center; text-transform: none; }
.hnum { display: inline-grid; place-items: center; min-width: 30px; height: 30px; background: var(--neon); color: #000; font: 16px var(--mono); text-shadow: none; }
.hbody { font-size: 15px; line-height: 1.6; color: var(--ink); }
.hbody.withshot { display: grid; grid-template-columns: 1fr 230px; gap: 22px; align-items: start; }
.htext b { color: var(--neon); font-weight: normal; }
.htext dt { color: var(--neon); font-family: var(--mono); margin-top: 10px; }
.htext dd { margin: 2px 0 0 16px; }
.htext li { margin: 6px 0; }
.htext a { color: var(--cyber); }
.hshot { margin: 0; }
.hshot img { width: 100%; height: auto; border: 2px solid var(--line-2); cursor: zoom-in; display: block; }
.hshot figcaption { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 4px; }
.hshot + .hshot { margin-top: 14px; }
.htop { display: inline-block; margin-top: 10px; color: var(--ink-3); }
.hzoom { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.hzoom img { max-width: 100%; max-height: 100%; border: 2px solid var(--line-2); }
@media (max-width: 700px) {
  .htoc ol { columns: 1; }
  .hbody.withshot { grid-template-columns: 1fr; }
  .hshot { max-width: 260px; margin: 0 auto; }
}
