/* Castaways web pages (BACKEND §8, UX §0, ART §13): dark ink panels, brass for the main action, warm sand and sea
   accents, and acid lime ONLY for on-chain things (minted items, chain status, the on-chain buttons). Phone first. */

@font-face { font-family: 'Pixelify'; src: url(../fonts/pixelify-latin.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(../fonts/nunito-latin.woff2) format('woff2'); font-weight: 200 1000; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; src: url(../fonts/nunito-latin-ext.woff2) format('woff2'); font-weight: 200 1000; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --ink: #141612;
  --ink-1: #1a1c17;
  --ink-2: #20231d;
  --ink-3: #2a2e26;
  --ink-4: #363b31;
  --paper: #f1ebdc;
  --paper-2: #d9d3c3;
  --muted: #b3ad9b;      /* 7.9:1 on ink */
  --faint: #8d8977;      /* 5.0:1 on ink */
  --brass: #e2b553;
  --brass-hi: #f6d686;
  --brass-lo: #b4842f;
  --brass-line: rgba(214, 172, 86, 0.42);
  --brass-line-soft: rgba(214, 172, 86, 0.2);
  --sand: #e9cf9a;
  --sand-lo: #c9a66a;
  --sea: #5fc4d8;
  --sea-deep: #1f6f80;
  --good: #8fd16f;
  --warn: #f2c14e;
  --bad: #f07a5c;
  --ember: #d9482e;
  --ember-hi: #ef6a4c;
  /* on-chain only (ART §2) */
  --lime: #dbff45;
  --lime-dim: rgba(219, 255, 69, 0.12);
  --lime-line: rgba(219, 255, 69, 0.5);
  --lime-glow: rgba(219, 255, 69, 0.4);
  --radius: 6px;
  --radius-s: 4px;
  --hit: 48px;
  --hit-primary: 64px;
  --col: 520px;
  --gutter: 16px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Pixelify', 'Nunito', system-ui, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--paper); background-color: var(--ink);
  background-image:
    radial-gradient(110% 55% at 50% -12%, rgba(226, 181, 83, 0.17), rgba(226, 181, 83, 0) 62%),
    radial-gradient(90% 40% at 50% 112%, rgba(95, 196, 216, 0.16), rgba(95, 196, 216, 0) 70%),
    linear-gradient(180deg, #181a14 0%, #141612 48%, #121a19 100%);
  font-family: var(--font); font-size: 1rem; line-height: 1.45; font-weight: 600;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--brass-hi); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: var(--radius-s); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { display: block; flex: none; fill: currentColor; }
.ico .ico-b { opacity: 0.38; }

.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ------------------------------------------------------------------ test network ribbon (UX §0: never hidden) */
.ribbon {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 34px; padding: calc(4px + var(--safe-t)) calc(var(--gutter) + var(--safe-r)) 4px calc(var(--gutter) + var(--safe-l));
  background: repeating-linear-gradient(-45deg, #f2c14e 0 14px, #e8b23a 14px 28px); color: var(--ink);
  font-size: 0.9375rem; font-weight: 900; letter-spacing: 0.06em; text-align: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.ribbon b { letter-spacing: 0.1em; }
.ribbon span { letter-spacing: 0.01em; font-weight: 800; }

/* ------------------------------------------------------------------ header and footer */
.top {
  width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px calc(var(--gutter) + var(--safe-r)) 6px calc(var(--gutter) + var(--safe-l));
}
.ribbon + .top { padding-top: 14px; }
.app > .top:first-child { padding-top: calc(14px + var(--safe-t)); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; min-height: var(--hit); }
.brand .mark { width: 36px; height: 24px; }
.brand b { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: 0.02em; line-height: 1; }
.brand small { color: var(--muted); font-weight: 800; font-size: 0.9375rem; }
.home-link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--hit); min-width: var(--hit); padding: 0 14px; border-radius: var(--radius); white-space: nowrap; flex: none;
  border: 1px solid var(--brass-line-soft); color: var(--paper); text-decoration: none; font-weight: 800; background: rgba(20, 22, 18, 0.6); }
.home-link:hover { border-color: var(--brass-line); }
.home-link .ico { color: var(--brass); }

.foot {
  width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; margin-top: auto;
  padding: 28px calc(var(--gutter) + var(--safe-r)) calc(22px + var(--safe-b)) calc(var(--gutter) + var(--safe-l));
  color: var(--faint); font-size: 0.9375rem; text-align: center; line-height: 1.5;
}
.foot p { margin: 0; }
.foot .sep { margin: 0 6px; opacity: 0.6; }

/* ------------------------------------------------------------------ main column */
.main {
  width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto;
  padding: 8px calc(var(--gutter) + var(--safe-r)) 8px calc(var(--gutter) + var(--safe-l));
  display: flex; flex-direction: column; gap: 16px; outline: none;
}
.main > * { animation: rise 260ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .main > *, .pulse::before, .spin { animation: none !important; } }

.hero { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 18px 4px 6px; }
.hero .art { width: 168px; height: 112px; margin-bottom: 4px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.hero .art.small { width: 120px; height: 80px; }
.hero .art.icon-art { width: 72px; height: 72px; color: var(--brass); filter: none; }
.hero .art.icon-art.chain { color: var(--lime); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.title { font-family: var(--font-display); font-weight: 600; font-size: 2rem; letter-spacing: 0.01em; line-height: 1.05; color: var(--paper); }
.lead { margin: 0; color: var(--muted); font-size: 1.0625rem; font-weight: 700; max-width: 30em; }
.lead b { color: var(--paper); }
.eyebrow { color: var(--sand); font-weight: 900; font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase; }
.section-title { display: flex; align-items: center; gap: 8px; color: var(--sand); font-weight: 900; font-size: 0.9375rem; letter-spacing: 0.07em;
  text-transform: uppercase; margin: 8px 2px -4px; }
.section-title .ico { color: var(--sand-lo); }

/* ------------------------------------------------------------------ panels */
.card {
  position: relative; background: linear-gradient(180deg, rgba(32, 35, 29, 0.96), rgba(24, 26, 21, 0.96));
  border: 1px solid var(--brass-line-soft); border-radius: var(--radius); padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(0, 0, 0, 0.32);
}
.card.wood::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, #573820, #a5713f 40%, #7b5333); }
.card.chain { border-color: var(--lime-line); box-shadow: 0 0 0 1px rgba(219, 255, 69, 0.08), 0 0 26px rgba(219, 255, 69, 0.08), 0 10px 28px rgba(0, 0, 0, 0.32); }
.card h2 { font-size: 1.1875rem; font-weight: 900; }
.card p { margin: 6px 0 0; color: var(--muted); }
.stack { display: grid; gap: 12px; }
.stack-s { display: grid; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--ink-3); --fg: var(--paper); --bd: var(--brass-line);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--hit); min-width: var(--hit); padding: 0 18px; border: 1px solid var(--bd); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); font-weight: 900; font-size: 1.0625rem; line-height: 1.1; text-align: center; text-decoration: none;
  cursor: pointer; transition: transform 90ms var(--ease), filter 160ms, box-shadow 160ms, background 160ms;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 2px 0 rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled='true'] { cursor: default; filter: saturate(0.4) brightness(0.8); transform: none; }
.btn.wide { width: 100%; }
.btn.big { min-height: var(--hit-primary); font-size: 1.1875rem; padding: 0 22px; }
.btn-primary { --bg: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); --fg: #1d1606; --bd: #f3cf79;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #6e4f18, 0 8px 18px rgba(0, 0, 0, 0.35); }
.btn-chain { --bg: var(--lime); --fg: var(--ink); --bd: #efff9c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 3px 0 #6f8a10, 0 0 22px var(--lime-glow); }
.btn-chain .ico { color: var(--ink); }
.btn-quiet { --bg: rgba(20, 22, 18, 0.5); --bd: var(--brass-line-soft); --fg: var(--paper); box-shadow: none; }
.btn-quiet:hover { --bd: var(--brass-line); }
.btn-danger { --bg: linear-gradient(180deg, var(--ember-hi), var(--ember)); --fg: #fff6f2; --bd: #f58b70; }
.btn-text { --bg: transparent; --bd: transparent; --fg: var(--brass-hi); box-shadow: none; padding: 0 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.btn .ico { color: inherit; }
.actions { display: grid; gap: 10px; }
.actions.two { grid-template-columns: 1fr 1fr; }
.under { color: var(--faint); text-align: center; font-size: 0.9375rem; margin: 0; }

.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin 800ms linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ status, notices, chips */
.status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: rgba(10, 11, 9, 0.5);
  border: 1px solid var(--brass-line-soft); font-weight: 800; font-size: 1.0625rem; }
.status small { display: block; color: var(--muted); font-weight: 700; font-size: 0.9375rem; margin-top: 2px; }
.status.chain { border-color: var(--lime-line); color: var(--lime); background: var(--lime-dim); }
.status.chain small { color: #d7e6a5; }
.status.done { border-color: rgba(143, 209, 111, 0.55); }
.status.done .ico { color: var(--good); }
.status .ico.chainmark { color: var(--lime); }
.pulse { position: relative; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--brass); }
.pulse::before { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(226, 181, 83, 0.6); animation: ping 1.6s ease-out infinite; }
.status.chain .pulse { background: var(--lime); }
.status.chain .pulse::before { box-shadow: 0 0 0 0 var(--lime-glow); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 100% { box-shadow: 0 0 0 12px transparent; opacity: 0; } }
.status.chain .pulse::before { color: var(--lime-glow); }
.status:not(.chain) .pulse::before { color: rgba(226, 181, 83, 0.6); }

.notice { display: grid; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(242, 193, 78, 0.45);
  background: linear-gradient(180deg, rgba(60, 46, 16, 0.55), rgba(36, 30, 16, 0.55)); }
.notice p { margin: 0; color: var(--paper); font-weight: 800; }
.notice .note-row { display: flex; gap: 12px; align-items: flex-start; }
.notice .note-row .ico { color: var(--warn); margin-top: 1px; }
.notice.bad { border-color: rgba(240, 122, 92, 0.55); background: linear-gradient(180deg, rgba(74, 28, 18, 0.55), rgba(40, 20, 16, 0.55)); }
.notice.bad .note-row .ico { color: var(--bad); }
.notice.good { border-color: rgba(143, 209, 111, 0.5); background: rgba(30, 48, 22, 0.5); }
.notice.good .note-row .ico { color: var(--good); }
.notice .actions { grid-auto-flow: column; grid-auto-columns: minmax(0, max-content); justify-content: start; }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 10px; border-radius: 15px; font-size: 0.9375rem; font-weight: 800;
  border: 1px solid var(--brass-line-soft); color: var(--muted); background: rgba(10, 11, 9, 0.4); white-space: nowrap; }
.chip.chain { color: var(--lime); border-color: var(--lime-line); background: var(--lime-dim); }
.chip.warn { color: var(--warn); border-color: rgba(242, 193, 78, 0.45); }
.chip.good { color: var(--good); border-color: rgba(143, 209, 111, 0.45); }
.chip.bad { color: var(--bad); border-color: rgba(240, 122, 92, 0.5); }
.chip .ico { color: currentColor; }

/* ------------------------------------------------------------------ lists */
.list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.list > li + li { border-top: 1px solid rgba(214, 172, 86, 0.12); }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 2px; min-height: 64px; }
.item .thumb { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: var(--radius-s);
  background: linear-gradient(180deg, #2c3027, #22251f); border: 1px solid var(--brass-line-soft); color: var(--sand); }
.item .thumb.chain { border-color: var(--lime-line); color: var(--lime); box-shadow: 0 0 12px rgba(219, 255, 69, 0.14); }
.item .thumb svg.isle { width: 40px; height: 27px; }
.item .text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.item .text b { font-weight: 900; font-size: 1.0625rem; overflow-wrap: anywhere; }
.item .text small { color: var(--muted); font-weight: 700; font-size: 0.9375rem; }
.item .text small.chain { color: var(--lime); }
.item .side { flex: none; display: flex; align-items: center; gap: 8px; }
.item.check { cursor: pointer; }
.item.check input[type='checkbox'] { width: 26px; height: 26px; accent-color: var(--brass); flex: none; margin: 0; }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; font-weight: 900; text-align: right; }
.kv .total { font-size: 1.25rem; color: var(--paper); }
.price { font-family: var(--font-display); font-weight: 600; font-size: 2.25rem; line-height: 1; color: var(--paper); }
.price small { font-family: var(--font); font-size: 1rem; color: var(--muted); font-weight: 800; margin-left: 6px; }
.hr { height: 1px; background: rgba(214, 172, 86, 0.16); border: 0; margin: 4px 0; }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 800; color: var(--paper-2); }
.input { min-height: var(--hit); width: 100%; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--brass-line); background: #0f110d;
  color: var(--paper); font-weight: 800; font-size: 1.125rem; }
