/* tweetpad: pixel HUD styles for the X card (embed.html). */

:root {
  --bg: #0b1210; --panel: rgba(30, 56, 64, .82); --panel-hi: rgba(140, 200, 210, .35); --panel-lo: #071013;
  --line: rgba(140, 200, 210, .18); --text: #f2f6f4; --dim: #a6bcbf;
  --ok: #7dff9a; --warn: #ffd65a; --bad: #ff6b6b; --accent: #6fe7d8; --gold: #e8b64c; --pink: #ff74e6;
  --px: "Pixelify Sans", ui-monospace, Menlo, monospace;
  --mono: "VT323", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 2px 2px 0 rgba(0, 0, 0, .65);
  /* the coin chart is a canvas, so drawChart reads these instead of the stylesheet */
  --chart-up: #7dff9a; --chart-down: #ff6b6b; --chart-grid: rgba(140, 200, 210, .12); --chart-text: #a6bcbf; --chart-last: #e8b64c;
  --chart-font: 14px VT323, monospace; --chart-font-lg: 16px VT323, monospace;
}
* { box-sizing: border-box; }
/* the pixel fonts ship ligatures that turn "fl" into one glyph; the font shorthand resets this, hence !important */
*, *::before, *::after { font-variant-ligatures: none !important; }
html, body { height: 100%; margin: 0; }
/* X sets scrolling="no" on the card iframe, so the page itself never scrolls:
   a fixed column of header / stage / inventory, where only the stage scrolls. */
body { background: var(--bg); color: var(--text); font: 13px/1.4 var(--px); text-shadow: var(--shadow);
       display: flex; flex-direction: column; overflow: hidden; position: relative; isolation: isolate;
       -webkit-font-smoothing: none; image-rendering: pixelated; }
/* night sky + blocky ground; the noise texture is painted into --tex at startup */
body::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
               background: radial-gradient(120% 70% at 80% -10%, rgba(111, 231, 216, .14), transparent 60%),
                           linear-gradient(rgba(5, 10, 12, .55), rgba(5, 10, 12, .2) 40%, rgba(5, 10, 12, .75)),
                           var(--tex, none) 0 0 / 256px 256px, var(--bg); }

