/* ============================================================
   CLAWIANS — early access (clean quest flow)
   Retro arcade / pixel-art theme
   ============================================================ */

/* self-hosted fonts (no external CDN → loads in every region) */
@font-face{
  font-family:'Press Start 2P'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/press-start-2p-latin.woff2') format('woff2');
}
@font-face{
  font-family:'VT323'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/vt323-latin.woff2') format('woff2');
}

:root{
  --bg:        #0c0606;
  --bg-2:      #1a0909;
  --ink:       #ffeae6;
  --ink-dim:   #cf9b97;
  --gold:      #ffb43a;  /* gold / orange — primary CTA + accents */
  --gold-d:    #c0741a;
  --cyan:      #ff8c2a;  /* orange — ghost buttons / links / badge */
  --magenta:   #ff3b3b;  /* bright red — title */
  --green:     #3ec46e;  /* success */
  --red:       #ff4b4b;  /* alerts / danger */
  --line:      #4a1616;
  --panel:     #1c0c0c;
  --panel-2:   #271010;
  --shadow:    #050202;
  --maxw: 1120px;
}

*{ box-sizing:border-box; }
/* author display rules (flex/grid) otherwise beat the UA [hidden] rule */
[hidden]{ display:none !important; }

html{ scroll-behavior:smooth; }

html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{
  margin:0;
  min-height:100vh;
  min-height:100svh;          /* mobile: exclude browser chrome so nothing hides */
  display:flex; flex-direction:column;
  background:
    radial-gradient(1100px 640px at 80% -10%, rgba(255,140,40,.10), transparent 60%),
    radial-gradient(820px 560px at 0% 110%, rgba(230,34,34,.12), transparent 55%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
  background-attachment:fixed;
  color:var(--ink);
  font-family:'VT323', ui-monospace, monospace;
  font-size:21px;
  line-height:1.35;
  letter-spacing:.4px;
  overflow-x:hidden;
  -webkit-tap-highlight-color:transparent;
}
/* kill the 300ms tap delay + accidental double-tap zoom on controls */
button, a, .btn, input, .wallet-item, .dropdown-item{ touch-action:manipulation; }

canvas{ image-rendering:pixelated; display:block; }
a{ color:var(--cyan); text-decoration:none; }

.wrap{ width:min(var(--maxw), 92vw); margin-inline:auto; }

/* pixel headings */
.title, .brand-name, .badge, .btn, .modal-title, .claimed-title,
.q-progress, .ref-label, .t-num, .t-done, .who{
  font-family:'Press Start 2P', monospace; letter-spacing:0;
}

/* =======================================================
   FX OVERLAYS
   ======================================================= */
.crt{
  position:fixed; inset:0; z-index:60; pointer-events:none;
  background:repeating-linear-gradient(to bottom,
    rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.14) 3px, rgba(0,0,0,0) 4px);
  mix-blend-mode:multiply; animation:flicker 6s infinite steps(60);
}
@keyframes flicker{ 0%,97%,100%{opacity:.5} 98%{opacity:.36} 99%{opacity:.58} }
.vignette{
  position:fixed; inset:0; z-index:59; pointer-events:none;
  background:radial-gradient(120% 100% at 50% 50%, transparent 58%, rgba(7,3,16,.72) 100%);
}
.starfield{
  position:fixed; inset:0; z-index:0; pointer-events:none; opacity:.4;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 20%, #c9e7ff, transparent),
    radial-gradient(1px 1px at 40% 70%, #fff, transparent),
    radial-gradient(2px 2px at 85% 60%, #ffe7a8, transparent),
    radial-gradient(1px 1px at 10% 80%, #fff, transparent),
    radial-gradient(1px 1px at 55% 45%, #b8fff0, transparent);
  background-repeat:repeat; background-size:600px 600px; animation:drift 80s linear infinite;
}
@keyframes drift{ from{background-position:0 0} to{background-position:600px 600px} }
.floaters{ position:fixed; inset:0; z-index:1; pointer-events:none; }
.floaters .floater{ position:absolute; animation:bob var(--dur,8s) ease-in-out infinite;
  opacity:.65; filter:drop-shadow(0 4px 0 rgba(0,0,0,.3)); }
@keyframes bob{ 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-20px) rotate(6deg)} }

.site-header, .stage, .site-footer{ position:relative; z-index:2; }

/* =======================================================
   BUTTONS
   ======================================================= */
.btn{
  --c:#3a2a5e; --t:#fff;
  display:inline-flex; align-items:center; justify-content:center; gap:.6ch;
  font-size:11px; line-height:1; padding:14px 18px;
  color:var(--t); background:var(--c); border:0; cursor:pointer; user-select:none; text-align:center;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.18),
    inset 0 -6px 0 rgba(0,0,0,.28),
    0 6px 0 0 var(--shadow), 0 6px 0 3px rgba(0,0,0,.22);
  transition:transform .06s ease, box-shadow .06s ease, filter .12s ease;
}
.btn:hover{ filter:brightness(1.08) saturate(1.1); transform:translateY(-2px); }
.btn:active{ transform:translateY(4px);
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.18), inset 0 -3px 0 rgba(0,0,0,.28), 0 2px 0 0 var(--shadow); }
.btn:disabled{ filter:grayscale(.7) brightness(.7); cursor:not-allowed; transform:none; opacity:.7; }
.btn:disabled:hover{ transform:none; }
.btn-lg{ font-size:13px; padding:18px 24px; }
.btn-sm{ font-size:9px; padding:11px 13px; }