.input::placeholder { color: #77735f; }
.input.code { text-align: center; font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.32em; text-transform: uppercase; min-height: 68px; padding-left: calc(14px + 0.32em); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; border-radius: calc(var(--radius) + 2px); background: #0f110d; border: 1px solid var(--brass-line-soft); }
.seg button { min-height: var(--hit); border-radius: var(--radius-s); border: 1px solid transparent; background: transparent; font-weight: 900; cursor: pointer; display: grid; gap: 0; align-content: center; padding: 4px 8px; }
.seg button small { color: var(--muted); font-weight: 700; font-size: 0.9375rem; }
.seg button[aria-pressed='true'] { background: var(--ink-3); border-color: var(--brass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper .btn { min-width: var(--hit); padding: 0; }
.stepper output { min-width: 56px; text-align: center; font-family: var(--font-display); font-size: 1.75rem; }
.islands-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.islands-pick button { min-height: var(--hit); padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--brass-line-soft); background: rgba(10, 11, 9, 0.4);
  font-weight: 900; cursor: pointer; }
.islands-pick button[aria-pressed='true'] { border-color: var(--brass); background: rgba(226, 181, 83, 0.14); color: var(--brass-hi); }
.amount-in { width: 110px; min-height: 44px; text-align: right; }

/* ------------------------------------------------------------------ details fold (the only place for hex) */
details.fold { color: var(--faint); font-size: 0.9375rem; }
details.fold summary { cursor: pointer; min-height: var(--hit); display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--muted); list-style: none; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::before { content: '+'; width: 18px; text-align: center; font-weight: 900; }
details.fold[open] summary::before { content: '–'; }
details.fold dl { margin: 0 0 8px; display: grid; gap: 4px; }
details.fold dt { color: var(--muted); }
details.fold dd { margin: 0 0 6px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.875rem; overflow-wrap: anywhere; color: var(--paper-2); }

/* ------------------------------------------------------------------ wallet chooser sheet */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 4, 0.66); display: grid; align-items: end; justify-items: center; animation: fade 160ms both; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(100%, 460px); background: var(--ink-1); border: 1px solid var(--brass-line); border-bottom: 0; border-radius: 12px 12px 0 0;
  padding: 18px var(--gutter) calc(18px + var(--safe-b)); display: grid; gap: 12px; animation: up 220ms var(--ease) both; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.sheet h2 { font-size: 1.25rem; font-weight: 900; }
.sheet { max-height: 100dvh; overflow-y: auto; }
.wallet-btn { justify-content: flex-start; }
.wallet-btn img { width: 32px; height: 32px; border-radius: 6px; }
.wallet-name { display: grid; text-align: left; }
.wallet-name small { color: var(--muted); font-weight: 700; font-size: 0.875rem; }
.pairing { display: grid; gap: 12px; }
.pairing p { color: var(--paper-2); }
.pairing .fine { color: var(--muted); font-size: 0.9375rem; }
/* the code keeps its own paper and ink: a scanner needs that exact contrast */
.qr-frame { display: grid; justify-items: center; padding: 10px; border: 1px solid var(--brass-line); border-radius: var(--radius); background: var(--ink-2); }
.qr { width: var(--qr-size, 232px); height: var(--qr-size, 232px); max-width: 100%; display: block; image-rendering: pixelated; }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 12px; border-bottom: 1px solid var(--brass-line); } }

