/* Shared by the Orbit and the Market: tokens, top bar, wallet dialog and menu, block record. */
:root {
  --bg: #020203;
  --fg: #efe9e1;
  --muted: #8e857c;
  --line: rgba(239, 233, 225, 0.12);
  --glass: rgba(8, 6, 5, 0.62);
  --accent: #f7931a;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mint-btn { display: inline-flex; align-items: center; text-decoration: none; font: 600 13px var(--body); letter-spacing: 0.02em; color: #1a0f03; background: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 9px 22px; cursor: pointer; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.7); }
.mint-btn:hover { box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.8); filter: brightness(1.06); }
.sound-btn { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: var(--fg); background: var(--glass); border: 1px solid rgba(239, 233, 225, 0.22); border-radius: 50%; cursor: pointer; backdrop-filter: blur(10px); }
.sound-btn:hover { border-color: rgba(239, 233, 225, 0.45); }
.sound-btn svg { width: 18px; height: 18px; pointer-events: none; }
.sound-btn[aria-pressed="false"] { color: var(--muted); }
.sound-btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.market-btn { display: inline-flex; align-items: center; font: 500 13px var(--body); color: var(--fg); text-decoration: none; background: var(--glass); border: 1px solid rgba(239, 233, 225, 0.22); border-radius: 999px; padding: 8px 18px; backdrop-filter: blur(10px); }
.market-btn:hover { border-color: rgba(239, 233, 225, 0.45); }
.atoms-btn { font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; }
.market-btn[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.market-btn:focus-visible, .mint-btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.wallet-btn { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--body); color: var(--fg); background: var(--glass); border: 1px solid rgba(239, 233, 225, 0.22); border-radius: 999px; padding: 8px 18px; cursor: pointer; backdrop-filter: blur(10px); white-space: nowrap; }
.wallet-btn:hover { border-color: rgba(239, 233, 225, 0.45); }
.wallet-btn.on { padding: 6px 14px 6px 7px; }
.wallet-btn .mono { font-size: 12px; }
.wallet-btn em { font: 500 11px var(--mono); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: #1a0f03; background: #ffcf7a; border-radius: 3px; padding: 2px 5px; }
.gem { display: block; flex: none; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(239, 233, 225, 0.25); border-top-color: var(--accent); display: inline-block; animation: spin 0.9s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }
.wallet-menu { position: fixed; z-index: 12; top: calc(70px + env(safe-area-inset-top, 0px)); right: max(22px, env(safe-area-inset-right, 0px)); width: 320px; padding: 16px; display: grid; gap: 10px; background: rgba(12, 9, 7, 0.94); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.wm-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.wm-name { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.1; }
.wm-key { font-size: 11px; line-height: 1.55; word-break: break-all; color: #d9cfc4; }
.wm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wm-net { font: 11px var(--mono); color: #8ee39a; }
.wm-net::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: 1px; }
.wm-net.warn { color: #ffcf7a; }
.wm-out { font: 500 12px var(--body); color: #ff9b85; background: transparent; border: 1px solid rgba(255, 155, 133, 0.3); border-radius: 4px; padding: 8px; cursor: pointer; }
.wm-out:hover { border-color: rgba(255, 155, 133, 0.6); }
.wallet { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; }
.wallet-scrim { position: absolute; inset: 0; background: rgba(3, 2, 1, 0.6); backdrop-filter: blur(8px); }
.wallet-sheet { position: relative; width: min(480px, 100%); max-height: calc(100% - 32px); overflow-y: auto; background: rgba(12, 9, 7, 0.96); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 120px rgba(0, 0, 0, 0.65); }
.ws-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.ws-meta { margin-top: 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ws-head h2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 34px; line-height: 1; }
.ws-body { padding: 18px 22px 8px; display: grid; gap: 10px; }
.rows { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.015); }
.tile { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: rgba(247, 147, 26, 0.08); color: var(--accent); border: 1px solid rgba(247, 147, 26, 0.2); }
.tile svg { width: 20px; height: 20px; }
.lines { display: grid; gap: 2px; min-width: 0; }
.lines b { font-weight: 600; font-size: 14px; }
.lines i { font-style: normal; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.connect { font: 600 12.5px var(--body); color: #1a0f03; background: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.connect:disabled { opacity: 0.45; cursor: default; }
.get { font: 500 12px var(--body); color: var(--fg); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; white-space: nowrap; }
.get:hover { border-color: rgba(239, 233, 225, 0.4); }
.installed { font: 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #8ee39a; }
.empty { padding: 14px; border: 1px dashed var(--line); border-radius: 6px; color: #d9cfc4; font-size: 13px; }
.ghost-row .tile { background: rgba(239, 233, 225, 0.05); border-color: transparent; }
.ghost-row b, .ghost-row i { display: block; height: 10px; border-radius: 3px; background: rgba(239, 233, 225, 0.07); }
.ghost-row b { width: 46%; } .ghost-row i { width: 70%; }
.ghost-row { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .ghost-row { animation: none; } }
.wallet-status { margin: 0; font-size: 12.5px; min-height: 0; }
.wallet-status:empty { display: none; }
.wallet-status.wait { color: var(--fg); padding: 10px 12px; border: 1px solid rgba(247, 147, 26, 0.35); border-radius: 6px; background: rgba(247, 147, 26, 0.06); }
.wallet-status.err { color: #ff9b85; }
.ws-foot { padding: 14px 22px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.wallet button:focus-visible, .wallet a:focus-visible, .wallet-menu button:focus-visible, .wallet-btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.mint-close { font: 500 12px var(--body); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; cursor: pointer; }
.mint-close:hover { color: var(--fg); }
kbd { font: 11px var(--mono); border: 1px solid var(--line); border-radius: 3px; padding: 1px 4px; margin-left: 6px; }
.record { --c: var(--accent); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--c); background: linear-gradient(color-mix(in srgb, var(--c) 7%, transparent), transparent 140px); }
.rec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.rec-head h3 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -0.01em; }
.rec-rank { font: 600 11px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--c); }
.rec-why { margin: 10px 0 0; color: #d9cfc4; font-size: 14px; }
.rec-hash { margin: 18px 0 0; font: 400 15px/1.55 var(--mono); letter-spacing: 0.08em; color: #e9e1d7; word-break: break-all; font-variant-numeric: tabular-nums; }
.rec-hash .z { color: var(--c); text-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); }
.rec-hash > span { display: block; }
.rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 20px 0 0; }
.rec-grid div { padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.rec-grid dt { color: var(--muted); font-size: 11.5px; letter-spacing: 0.02em; }
.rec-grid dd { margin: 3px 0 0; font: 13px var(--mono); color: var(--fg); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rec-grid dd a { color: var(--fg); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c) 55%, transparent); text-underline-offset: 3px; }
.rec-grid dd a:hover { text-decoration-color: var(--c); }
.rec-grid dd small { color: var(--muted); font-size: 11.5px; }
.rec-near { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.rec-near div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; }
.rec-near span { display: block; color: var(--muted); font-size: 11.5px; }
.rec-near b { font: 500 14px var(--mono); }
.rec-near div:last-child { text-align: right; }
.rec-traits { margin: 14px 0 0; color: #d9cfc4; font-size: 13px; }
::selection { background: rgba(247, 147, 26, 0.35); color: #fff; }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ghost { font: 500 12px var(--body); color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; cursor: pointer; text-decoration: none; }
.ghost:hover { border-color: rgba(239, 233, 225, 0.3); }
/* The external-link arrow: one drawn icon everywhere, never a text glyph. */
.ext { width: 0.72em; height: 0.72em; margin-left: 0.3em; vertical-align: 0.02em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