.btn-gold{ --c:var(--gold); --t:#3a1d00; }
.btn-gold:hover:not(:disabled){ box-shadow:
  inset 0 0 0 3px rgba(255,255,255,.35), inset 0 -6px 0 var(--gold-d),
  0 6px 0 0 var(--shadow), 0 0 22px rgba(245,181,61,.5); }
.btn-ghost{ --c:transparent; --t:var(--cyan); box-shadow:inset 0 0 0 3px var(--cyan), 0 6px 0 0 var(--shadow); }
.btn-ghost:hover:not(:disabled){ --t:#062d27; background:var(--cyan);
  box-shadow:inset 0 0 0 3px var(--cyan), 0 6px 0 0 var(--shadow), 0 0 20px rgba(255,140,42,.45); }
.btn.is-connected{ --c:var(--green); --t:#042414; }

.link-btn{ background:none; border:0; color:var(--ink-dim); cursor:pointer;
  font-family:'VT323',monospace; font-size:18px; text-decoration:underline; padding:4px; }
.link-btn:hover{ color:var(--red); }

/* =======================================================
   HEADER
   ======================================================= */
.site-header{
  position:sticky; top:0; z-index:40;
  background:linear-gradient(180deg, rgba(20,10,36,.96), rgba(20,10,36,.7));
  border-bottom:3px solid var(--line); backdrop-filter:blur(4px);
}
.header-inner{ display:flex; align-items:center; gap:20px; padding:12px 0; }
.brand{ display:flex; align-items:center; gap:12px; color:var(--ink); margin-right:auto; }
.brand-sprite{ width:34px; height:34px; display:inline-block; }
.brand-name{ font-size:16px; color:var(--gold); text-shadow:2px 2px 0 var(--shadow); }
.brand.small .brand-name{ font-size:13px; }

/* =======================================================
   STAGE / QUEST
   ======================================================= */
.stage{ flex:1; display:flex; align-items:flex-start; justify-content:center; padding:48px 0 72px; }
.quest-wrap{ width:min(560px, 92vw); }

.quest-head{ text-align:center; margin-bottom:26px; }
.mascot{ display:inline-block; animation:hover 3.2s ease-in-out infinite; }
.mascot canvas{ filter:drop-shadow(0 0 26px rgba(255,60,40,.5)); }
@keyframes hover{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.badge{ display:inline-flex; align-items:center; gap:8px; font-size:9px; color:var(--cyan);
  padding:7px 11px; margin:14px 0 16px; box-shadow:inset 0 0 0 2px var(--cyan); background:rgba(255,140,42,.08); }
.blink-dot{ width:8px; height:8px; background:var(--red); box-shadow:0 0 8px var(--red); animation:blink 1.1s steps(2) infinite; }
@keyframes blink{ 50%{opacity:.2} }

.title{
  font-size:clamp(30px, 8vw, 54px); line-height:1; margin:0 0 14px; color:var(--magenta); position:relative;
  text-shadow:3px 0 #7d1212, 0 3px #7d1212, 6px 6px 0 var(--shadow), 0 0 32px rgba(255,59,59,.45);
}
.title::after{ content:attr(data-text); position:absolute; left:0; right:0; top:0; text-align:center;
  transform:translate(-3px,-3px); z-index:-1; color:var(--gold); opacity:.28; }
.tagline{ font-size:22px; color:var(--ink-dim); margin:0; }
.tagline b{ color:var(--ink); }

/* pixel panel — beveled, notched corners */
.panel{
  position:relative;
  background:linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.06), inset 0 0 0 6px var(--shadow), 0 8px 0 0 rgba(0,0,0,.35);
  clip-path:polygon(0 8px,8px 8px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 8px,100% 8px,
    100% calc(100% - 8px),calc(100% - 8px) calc(100% - 8px),calc(100% - 8px) 100%,
    8px 100%,8px calc(100% - 8px),0 calc(100% - 8px));
  padding:26px;
}

.quest{ padding:28px; }
.qview{ display:flex; flex-direction:column; }

/* view: connect */
#viewConnect{ text-align:center; align-items:center; gap:18px; padding:18px 6px; }
.q-lead{ font-size:23px; color:var(--ink); margin:0; }
.q-foot{ font-size:16px; color:#7a6aa0; margin:0; text-align:center; }
#viewConnect .btn{ min-width:240px; }

/* view: tasks */
.q-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.who{ font-size:10px; color:var(--cyan); padding:8px 10px; background:#170d2c; box-shadow:inset 0 0 0 2px var(--line); }
.refby{ font-size:17px; color:var(--ink-dim); margin:0 0 14px; }
.refby b{ color:var(--gold); }

.q-progress{ display:flex; justify-content:space-between; font-size:10px; color:var(--ink-dim); margin-bottom:8px; }
.q-progress span:last-child{ color:var(--gold); }
.progress{ height:16px; background:#160c2a; box-shadow:inset 0 0 0 2px var(--line); padding:3px; margin-bottom:22px; }
.progress-fill{ height:100%; width:0;
  background:repeating-linear-gradient(90deg, var(--gold) 0 10px, var(--gold-d) 10px 14px);
  box-shadow:0 0 14px rgba(245,181,61,.6); transition:width .5s steps(12); }

/* task rows */
.tasks{ list-style:none; padding:0; margin:0 0 22px; display:flex; flex-direction:column; gap:12px; }
.task{ display:flex; align-items:center; gap:14px; padding:14px 16px; background:#170d2c;
  box-shadow:inset 0 0 0 2px var(--line); transition:box-shadow .15s, opacity .15s; }
.task .t-num{ flex:none; width:34px; height:34px; display:grid; place-items:center; font-size:11px;
  color:var(--gold); background:var(--panel-2); box-shadow:inset 0 0 0 2px var(--shadow); }
.task .t-body{ flex:1; min-width:0; }
.task .t-body h3{ font-family:'VT323',monospace; font-size:22px; color:var(--ink); margin:0; line-height:1.1; }
.task .t-body p{ font-size:16px; color:var(--ink-dim); margin:2px 0 0; }
.task .t-action{ flex:none; }
.task .t-action .btn{ min-width:108px; }
.task.done{ box-shadow:inset 0 0 0 2px var(--green); opacity:.85; }
.task.done .t-num{ color:#042414; background:var(--green); }
.task.pending .t-num{ color:var(--cyan); }
.t-done{ font-size:9px; color:var(--green); padding:0 6px; }

.claim{ width:100%; }
.claim.ready{ animation:pulse 1.4s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.18) saturate(1.2)} }
#claimHint{ margin-top:10px; }

/* view: claimed */
#viewClaimed{ text-align:center; align-items:center; gap:6px; }
.checkmark{ width:64px; height:64px; margin:6px auto 4px; }
.claimed-title{ font-size:18px; color:var(--green); margin:6px 0; text-shadow:2px 2px 0 var(--shadow); }
.claimed-spot{ color:var(--ink-dim); font-size:22px; margin:0 0 6px; }
.claimed-spot b{ color:var(--gold); font-family:'Press Start 2P',monospace; font-size:13px; }

.ref{ width:100%; margin:14px 0; }
.ref-label{ display:block; font-size:9px; color:var(--ink-dim); margin-bottom:8px; }
.ref-row{ display:flex; align-items:center; justify-content:center; gap:10px; }
.ref-row code{ font-family:'Press Start 2P',monospace; font-size:14px; color:var(--cyan);
  background:#170d2c; box-shadow:inset 0 0 0 2px var(--line); padding:12px 16px; }
.claimed-actions{ display:flex; align-items:center; gap:16px; margin-top:8px; }

/* =======================================================
   FOOTER
   ======================================================= */
.site-footer{ border-top:3px solid var(--line); padding:24px 0; background:rgba(12,5,24,.5); }
.footer-inner{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.footer-inner .brand{ margin-right:auto; }
.social{ display:flex; gap:18px; }
.social a{ font-family:'Press Start 2P',monospace; font-size:9px; color:var(--ink-dim); }
.social a:hover{ color:var(--gold); }
.copy{ width:100%; text-align:center; color:#6a5a8a; font-size:15px; margin:12px 0 0; }

/* =======================================================
   WALLET MODAL
   ======================================================= */
.modal-overlay{ position:fixed; inset:0; z-index:80; display:flex; align-items:center; justify-content:center;
  padding:20px; background:rgba(7,3,16,.78); backdrop-filter:blur(3px); animation:fade .2s ease; }
@keyframes fade{ from{opacity:0} }
.modal{ width:min(440px, 94vw); padding:30px; animation:pop .18s ease; }
@keyframes pop{ from{transform:translateY(10px) scale(.97); opacity:0} }
.modal-close{ position:absolute; top:12px; right:14px; z-index:2; background:none; border:0;
  color:var(--ink-dim); font-size:18px; cursor:pointer; font-family:'VT323',monospace; }
.modal-close:hover{ color:var(--red); }
.modal-title{ font-size:16px; color:var(--gold); margin:0 0 8px; text-shadow:2px 2px 0 var(--shadow); }
.modal-sub{ color:var(--ink-dim); font-size:19px; margin:0 0 22px; }

.wallet-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.wallet-item{ display:flex; align-items:center; gap:14px; padding:13px 16px; cursor:pointer;
  background:#170d2c; color:var(--ink); box-shadow:inset 0 0 0 2px var(--line);
  transition:transform .08s, box-shadow .12s, background .12s; font-size:20px; text-align:left; width:100%;
  border:0; font-family:'VT323',monospace; }
.wallet-item:hover{ transform:translateX(4px); background:#1f1140; box-shadow:inset 0 0 0 2px var(--gold); }
.wallet-item img{ width:30px; height:30px; }
.wallet-item .ph{ width:30px; height:30px; display:grid; place-items:center; background:var(--panel-2);
  color:var(--gold); font-family:'Press Start 2P',monospace; font-size:12px; }
.wallet-item .wi-name{ flex:1; }
.wallet-item .wi-tag{ font-family:'Press Start 2P',monospace; font-size:8px; color:var(--green); }
.wallet-item.busy{ opacity:.6; pointer-events:none; }

.wallet-empty{ text-align:center; color:var(--ink-dim); }
.wallet-empty p{ font-size:20px; }
.install-links{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:8px; }
.modal-foot{ font-size:16px; color:#6a5a8a; text-align:center; margin:22px 0 0; }
.modal-hint{ font-size:15px; color:#8a6a6a; text-align:center; margin:14px 0 0; }
.install-links .btn{ text-decoration:none; }

/* =======================================================
   ACCOUNT DROPDOWN
   ======================================================= */
.dropdown{ position:fixed; z-index:85; min-width:200px;
  background:linear-gradient(180deg,var(--panel-2),var(--panel));
  box-shadow:inset 0 0 0 3px var(--shadow), 0 10px 0 rgba(0,0,0,.4); padding:8px; }
.dropdown-item{ display:block; width:100%; text-align:left; border:0; cursor:pointer; background:none;
  color:var(--ink); padding:12px 14px; font-size:19px; font-family:'VT323',monospace; }
.dropdown-item:hover{ background:#1f1140; color:var(--gold); }
.dropdown-item.danger:hover{ color:var(--red); }

/* =======================================================
   TOASTS
   ======================================================= */
.toast-host{ position:fixed; bottom:20px; left:50%; transform:translateX(-50%); z-index:90;
  display:flex; flex-direction:column; gap:10px; align-items:center; }
.toast{ font-family:'Press Start 2P',monospace; font-size:10px; padding:14px 18px; color:#fff;
  background:var(--panel-2); box-shadow:inset 0 0 0 3px var(--shadow), 0 6px 0 rgba(0,0,0,.4); animation:toastIn .2s ease; }
.toast.ok{ box-shadow:inset 0 0 0 3px var(--green), 0 6px 0 rgba(0,0,0,.4); color:var(--green); }
.toast.err{ box-shadow:inset 0 0 0 3px var(--red), 0 6px 0 rgba(0,0,0,.4); color:var(--red); }
@keyframes toastIn{ from{transform:translateY(16px); opacity:0} }

/* =======================================================
   RESPONSIVE  (safe areas + touch sizing)
   ======================================================= */
/* keep header/footer/stage clear of notches & home indicators */
.site-header{ padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right); }
.header-inner{ padding-left:max(0px, env(safe-area-inset-left)); padding-right:max(0px, env(safe-area-inset-right)); }
.site-footer{ padding-bottom:calc(24px + env(safe-area-inset-bottom)); }
.toast-host{ bottom:calc(20px + env(safe-area-inset-bottom)); }

@media (max-width: 640px){
  .stage{ padding:24px 0 56px; align-items:stretch; }
  .header-inner{ gap:10px; padding:10px 0; }
  .brand-name{ font-size:14px; }
  .brand-sprite{ width:28px; height:28px; }
}

@media (max-width: 520px){
  body{ font-size:19px; }
  .wrap{ width:min(var(--maxw), 94vw); }
  /* full-width tappable connect in header */
  #headerConnect{ padding:12px 12px; }
  .header-inner .btn-label{ font-size:9px; }
  /* ensure every button is a comfortable touch target */
  .btn{ min-height:46px; }
  .btn-sm{ min-height:40px; }
  .title{ text-shadow:2px 0 #7d1212, 0 2px #7d1212, 4px 4px 0 var(--shadow), 0 0 24px rgba(255,59,59,.4); }
  .tagline{ font-size:20px; }
  .modal{ width:96vw; padding:22px 18px; max-height:90svh; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  .install-links{ flex-direction:column; }
  .install-links .btn{ width:100%; }
}
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; } html{ scroll-behavior:auto; } }

/* =======================================================
   MINT PAGE  (extends the shared theme above)
   ======================================================= */
.mint-wrap{ width:min(560px, 92vw); }
.mint{ padding:26px; }
.mview{ display:flex; flex-direction:column; }

/* supply + price */
.mint-stats{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:10px; }
.mint-stats .stat{ display:flex; flex-direction:column; gap:4px; }
.mint-stats .stat.right{ text-align:right; }
.stat-label{ font-family:'Press Start 2P',monospace; font-size:9px; color:var(--ink-dim); }
.stat-val{ font-family:'Press Start 2P',monospace; font-size:12px; color:var(--gold); }

/* preview gallery */
.gallery{ display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin:20px 0 22px; }
.gallery .g-item{ width:100%; aspect-ratio:1/1; image-rendering:pixelated;
  background:#160c0c; box-shadow:inset 0 0 0 2px var(--line); }

/* connect view */
#viewConnect{ text-align:center; align-items:center; gap:16px; padding:6px 4px 2px; }
#viewConnect .btn{ min-width:240px; }

/* mint view */
.qty-row{ display:flex; align-items:center; justify-content:space-between; margin:6px 0 8px; }
.qty-label{ font-family:'Press Start 2P',monospace; font-size:10px; color:var(--ink-dim); }
.qty-num{ font-family:'Press Start 2P',monospace; font-size:16px; color:var(--gold); min-width:28px; text-align:right; }

/* quantity slider (pixel themed) */
.qty-slider{ -webkit-appearance:none; appearance:none; width:100%; height:14px; margin:2px 0 6px;
  background:#160c0c; box-shadow:inset 0 0 0 2px var(--line); cursor:pointer; }
.qty-slider::-webkit-slider-thumb{ -webkit-appearance:none; appearance:none; width:22px; height:22px;
  background:var(--gold); box-shadow:inset 0 0 0 3px rgba(255,255,255,.25), 0 3px 0 var(--shadow); cursor:pointer; }
.qty-slider::-moz-range-thumb{ width:22px; height:22px; border:0; background:var(--gold);
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.25), 0 3px 0 var(--shadow); cursor:pointer; }
.qty-slider:focus{ outline:none; }
.qty-slider:focus::-webkit-slider-thumb{ box-shadow:inset 0 0 0 3px #fff, 0 3px 0 var(--shadow); }
.qty-scale{ display:flex; justify-content:space-between; font-family:'Press Start 2P',monospace;
  font-size:8px; color:var(--ink-dim); margin-bottom:18px; }
.mint-btn{ width:100%; }
.mint-btn.ready{ animation:pulse 1.4s ease-in-out infinite; }

/* wallet detecting state */
.wallet-detecting{ display:flex; align-items:center; gap:12px; padding:14px 16px; color:var(--ink-dim);
  font-family:'VT323',monospace; font-size:19px; background:#170d2c; box-shadow:inset 0 0 0 2px var(--line); list-style:none; }
.spinner-sm{ width:18px; height:18px; flex:none;
  background:conic-gradient(from 0deg, var(--gold), transparent 70%); border-radius:50%;
  -webkit-mask:radial-gradient(circle 6px at center, transparent 98%, #000);
  mask:radial-gradient(circle 6px at center, transparent 98%, #000); animation:spin 1s linear infinite; }

/* busy view */
#viewBusy{ text-align:center; align-items:center; gap:14px; padding:14px 6px; }
.spinner{ width:42px; height:42px; margin:6px auto;
  background:conic-gradient(from 0deg, var(--gold), transparent 70%);
  border-radius:50%; -webkit-mask:radial-gradient(circle 14px at center, transparent 98%, #000);
  mask:radial-gradient(circle 14px at center, transparent 98%, #000); animation:spin 1s linear infinite; }
@keyframes spin{ to{ transform:rotate(1turn); } }

/* minted view */
#viewMinted{ text-align:center; align-items:center; gap:10px; }
.minted-actions{ display:flex; align-items:center; gap:12px; justify-content:center; margin:6px 0 4px; flex-wrap:wrap; }
.minted-actions .btn{ text-decoration:none; }

/* contract note */
.contract-note{ text-align:center; font-size:15px; color:#7a6a6a; margin:14px 0 0; }
.contract-note code{ font-family:'Press Start 2P',monospace; font-size:10px; color:var(--cyan);
  word-break:break-all; background:#160c0c; padding:4px 6px; box-shadow:inset 0 0 0 2px var(--line); }

@media (max-width:520px){
  .mint-wrap{ width:min(560px, 94vw); }
  .mint{ padding:18px; }
  .gallery{ grid-template-columns:repeat(4, 1fr); gap:6px; margin:16px 0 18px; }
  .mint-stats{ margin-bottom:8px; }
  .stat-val{ font-size:11px; }
  /* bigger, thumb-friendly slider on touch */
  .qty-slider{ height:18px; }
  .qty-slider::-webkit-slider-thumb{ width:28px; height:28px; }
  .qty-slider::-moz-range-thumb{ width:28px; height:28px; }
  .qty-num{ font-size:18px; }
  #viewConnect .btn{ min-width:0; width:100%; }
  .minted-actions{ flex-direction:column; width:100%; }
  .minted-actions .btn{ width:100%; }
  #viewMinted .btn-gold{ width:100%; }
  .who{ font-size:9px; }
  .contract-note code{ font-size:9px; }
}
/* very small phones */
@media (max-width:360px){
  body{ font-size:18px; }
  .title{ font-size:clamp(26px, 11vw, 40px); }
  .gallery{ grid-template-columns:repeat(3, 1fr); }
}