/* bevelled translucent panel, the base of every HUD element */
.panel, .toast, textarea, .slot {
  background: var(--panel); border: 2px solid var(--panel-lo);
  box-shadow: inset 0 2px 0 var(--panel-hi), inset 0 -2px 0 rgba(0, 0, 0, .35);
}
kbd { display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 2px;
      background: #d9dddd; color: #161a1a; border: 1px solid #0a0c0c; text-shadow: none;
      box-shadow: inset -2px -2px 0 #8a9191, inset 2px 2px 0 #fff; font: 15px/1 var(--mono); }

/* ---------- top bar: title · debug · connect ---------- */
header { display: flex; align-items: center; gap: 6px; padding: 7px 8px; }
h1 { font: 600 13px/1 var(--px); margin: 0; flex: 1; min-width: 0; letter-spacing: .02em;
     white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
h1 .gem { display: inline-block; width: 9px; height: 9px; margin: 0 7px 0 3px; background: var(--accent);
          transform: rotate(45deg); box-shadow: 0 0 0 2px var(--panel-lo), 0 0 10px var(--accent); }
.home { appearance: none; background: none; border: 0; padding: 2px 4px 2px 0; margin: 0; cursor: pointer; color: inherit;
        font: inherit; text-shadow: inherit; letter-spacing: inherit; }
.home:hover { color: var(--accent); }
.home:hover .gem { box-shadow: 0 0 0 2px var(--panel-lo), 0 0 16px var(--accent); }
.home:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ghost { appearance: none; display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; cursor: pointer;
         color: var(--dim); font: 600 11px/1 var(--px); text-shadow: var(--shadow); background: transparent; border: 2px solid transparent; }
.ghost:hover { color: var(--text); background: rgba(40, 72, 82, .55); }
.ghost[aria-pressed="true"] { color: var(--text); background: var(--panel); border-color: var(--panel-lo);
                              box-shadow: inset 0 2px 0 var(--accent); }

/* ---------- stage: the center window, with toast + chat overlaid on it ---------- */
.stage { position: relative; flex: 1; min-height: 0; }
main { position: absolute; inset: 0; overflow: auto; padding: 4px 10px 40px; overscroll-behavior: contain;
       scrollbar-width: thin; scrollbar-color: #4b7a84 transparent; }
section[hidden], .hud[hidden] { display: none; }
#tab-wallets:not([hidden]) { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.pane { width: 100%; max-width: 330px; }

/* "Challenge Complete!" toast, floats over the stage and slides away on its own */
.toast { position: absolute; top: 2px; right: 8px; z-index: 5; max-width: min(300px, calc(100% - 16px)); cursor: pointer;
         display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 7px; transition: transform .3s steps(4), opacity .3s steps(4); }
.toast.gone { transform: translateX(calc(100% + 12px)); opacity: 0; pointer-events: none; }
.toast::before, .toast::after { content: "+"; position: absolute; right: 4px; color: var(--accent); font: 13px/1 var(--mono); }
.toast::before { top: 1px; } .toast::after { bottom: 1px; }
.toast-icon { width: 26px; height: 26px; flex: none; border: 2px solid var(--panel-lo);
              background: repeating-conic-gradient(rgba(0, 0, 0, .18) 0 25%, transparent 0 50%) 0 0 / 6px 6px,
                          linear-gradient(#e2c35a 0 30%, #9a7a2c 30%); }
.toast.ok .toast-icon { background: repeating-conic-gradient(rgba(0, 0, 0, .18) 0 25%, transparent 0 50%) 0 0 / 6px 6px,
                                    linear-gradient(#5fbf3f 0 34%, #7a5434 34%); }
.toast.bad .toast-icon { background: repeating-conic-gradient(rgba(0, 0, 0, .2) 0 25%, transparent 0 50%) 0 0 / 6px 6px,
                                     linear-gradient(#d23c3c 0 35%, #eee 35% 65%, #d23c3c 65%); }
.toast-body { min-width: 0; }
.toast-title { display: block; font: 600 12px/1.2 var(--px); color: var(--gold); }
.toast.ok .toast-title { color: var(--pink); } .toast.bad .toast-title { color: var(--bad); }
.toast-text { display: block; font: 16px/1.05 var(--mono); }
.toast-text small { display: block; color: var(--dim); font-size: 14px; }

/* chat-style feed, overlaid on the bottom of the stage; lines fade like in-game chat */
#feed-lines { position: absolute; left: 8px; right: 8px; bottom: 4px; z-index: 4; list-style: none; margin: 0; padding: 0; pointer-events: none; }
#feed-lines[hidden], .debugging #feed-lines, .debugging .toast { display: none; }
#feed-lines li { font: 15px/1.05 var(--mono); padding: 1px 6px; background: rgba(0, 0, 0, .5); width: fit-content; max-width: 100%;
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: line-in .2s steps(3) both;
                 transition: opacity .6s steps(4); }
#feed-lines li.old { opacity: 0; }
#feed-lines li.ok { color: var(--ok); } #feed-lines li.bad { color: var(--bad); } #feed-lines li.warn { color: var(--warn); }
@keyframes line-in { from { transform: translateY(6px); opacity: 0; } }

/* ---------- center: wallet picker / quest card ---------- */
.more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 8px;
        font: 14px/1 var(--mono); color: var(--dim); }
.chiplink { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px 2px 2px; color: var(--text); text-decoration: none;
            font: 600 11px/1 var(--px); background: rgba(40, 72, 82, .55); border: 1px solid var(--line); }
.chiplink:hover { border-color: rgba(255, 255, 255, .6); }
.chiplink .ph { width: 16px; height: 16px; font-size: 10px; }

.card { padding: 10px; border-top: 2px solid var(--gold); }
.card-head { display: flex; align-items: center; gap: 9px; }
.card-head img, .card-head .ph { width: 30px; height: 30px; flex: none; border: 1px solid #000; image-rendering: auto; }
.card-name { font: 600 14px/1.2 var(--px); }
.addr { appearance: none; background: none; border: 0; padding: 0; cursor: copy; text-align: left; text-shadow: var(--shadow);
        font: 16px/1 var(--mono); color: var(--accent); }
.addr:hover { text-decoration: underline; }
.quests { list-style: none; margin: 9px 0 0; padding: 0; }
.quests li { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 0; border-top: 1px dashed var(--line);
             font: 16px/1 var(--mono); }
.quests li > span { flex: 1; }
.quests li.done { color: var(--ok); }
.check { width: 13px; height: 13px; flex: none; border: 2px solid var(--dim); background: rgba(0, 0, 0, .35); }
.quests li.done .check { border-color: var(--ok); background: linear-gradient(var(--ok), var(--ok)) center / 5px 5px no-repeat, rgba(0, 0, 0, .35); }
.status { font: 15px/1.1 var(--mono); margin-top: 7px; overflow-wrap: anywhere; color: var(--dim); }
.status.ok { color: var(--ok); } .status.bad { color: var(--bad); } .status.warn { color: var(--warn); }
.note { color: var(--dim); font: 15px/1.15 var(--mono); margin: 0 0 8px; }

/* ---------- buttons ---------- */
.btn { appearance: none; color: var(--text); font: 600 12px/1 var(--px); text-shadow: var(--shadow);
       padding: 6px 10px 8px; cursor: pointer; text-decoration: none; display: inline-block; border-radius: 0;
       background: linear-gradient(#456d79, #2f4c55); border: 2px solid #050b0d;
       box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 rgba(0, 0, 0, .38); }
.btn:hover { background: linear-gradient(#57899a, #3a5f6b); outline: 2px solid rgba(255, 255, 255, .6); outline-offset: -4px; }
.btn:active { padding: 8px 10px 6px; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .38); }
.btn:focus-visible, .ghost:focus-visible, .tok:focus-visible, .opt:focus-visible, .addr:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn.primary { background: linear-gradient(#6ad893, #3c9c60); color: #04200e; text-shadow: 1px 1px 0 rgba(255, 255, 255, .3); }
.btn.primary:hover { background: linear-gradient(#83eba9, #4cb574); }
.btn.sm { padding: 4px 7px 6px; font-size: 11px; }
.btn.sm:active { padding: 6px 7px 4px; }
.btn.danger { background: linear-gradient(#b14c4c, #7d2e2e); }
.btn.danger:hover { background: linear-gradient(#c75b5b, #8f3838); }
.btn[disabled] { opacity: .4; cursor: not-allowed; outline: none; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- wallet rows (center picker + dropdown) ---------- */
.opt { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 7px; margin-bottom: 3px; appearance: none;
       text-align: left; cursor: pointer; color: var(--text); font: 600 13px/1.2 var(--px); text-shadow: var(--shadow);
       text-decoration: none; background: rgba(40, 72, 82, .6); border: 2px solid transparent; }
.opt:hover { background: rgba(60, 110, 120, .85); border-color: rgba(255, 255, 255, .6); }
.opt img, .opt .ph { width: 24px; height: 24px; flex: none; border: 1px solid #000; image-rendering: auto; }
.opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph { display: inline-grid; place-items: center; flex: none; font: 600 12px/1 var(--px); color: #fff; text-shadow: var(--shadow);
      background: var(--c, #3b5560); }
.tag { font: 13px/1 var(--mono); letter-spacing: .04em; padding: 1px 3px 0; color: #04200e; background: var(--accent); text-shadow: none; }
.tag.dim { background: transparent; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); }
.tag.gold { background: var(--gold); }
.tag.bad { background: var(--bad); }

/* ---------- connect button + dropdown ---------- */
.wc { position: relative; flex: none; }
.wc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 7px; }
.wc-btn img, .wc-btn .ph { width: 16px; height: 16px; border: 1px solid #000; }
.wc-btn .caret { font: 14px/1 var(--mono); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(290px, calc(100vw - 16px));
        max-height: calc(100vh - 56px); overflow: auto; padding: 8px; background: #0e1c21;
        border: 2px solid var(--panel-lo); box-shadow: inset 0 2px 0 var(--panel-hi), 0 12px 32px rgba(0, 0, 0, .65);
        animation: menu-in .18s steps(3) both; scrollbar-width: thin; scrollbar-color: #4b7a84 transparent; }
.menu[hidden] { display: none; }
@keyframes menu-in { from { transform: translateY(-6px); opacity: 0; } }
.menu-head { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 6px;
             font: 15px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.menu-x { appearance: none; background: none; border: 0; color: var(--dim); font: 20px/1 var(--mono); cursor: pointer; padding: 0 2px; }
.menu-x:hover { color: var(--text); }
.menu-sec { font: 14px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 10px 2px 4px; }
.acct-box { padding: 8px; background: rgba(5, 12, 14, .6); border: 2px solid var(--panel-lo); }
.acct-box .addr { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.menu-foot { margin-top: 10px; padding-top: 6px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between;
             align-items: baseline; gap: 4px 10px; flex-wrap: wrap; font: 14px/1.2 var(--mono); color: var(--dim);
             text-transform: uppercase; letter-spacing: .04em; }
.linkish { appearance: none; background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-transform: none;
           letter-spacing: 0; cursor: pointer; text-decoration: underline; text-shadow: var(--shadow); }

/* ---------- debug panel ---------- */
.subnav { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; position: sticky; top: -4px; z-index: 2;
          padding: 4px 0; background: linear-gradient(rgba(11, 18, 16, .95) 70%, transparent); }
.subnav [role="tab"] { appearance: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 3px; cursor: pointer;
                 color: var(--dim); font: 600 11px/1 var(--px); text-shadow: var(--shadow); background: rgba(40, 72, 82, .45);
                 border: 2px solid var(--panel-lo); }
.subnav [role="tab"]:hover { color: var(--text); }
.subnav [role="tab"][aria-selected="true"] { color: var(--text); background: rgba(55, 110, 118, .92); box-shadow: inset 0 2px 0 var(--accent); }
.subnav .spacer { flex: 1; }
.subnav .menu-x { font-size: 18px; }
.debug-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.debug-row .note { margin: 0; }
table { width: 100%; border-collapse: collapse; font: 15px/1.1 var(--mono); }
td { padding: 3px 0; border-bottom: 1px dashed var(--line); vertical-align: top; overflow-wrap: anywhere; }
td:first-child { color: var(--gold); width: 42%; padding-right: 8px; }
textarea { width: 100%; height: calc(100vh - 190px); min-height: 120px; color: var(--text); font: 14px/1.1 var(--mono); padding: 8px; resize: none;
           background: rgba(5, 12, 14, .82); text-shadow: none; }

/* ---------- launch form: the main view ---------- */
.launch { padding: 10px; border-top: 2px solid var(--gold); display: flex; flex-direction: column; gap: 8px; }
.launch-head { display: flex; justify-content: space-between; align-items: center; gap: 8px;
               font: 15px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.launch-grid { display: flex; gap: 10px; }
.drop { position: relative; flex: none; width: 84px; height: 84px; display: grid; place-items: center; cursor: pointer; overflow: hidden;
        background: repeating-conic-gradient(rgba(255, 255, 255, .04) 0 25%, transparent 0 50%) 0 0 / 12px 12px, rgba(5, 12, 14, .7);
        border: 2px dashed rgba(140, 200, 210, .45); }
.drop:hover, .drop.over, .drop:focus-visible { border-color: var(--accent); outline: none; background-color: rgba(30, 60, 66, .8); }
.drop.has { border-style: solid; border-color: var(--panel-lo); }
.drop img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.drop-hint { display: grid; justify-items: center; font: 600 22px/1 var(--px); color: var(--accent); }
.drop-hint[hidden] { display: none; }
.drop-hint small { font: 14px/1.1 var(--mono); color: var(--dim); }
.fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.launch input:not([type=file]), .launch textarea { width: 100%; padding: 6px 7px; color: var(--text); font: 17px/1 var(--mono);
        text-shadow: none; background: rgba(5, 12, 14, .75); border: 2px solid var(--panel-lo);
        box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .4); border-radius: 0; height: auto; min-height: 0; }
.launch textarea { resize: none; line-height: 1.05; }
.launch input:focus, .launch textarea:focus { outline: none; border-color: var(--accent); }
.launch input::placeholder, .launch textarea::placeholder { color: #6f8a8e; }
#tk-ticker { text-transform: uppercase; }
.img-meta { font: 14px/1.1 var(--mono); color: var(--dim); overflow-wrap: anywhere; }
.img-meta.bad { color: var(--bad); }
.launch-btn { width: 100%; padding: 8px 10px 10px; font-size: 13px; }
.launch-btn:active { padding: 10px 10px 8px; }
.launch .quests { margin: 0; }
.launch .quests li { min-height: 24px; font-size: 15px; }
.launch .quests li.bad { color: var(--bad); }
.launch .quests li.bad .check { border-color: var(--bad); }
.launch .more { margin: 0; justify-content: flex-start; }

.row2 { display: flex; gap: 6px; }
.row2 > * { min-width: 0; }
#tk-ticker { flex: 1.3; }
.devbuy { flex: 1; display: flex; align-items: center; background: rgba(5, 12, 14, .75); border: 2px solid var(--panel-lo);
          box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .4); }
.devbuy:focus-within { border-color: var(--accent); }
.launch .devbuy input { border: 0; box-shadow: none; background: transparent; padding-right: 2px; -moz-appearance: textfield; }
.devbuy input::-webkit-outer-spin-button, .devbuy input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.devbuy span { flex: none; padding-right: 6px; font: 14px/1 var(--mono); color: var(--dim); }
#launch-note { margin: -2px 0 0; font-size: 14px; text-align: center; }
.launch .quests li .chiplink { flex: none; }

/* ---------- tokens launched through the pad ---------- */
#tab-tokens:not([hidden]) { min-height: 100%; display: flex; flex-direction: column; align-items: center; }
.tokens { padding: 10px; border-top: 2px solid var(--gold); }
.token-list { list-style: none; margin: 6px 0 0; padding: 0; }
.tok { display: flex; align-items: center; gap: 9px; padding: 6px 4px; color: var(--text); text-decoration: none;
       border-top: 1px dashed var(--line); }
.tok:hover { background: rgba(60, 110, 120, .35); }
.tok img, .tok .ph { width: 30px; height: 30px; flex: none; object-fit: cover; border: 1px solid #000; image-rendering: auto; background: var(--panel-lo); }
.tok-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tok-main b { font: 600 13px/1.1 var(--px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-by { color: var(--accent); }
.tok-sub { font: 14px/1 var(--mono); color: var(--dim); }
.tok-mkt { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 58px; }
.tok-mkt b { font: 600 12px/1 var(--px); color: var(--gold); }
.tok-mkt .up, .tok-mkt .down { font: 14px/1 var(--mono); }
.tok-mkt .up { color: var(--ok); } .tok-mkt .down { color: var(--bad); }
.sort { display: inline-flex; gap: 2px; }
.sort button { appearance: none; padding: 2px 6px; cursor: pointer; color: var(--dim); font: 14px/1 var(--mono); letter-spacing: .04em;
               text-transform: uppercase; background: transparent; border: 1px solid var(--line); text-shadow: var(--shadow); }
.sort button:hover { color: var(--text); }
.sort button[aria-pressed="true"] { color: #04200e; background: var(--accent); border-color: var(--accent); text-shadow: none; }
.devbuy[hidden] { display: none; }
.tok { width: 100%; appearance: none; background: none; border: 0; border-top: 1px dashed var(--line); cursor: pointer;
       text-align: left; font: inherit; text-shadow: var(--shadow); }
.more-row { text-align: center; padding: 8px 0 2px; }
/* coin screen */
#tab-coin:not([hidden]) { min-height: 100%; display: flex; flex-direction: column; align-items: center; }
.coin { padding: 8px 10px 10px; border-top: 2px solid var(--gold); display: flex; flex-direction: column; gap: 7px; }
.coin-top { display: flex; justify-content: space-between; align-items: center; font: 15px/1 var(--mono); }
.tf { display: inline-flex; gap: 2px; }
.tf button { appearance: none; padding: 2px 6px; cursor: pointer; color: var(--dim); font: 14px/1 var(--mono); background: transparent;
             border: 1px solid var(--line); text-shadow: var(--shadow); }
.tf button[aria-pressed="true"] { color: #04200e; background: var(--accent); border-color: var(--accent); text-shadow: none; }
.coin-head { display: flex; align-items: center; gap: 9px; min-height: 36px; }
.coin-head .coin-img { width: 36px; height: 36px; flex: none; object-fit: cover; border: 1px solid #000; image-rendering: auto; }
.coin-img-btn { position: relative; flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; }
.coin-img-btn:hover .coin-img, .coin-img-btn:focus-visible .coin-img { outline: 2px solid var(--accent); outline-offset: 1px; }
.coin-img-btn:focus-visible { outline: none; }
.coin-img-btn .zoom { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; display: grid; place-items: center;
                      font: 600 11px/1 var(--px); color: #04200e; background: var(--accent); border: 1px solid #000; text-shadow: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 14px; background: rgba(3, 8, 9, .82);
            animation: menu-in .18s steps(3) both; }
.lightbox[hidden] { display: none; }
.lightbox-card { width: min(100%, 280px); max-height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 10px;
                 border-top: 2px solid var(--gold); }
.lightbox-head, .lightbox-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lightbox-head b { font: 600 14px/1.2 var(--px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-frame { position: relative; display: grid; place-items: center; min-height: 160px; max-height: min(240px, calc(100vh - 120px));
                  background: repeating-conic-gradient(rgba(255, 255, 255, .04) 0 25%, transparent 0 50%) 0 0 / 16px 16px, rgba(5, 12, 14, .8);
                  border: 2px solid var(--panel-lo); overflow: hidden; }
.lightbox-frame img { display: block; max-width: 100%; max-height: min(236px, calc(100vh - 124px)); object-fit: contain; image-rendering: auto; }
.lightbox-frame img[hidden], .lightbox-frame .note[hidden], .lightbox-foot a[hidden] { display: none; }
.lightbox-frame .note { margin: 0; }
.coin-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.coin-title b { font: 600 14px/1.1 var(--px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#coin-chart { width: 100%; height: 132px; display: block; background: rgba(5, 12, 14, .6); border: 2px solid var(--panel-lo); image-rendering: pixelated; }
.coin-links { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
button.chiplink { appearance: none; cursor: pointer; text-shadow: var(--shadow); }
.live { font: 13px/1 var(--mono); letter-spacing: .06em; padding: 2px 5px; color: var(--dim); border: 1px solid var(--line); }
.live.on { color: var(--ok); border-color: rgba(125, 255, 154, .5); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.trades { list-style: none; margin: 0; padding: 0; font: 15px/1 var(--mono); }
.trades li { display: grid; grid-template-columns: 40px 1fr 1fr 34px; gap: 6px; align-items: center; padding: 4px 2px; border-top: 1px dashed var(--line); }
.trades li.note { display: block; text-align: center; padding: 10px 0; }
.trades .kind { font: 15px/1 var(--mono); letter-spacing: .06em; }
.trades li.buy .kind, .trades li.buy .amt { color: var(--ok); }
.trades li.sell .kind, .trades li.sell .amt { color: var(--bad); }
.trades .who { color: var(--dim); text-decoration: none; }
.trades .who:hover { color: var(--text); text-decoration: underline; }
.trades .when { color: var(--dim); text-align: right; }
/* profile + wallet menu */
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; flex: none; object-fit: cover; border: 1px solid #000; image-rendering: auto; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.who-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.who-name { font: 600 14px/1.1 var(--px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-addr { display: inline-flex; align-items: center; gap: 4px; font: 15px/1 var(--mono); color: var(--accent); }
.handle { display: inline-flex; align-items: center; gap: 4px; font: 15px/1 var(--mono); color: var(--text); text-decoration: none; }
.handle:hover { text-decoration: underline; }
.check-badge { display: inline-grid; place-items: center; width: 12px; height: 12px; font: 600 9px/1 var(--px); color: #04200e;
               background: var(--accent); text-shadow: none; }
.copy, .ext { appearance: none; background: none; border: 0; padding: 0 2px; cursor: pointer; color: var(--dim); font: 15px/1 var(--mono);
              text-decoration: none; text-shadow: var(--shadow); }
.copy:hover, .ext:hover { color: var(--text); }
.verify-btn { padding: 3px 7px 5px; }
.rewards { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 8px; background: rgba(5, 12, 14, .55);
           border: 1px dashed rgba(232, 182, 76, .45); }
.rewards-label { font: 14px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.rewards b { flex: 1; min-width: 0; font: 600 12px/1.2 var(--px); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rewards.compact { margin-top: 8px; padding: 5px 6px; }
.acct-box .actions { align-items: center; }
.acct-box .via { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font: 14px/1 var(--mono); color: var(--dim); }
.acct-box .via img, .acct-box .via .ph { width: 14px; height: 14px; border: 1px solid #000; }
#tab-profile:not([hidden]) { min-height: 100%; display: flex; flex-direction: column; align-items: center; }
.profile { padding: 10px; border-top: 2px solid var(--gold); display: flex; flex-direction: column; gap: 8px; }
.profile .menu-sec { margin: 6px 2px 0; }
.profile .token-list { margin: 0; }
/* coin header, fomo style: ticker big, name beside it; age · contract address · creator below */
.coin-name { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.coin-name b { font: 600 16px/1.1 var(--px); flex: none; }
.coin-name span { font: 16px/1 var(--mono); color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font: 15px/1 var(--mono); color: var(--dim); }
.ca { appearance: none; display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px; cursor: copy; color: var(--accent);
      font: 15px/1 var(--mono); background: rgba(111, 231, 216, .08); border: 1px solid rgba(111, 231, 216, .3); text-shadow: var(--shadow); }
.ca:hover { background: rgba(111, 231, 216, .18); }
.ca:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pair { color: var(--gold); }
.by .handle { font-size: 15px; }
/* verify modal */
.verify-card { width: min(100%, 340px); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font: 15px/1.2 var(--mono); }
.steps li { display: flex; gap: 8px; }
.steps li > div { min-width: 0; flex: 1; }
.steps b { font: 600 12px/1.2 var(--px); }
.step-n { flex: none; display: grid; place-items: center; width: 18px; height: 18px; font: 600 11px/1 var(--px); color: #04200e;
          background: var(--gold); text-shadow: none; }
.steps code { font: 15px/1 var(--mono); color: var(--accent); }
.tweet-text { margin: 6px 0 0; padding: 6px 7px; background: rgba(5, 12, 14, .7); border: 1px solid var(--line); overflow-wrap: anywhere; color: var(--text); }
.verify-row { display: flex; gap: 6px; margin-top: 6px; }
.verify-row input { flex: 1; min-width: 0; padding: 5px 7px; color: var(--text); font: 15px/1 var(--mono); background: rgba(5, 12, 14, .75);
                    border: 2px solid var(--panel-lo); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .4); }
.verify-row input:focus { outline: none; border-color: var(--accent); }
a.btn.disabled { opacity: .4; pointer-events: none; }
.note.fine { margin: 0; font-size: 13px; }
.views { display: flex; gap: 2px; }
.views .count { font: 14px/1 var(--mono); color: var(--accent); }
.views .count:empty { display: none; }
/* ---------- inventory: a hotbar of coins ---------- */
.hud { padding: 6px 10px 7px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
#hotbar { display: flex; justify-content: center; width: 100%; }
.slot { appearance: none; position: relative; flex: 1 1 0; max-width: 32px; aspect-ratio: 1; padding: 3px; cursor: pointer;
        display: grid; place-items: center; color: var(--text); font: 600 12px/1 var(--px); text-shadow: var(--shadow);
        background: rgba(30, 56, 64, .7); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .45), inset -1px -1px 0 var(--panel-hi); }
.slot:hover { background: rgba(60, 110, 120, .8); }
.slot img, .slot .ph { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; font-size: 11px; }
.slot .n { position: absolute; right: 2px; bottom: 0; font: 12px/1 var(--mono); }
.slot .dot { position: absolute; right: 2px; top: 2px; width: 4px; height: 4px; background: var(--dim); }
.slot .dot.ok { background: var(--ok); } .slot .dot.bad { background: var(--bad); } .slot .dot.warn { background: var(--warn); }
.slot[aria-pressed="true"] { z-index: 1; outline: 2px solid #e9fffb; outline-offset: -1px;
                             box-shadow: 0 0 0 4px rgba(111, 231, 216, .35), inset 2px 2px 0 rgba(0, 0, 0, .45); }
.slot[disabled] { cursor: default; }
@media (max-width: 420px) { .views .lbl, #btn-more .lbl { display: none; } }


@media (max-width: 360px) { .ghost .lbl { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- live chat: lines float over the stage like in-game chat; Enter opens the full scrollback ---------- */
#feed-lines li { display: flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; }
#feed-lines li > span { overflow: hidden; text-overflow: ellipsis; }
#feed-lines li b { flex: none; font: 15px/1 var(--mono); color: var(--gold); }
#feed-lines li b.verified { color: var(--accent); }
#feed-lines li.mine b { color: var(--pink); }
.chat-ava { width: 14px; height: 14px; flex: none; border: 1px solid #000; image-rendering: pixelated; }
#feed-lines.open { bottom: 38px; max-height: calc(100% - 50px); overflow-y: auto; pointer-events: auto; padding: 4px 0;
                   background: linear-gradient(transparent, rgba(3, 8, 9, .55) 20%); scrollbar-width: thin; scrollbar-color: #4b7a84 transparent; }
#feed-lines.open li { white-space: normal; animation: none; }
#feed-lines.open li > span { overflow: visible; overflow-wrap: anywhere; }
#feed-lines li.note { display: block; color: var(--dim); background: rgba(0, 0, 0, .5); }
.chatbar { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 6; display: flex; align-items: center; gap: 6px;
           padding: 4px 4px 4px 7px; background: rgba(3, 8, 9, .9); border: 2px solid var(--panel-lo);
           box-shadow: inset 0 2px 0 var(--panel-hi); }
.chatbar[hidden] { display: none; }
.chat-room { flex: none; font: 15px/1 var(--mono); color: var(--accent); max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#chat-input { flex: 1; min-width: 0; padding: 4px 6px; color: var(--text); font: 16px/1 var(--mono); background: rgba(0, 0, 0, .55);
              border: 1px solid var(--line); text-shadow: none; }
#chat-input:focus { outline: none; border-color: var(--accent); }
.hud-row { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; }
.hud-row #hotbar { width: auto; flex: 0 1 300px; }
.chat-slot { flex: none; width: 32px; max-width: 32px; color: var(--accent); }
.chat-slot svg { width: 16px; height: 16px; image-rendering: pixelated; shape-rendering: crispEdges; }
.avatar.pixel { image-rendering: pixelated; background: #1d3a3f; }

/* ---------- settings: skins ---------- */
#tab-settings:not([hidden]) { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.settings { padding: 10px; border-top: 2px solid var(--gold); display: flex; flex-direction: column; gap: 8px; }
.settings .menu-sec { margin: 2px 2px 0; }
.gear { width: 12px; height: 12px; flex: none; shape-rendering: crispEdges; }
#btn-settings kbd { display: none; }   /* the gear says enough; keeps the title from truncating */
.skins { display: flex; flex-direction: column; gap: 6px; }
.skin-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px; appearance: none; cursor: pointer; text-align: left;
            color: var(--text); font: inherit; text-shadow: var(--shadow); background: rgba(40, 72, 82, .6); border: 2px solid transparent; }
.skin-opt:hover { background: rgba(60, 110, 120, .85); }
.skin-opt[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); }
.skin-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.skin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.skin-main b { font: 600 13px/1.1 var(--px); }
.skin-main small { font: 14px/1.05 var(--mono); color: var(--dim); }
/* tiny mockups of each skin: a top bar, a card and a bottom bar, drawn in that skin's own colors whatever is active */
.skin-swatch { position: relative; flex: none; width: 46px; height: 46px; overflow: hidden; border: 1px solid #000; }
.skin-swatch i { position: absolute; left: 0; right: 0; }
.skin-swatch i:nth-child(1) { top: 0; height: 9px; }
.skin-swatch i:nth-child(2) { top: 14px; left: 6px; right: 6px; height: 18px; }
.skin-swatch i:nth-child(3) { bottom: 0; height: 8px; }
.s-2012 { background: #e6e6e6; border-radius: 6px; border-color: #999; }
.s-2012 i:nth-child(1) { background: linear-gradient(#63b8ee, #2b86cc); }
.s-2012 i:nth-child(2) { background: #fff; border: 1px solid #ccc; border-radius: 2px; }
.s-2012 i:nth-child(3) { background: linear-gradient(#3a3a3a, #111); }
.s-craft { background: #16231d; image-rendering: pixelated; }
.s-craft i:nth-child(1) { background: transparent; border-bottom: 2px solid #6fe7d8; height: 6px; left: 4px; right: 22px; top: 3px; }
.s-craft i:nth-child(2) { background: rgba(30, 56, 64, .95); border-top: 2px solid #e8b64c; }
.s-craft i:nth-child(3) { left: 8px; right: 8px; bottom: 3px; height: 6px;
                          background: repeating-linear-gradient(90deg, #2c4c55 0 5px, #071013 5px 6px); }

/* ---------- more: profile, games, debug ---------- */
#tab-more:not([hidden]), #tab-games:not([hidden]) { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.more-pane, .games { padding: 10px; border-top: 2px solid var(--gold); display: flex; flex-direction: column; gap: 8px; }
.more-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.more-row-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px; appearance: none; cursor: pointer; text-align: left;
                color: var(--text); font: inherit; text-shadow: var(--shadow); background: rgba(40, 72, 82, .6); border: 2px solid transparent; }
.more-row-btn:hover { background: rgba(60, 110, 120, .85); border-color: rgba(255, 255, 255, .6); }
.more-row-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.more-ico { flex: none; width: 28px; height: 28px; display: grid; place-items: center; color: var(--accent); background: rgba(5, 12, 14, .6);
            border: 2px solid var(--panel-lo); }
.more-ico svg { width: 16px; height: 16px; shape-rendering: crispEdges; }
.more-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.more-main b { font: 600 13px/1.1 var(--px); }
.more-main small { font: 14px/1.05 var(--mono); color: var(--dim); }
.more-row-btn .chev { flex: none; font: 20px/1 var(--mono); color: var(--dim); }
/* games: a ghosted grid of empty cartridges with a "coming soon" plate on top */
.games-wrap { position: relative; }
.games-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; opacity: .35; filter: grayscale(1); }
.games-grid li { aspect-ratio: 1; background: repeating-conic-gradient(rgba(255, 255, 255, .05) 0 25%, transparent 0 50%) 0 0 / 12px 12px, rgba(5, 12, 14, .7);
                 border: 2px dashed rgba(140, 200, 210, .45); }
.soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; }
.soon b { font: 600 15px/1 var(--px); color: var(--gold); padding: 6px 10px 7px; background: var(--panel); border: 2px solid var(--panel-lo);
          box-shadow: inset 0 2px 0 var(--panel-hi); }
.soon small { font: 15px/1.1 var(--mono); color: var(--dim); max-width: 220px; }

/* welcome post: only the 2012 skin shows it (see skin-2012.css) */
.welcome { display: none; }

/* ---------- launch form: optional social links, folded away by default ---------- */
.socials summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; padding: 2px 0;
                   font: 15px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.socials summary::-webkit-details-marker { display: none; }
.socials summary::before { content: "+"; width: 10px; font: 600 13px/1 var(--px); }
.socials[open] summary::before { content: "−"; }
.socials summary .dim { color: var(--dim); text-transform: none; }
.socials summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.socials-count { font: 13px/1 var(--mono); padding: 1px 4px 0; color: #04200e; background: var(--accent); text-shadow: none; }
.socials-count:empty { display: none; }
.socials-fields { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.link-field { display: flex; align-items: center; background: rgba(5, 12, 14, .75); border: 2px solid var(--panel-lo);
              box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .4); }
.link-field:focus-within { border-color: var(--accent); }
.link-pre { flex: none; width: 38px; text-align: center; font: 14px/1 var(--mono); color: var(--dim); border-right: 1px solid var(--line); }
.launch .link-field input { border: 0; box-shadow: none; background: transparent; }
.tab-ico { display: none; }   /* tab icons belong to the 2012 skin */

/* ---------- about: name, version, a small info table, and the links to come ---------- */
#tab-about:not([hidden]) { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.about { padding: 10px; border-top: 2px solid var(--gold); display: flex; flex-direction: column; gap: 8px; }
.about-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 4px; text-align: center; }
.about-badge { width: 22px; height: 22px; margin-bottom: 8px; background: var(--accent); transform: rotate(45deg);
               box-shadow: 0 0 0 3px var(--panel-lo), 0 0 18px var(--accent); }
.about-name { font: 600 16px/1.1 var(--px); }
.about-ver { font: 15px/1 var(--mono); color: var(--accent); }
.about-hero small { font: 14px/1.1 var(--mono); color: var(--dim); }
.about-table td:first-child { width: 40%; }
.about .menu-sec { margin: 4px 2px 0; }
.about-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.about-links li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: rgba(40, 72, 82, .35); border: 2px dashed var(--line);
                  opacity: .6; cursor: not-allowed; }
.about-link-name { font: 600 12px/1 var(--px); }
.about-link-sub { flex: 1; font: 14px/1 var(--mono); color: var(--dim); }
.about-foot { margin: 0; text-align: center; }
.about-links li.about-contact { opacity: 1; cursor: auto; border-style: solid; }
.about-contact a.about-link-sub { color: var(--accent); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.about-contact a.about-link-sub:hover { text-decoration: underline; }

/* ---------- crafting: what the new coin pairs with, and the picker grid ---------- */
.pair-row { display: flex; align-items: center; gap: 8px; }
.pair-label { flex: none; font: 15px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.pair-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 4px 7px; appearance: none; cursor: pointer; text-align: left;
             color: var(--text); text-shadow: var(--shadow); background: rgba(5, 12, 14, .75); border: 2px solid var(--panel-lo);
             box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .4); }
.pair-pick:hover, .pair-pick:focus-visible { border-color: var(--accent); outline: none; }
.pair-pick[disabled] { opacity: .5; cursor: default; }
.pair-pick b { flex: none; font: 600 12px/1 var(--px); }
.pair-pick small { flex: 1; min-width: 0; font: 14px/1 var(--mono); color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-pick .caret { font: 14px/1 var(--mono); color: var(--dim); }
.pair-img { width: 20px; height: 20px; flex: none; object-fit: cover; border: 1px solid #000; font-size: 11px; }
/* SOL as wallets show it: the gradient mark on a black disc */
.sol-ico { display: inline-block; flex: none; background: #000 url(solana.svg) center / 58% no-repeat; border-radius: 50%; }
/* in the form's header the pick is a compact chip: "Pair [logo] SOL ▾" */
.launch-head .pair-pick { flex: none; gap: 5px; padding: 2px 6px 2px 5px; letter-spacing: 0; text-transform: none; border-width: 1px; box-shadow: none; }
.launch-head .pair-pick small { flex: none; font: 13px/1 var(--mono); color: var(--dim); }
.launch-head .pair-img { width: 16px; height: 16px; }
.pairs-card { width: min(100%, 360px); background: #10232a; }   /* solid: the form behind would show through the HUD glass */
.pairs-search { width: 100%; padding: 6px 8px; color: var(--text); font: 16px/1 var(--mono); background: rgba(5, 12, 14, .75);
                border: 2px solid var(--panel-lo); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .4); }
.pairs-search:focus { outline: none; border-color: var(--accent); }
.pairs-grid { list-style: none; margin: 0; padding: 0 2px 2px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
              max-height: min(260px, calc(100vh - 200px)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4b7a84 transparent; }
.pair-tile { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 3px 4px; appearance: none; cursor: pointer;
             color: var(--text); text-shadow: var(--shadow); background: rgba(40, 72, 82, .6); border: 2px solid transparent; }
.pair-tile:hover:not([disabled]) { background: rgba(60, 110, 120, .85); border-color: rgba(255, 255, 255, .6); }
.pair-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pair-tile[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); }
.pair-tile[disabled] { cursor: progress; }
.pair-tile.bad { opacity: .55; }
.pair-tile b { max-width: 100%; font: 600 11px/1.1 var(--px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-tile small { max-width: 100%; font: 12px/1 var(--mono); color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-tile-img { width: 26px; height: 26px; object-fit: cover; border: 1px solid #000; font-size: 15px; }
.pair-tile small.pair-mcap { color: var(--gold); }
.pair-tile small.no { color: var(--bad); }
#pairs-status:empty { display: none; }

/* ---------- dev buy: its own block above the launch button ---------- */
.devbuy-box { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: rgba(5, 12, 14, .45); border: 1px dashed var(--line); }
.devbuy-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.devbuy-hint { font: 13px/1 var(--mono); color: var(--dim); }
.devbuy-row { display: flex; gap: 6px; }
.devbuy-row .devbuy { flex: 1; min-width: 70px; }
.buy-chips { display: flex; gap: 3px; }
.buy-chips button { appearance: none; padding: 0 8px; cursor: pointer; color: var(--dim); font: 15px/1 var(--mono); background: transparent;
                    border: 1px solid var(--line); text-shadow: var(--shadow); }
.buy-chips button:hover:not([disabled]) { color: var(--text); }
.buy-chips button[aria-pressed="true"] { color: #04200e; background: var(--accent); border-color: var(--accent); text-shadow: none; }
.buy-chips button[disabled] { cursor: default; opacity: .5; }
.devbuy-est { font: 15px/1.15 var(--mono); color: var(--dim); }
.devbuy-est.ok b { color: var(--ok); font-weight: normal; }
.devbuy-est.bad { color: var(--bad); }
.devbuy-est small { color: var(--dim); font-size: 13px; }
.devbuy-box.off .devbuy-row { opacity: .45; }

/* ---------- description countdown ---------- */
.desc-wrap { position: relative; }
.desc-wrap textarea { padding-right: 34px; }
.desc-left { position: absolute; right: 7px; bottom: 6px; font: 13px/1 var(--mono); color: var(--dim); pointer-events: none; }
.desc-left.warn, .post-left.warn { color: var(--warn); }

/* ---------- coin page: compact trades ---------- */
.trades li { grid-template-columns: 34px 1fr 1fr 30px; gap: 4px; padding: 2px 2px; font-size: 14px; }
.trades .kind { font-size: 13px; }
.trades-more { align-self: center; font: 14px/1 var(--mono); }
.trades-more[hidden] { display: none; }

/* ---------- coin page: posts ---------- */
.posts { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding-top: 8px; border-top: 2px solid var(--panel-lo); }
.posts-head { display: flex; align-items: center; gap: 6px; font: 15px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.posts-count { font: 13px/1 var(--mono); padding: 1px 4px 0; color: #04200e; background: var(--gold); letter-spacing: 0; }
.posts-count:empty { display: none; }
.composer { display: flex; flex-direction: column; gap: 4px; }
.composer textarea { height: auto; min-height: 0; resize: none; font: 16px/1.1 var(--mono); padding: 6px 7px; background: rgba(5, 12, 14, .75);
                     border: 2px solid var(--panel-lo); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .4); }
.composer textarea:focus { outline: none; border-color: var(--accent); }
.composer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.post-left { font: 14px/1 var(--mono); color: var(--dim); }
.posts-list { list-style: none; margin: 0; padding: 0; }
.posts-list > li.note { margin: 4px 0 0; text-align: center; }
.post { display: flex; gap: 8px; padding: 6px 2px; border-top: 1px dashed var(--line); }
.post-ava { width: 28px; height: 28px; }
.post-body { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: center; gap: 4px; }
.post-head b { font: 600 12px/1.1 var(--px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post.mine .post-head b { color: var(--pink); }
.post-time { margin-left: auto; font: 13px/1 var(--mono); color: var(--dim); }
.post-text { margin: 2px 0 0; font: 15px/1.1 var(--mono); overflow-wrap: anywhere; }

/* ---------- token list: wider, with each coin's day drawn behind its row ---------- */
#tab-tokens .pane { max-width: 363px; }   /* the original 330px, 10% wider */
.tok { position: relative; isolation: isolate; }
.tok > :not(.spark) { position: relative; }
.spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.spark-line { fill: none; stroke-width: 1.5; stroke-linejoin: round; }
.spark.up .spark-line { stroke: rgba(125, 255, 154, .4); } .spark.down .spark-line { stroke: rgba(255, 107, 107, .4); }
.spark.up .spark-area { fill: rgba(125, 255, 154, .07); } .spark.down .spark-area { fill: rgba(255, 107, 107, .07); }

/* ---------- coin page: the creator, under the links ---------- */
.creator { display: flex; flex-direction: column; gap: 5px; padding: 7px 8px; background: rgba(5, 12, 14, .45); border: 1px dashed var(--line); }
.creator[hidden] { display: none; }
.creator-label { font: 14px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.creator-row { display: flex; align-items: center; gap: 8px; }
.creator-ava { width: 20px; height: 20px; }   /* small: the coin's image is the star of this page */
.creator-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.creator-name { max-width: 100%; font: 600 13px/1.1 var(--px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-addr { font: 14px/1 var(--mono); color: var(--dim); }
.creator-addr .ext { padding: 0; color: var(--accent); }
.creator-stat { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 4px; }
.creator-stat b { font: 600 14px/1 var(--px); }
.creator-stat small { font: 12px/1 var(--mono); letter-spacing: .06em; color: var(--dim); }
/* the creator's avatar + name is one button into their profile */
.creator-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 2px; margin: -2px; appearance: none; cursor: pointer;
               text-align: left; color: inherit; font: inherit; text-shadow: inherit; background: none; border: 0; }
.creator-who:hover .creator-name { text-decoration: underline; }
.creator-who:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.creator-who .handle { pointer-events: none; }
.user .who { align-items: center; }
.user .who-main { flex: 1; }
#tab-user:not([hidden]) { min-height: 100%; display: flex; flex-direction: column; align-items: center; }

/* X's mobile player covers the bottom ~44px with its own controls (see IN_X_PLAYER): keep the tab bar clear of them */
.in-x-player .hud { padding-bottom: 52px; }
.in-x-player main { padding-bottom: 24px; }

/* ---------- sharing: a coin's /c/<mint> link with Copy and Post on X ---------- */
.share-box { display: flex; flex-direction: column; gap: 6px; padding: 7px 8px; background: rgba(5, 12, 14, .45); border: 1px dashed var(--line); }
.share-title { font: 600 12px/1.1 var(--px); color: var(--gold); }
.share-row { display: flex; align-items: center; gap: 6px; }
.share-url { flex: 1; min-width: 0; padding: 4px 6px; font: 15px/1 var(--mono); color: var(--accent); background: rgba(0, 0, 0, .35);
             border: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-row .btn { flex: none; }
#launch-share { display: flex; flex-direction: column; gap: 6px; }
#launch-share[hidden] { display: none; }
.open-coin { align-self: center; font: 14px/1 var(--mono); }
li.with-share { display: flex; align-items: center; border-top: 1px dashed var(--line); }
li.with-share .tok { flex: 1; min-width: 0; border-top: 0; }
.share-mini { flex: none; padding: 3px 6px; margin-left: 4px; font: 14px/1 var(--mono); color: var(--accent); text-decoration: none; border: 1px solid var(--line); }
.share-mini:hover { color: var(--text); border-color: var(--accent); }