/* ------------------------------------------------------------------ nav tiles (home) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; min-height: 92px; border-radius: var(--radius); border: 1px solid var(--brass-line-soft);
  background: rgba(20, 22, 18, 0.7); color: var(--paper); text-decoration: none; font-weight: 900; text-align: center; font-size: 0.9375rem; }
.tile:hover { border-color: var(--brass-line); }
.tile .ico { color: var(--sand); }
.tile.chain .ico { color: var(--lime); }

.product .items { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.product .items li { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.product .items li .ico { color: var(--sand-lo); }
.product .foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }

.done-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(143, 209, 111, 0.14);
  border: 2px solid rgba(143, 209, 111, 0.6); color: var(--good); }
.done-mark.chain { background: var(--lime-dim); border-color: var(--lime-line); color: var(--lime); box-shadow: 0 0 28px rgba(219, 255, 69, 0.2); }

/* ------------------------------------------------------------------ larger screens */
@media (min-width: 700px) {
  :root { --gutter: 24px; }
  .main { padding-top: 24px; gap: 18px; }
  .title { font-size: 2.5rem; }
  .card { padding: 22px; }
  .hero .art { width: 216px; height: 144px; }
}
@media (max-width: 459px) {
  .home-link { padding: 0; justify-content: center; }
  .home-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) {
  .brand small { display: none; }
  .title { font-size: 1.75rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
.isle-actions { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 459px) { .isle-actions { grid-template-columns: repeat(2, 1fr); } }
.isle-actions .btn { padding: 0 8px; font-size: 1rem; white-space: nowrap; }

@media (max-width: 459px) {
  .item.has-action { flex-wrap: wrap; row-gap: 10px; }
  .item.has-action .side { flex-basis: 100%; padding-left: 62px; }
  .item.has-action .side .btn { width: 100%; }
}

/* tabs (shop): scroll sideways inside their own strip, never the page */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .tab { flex: none; min-height: var(--hit); padding: 0 16px; border-radius: 24px; border: 1px solid var(--brass-line-soft); background: rgba(10, 11, 9, 0.4);
  color: var(--paper); font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.tabs .tab[aria-selected='true'] { border-color: var(--brass); background: rgba(226, 181, 83, 0.16); color: var(--brass-hi); }

/* a section reached through #hash: a calm one-time glow */
.flash + .card, .flash + * { animation: flash 1.6s var(--ease) 1; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 2px var(--brass), 0 0 24px rgba(226, 181, 83, 0.35); } }
.section-title { scroll-margin-top: 48px; }

/* ------------------------------------------------------------------ share pages (/s/<id>, UX §13) */
.share-pic { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--brass-line-soft); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32); background: var(--ink-2); }
.share-pic img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.share-page .hero { padding-top: 6px; }
