/* PLAYGROUND: a game HUD over a voxel world. Charcoal keycaps with a hard bottom edge (the voxel look), Pixelify for
   HUD labels, Plus Jakarta Sans for reading, the logo yellow as the one accent and its grass green for "live". */
@font-face { font-family: Jakarta; src: url(/assets/fonts/plus-jakarta-sans-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Jakarta; src: url(/assets/fonts/plus-jakarta-sans-500.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Jakarta; src: url(/assets/fonts/plus-jakarta-sans-700.woff2) format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: Pixelify; src: url(/assets/fonts/pixelify-700.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/assets/fonts/geist-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/assets/fonts/geist-mono-500.woff2) format('woff2'); font-weight: 500 700; font-display: swap; }

:root {
  --bg: #121214; --panel: rgba(27, 27, 31, .92); --panel2: #232328; --solid: #1b1b1f; --edge: #08080a;
  --line: rgba(237, 230, 214, .08); --line2: rgba(237, 230, 214, .16);
  --ink: #ede6d6; --mute: rgba(237, 230, 214, .64); --faint: rgba(237, 230, 214, .4);
  --amber: #ffc21a; --amber2: #ffd34d; --ok: #7ed957; --bad: #ff7a5c;
  --r: 12px; --r2: 9px; --sans: Jakarta, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; --px: Pixelify, var(--sans); --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --cap: 0 3px 0 var(--edge), 0 12px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--amber2); text-decoration: none; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.px { font-family: var(--px); letter-spacing: .04em; }
.small { font-size: 12px; color: var(--mute); }
::selection { background: var(--amber); color: #121214; }
* { scrollbar-width: thin; scrollbar-color: rgba(237, 230, 214, .16) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: rgba(237, 230, 214, .14); border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
kbd { font: 11px var(--px); padding: 1px 6px 2px; border-radius: 5px; background: rgba(0, 0, 0, .18); margin-left: 4px; }

#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; cursor: grab; }
#world.dragging { cursor: grabbing; }
#tags { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--bg); transition: opacity .7s, visibility .7s; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader img { animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(255, 170, 20, .35)); } @keyframes bob { 50% { transform: translateY(-6px); } }
.loader b { font: 800 15px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--amber2); }
.lbar { width: 200px; height: 8px; border-radius: 3px; background: #1d1d21; box-shadow: inset 0 0 0 1px var(--line2); overflow: hidden; } .lbar i { display: block; height: 100%; width: 30%; background: repeating-linear-gradient(90deg, var(--amber) 0 10px, var(--amber2) 10px 12px); transition: width .2s; }
.loader small { font: 11px var(--mono); color: var(--faint); }

/* keycaps: every button is a little block with a hard bottom edge */
.key { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--solid); box-shadow: var(--cap); cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; color: var(--ink); transition: transform .08s, box-shadow .08s, background .15s, border-color .15s; }
.key:hover { background: #24242a; border-color: rgba(237, 230, 214, .26); }
.key:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge), 0 6px 14px rgba(0, 0, 0, .3); }
.key.primary { background: var(--amber); border-color: #ffd34d; color: #121214; box-shadow: 0 3px 0 #a57400, 0 12px 28px rgba(255, 170, 20, .22); }
.key.primary:hover { background: var(--amber2); }
.key.primary:active { box-shadow: 0 1px 0 #a57400; }
.key.on { background: #2a2a30; border-color: rgba(255, 194, 26, .55); color: var(--amber2); }
.key:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.key.lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.key.sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.key.block { width: 100%; }
/* the launch sheet still uses .btn */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--solid); box-shadow: 0 3px 0 var(--edge); cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink); white-space: nowrap; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.btn.primary { background: var(--amber); border-color: #ffd34d; color: #121214; box-shadow: 0 3px 0 #a57400; } .btn.primary:hover { background: var(--amber2); }
.btn.ghost { background: var(--solid); } .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; } .btn.lg { height: 50px; font-size: 15px; } .btn.sm { height: 32px; font-size: 12px; padding: 0 12px; }

/* top bar: brand tile, keycap tabs, links */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 76px; display: flex; align-items: center; gap: 16px; padding: 0 20px; z-index: 20; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar::before { content: ''; position: absolute; inset: 0 0 -36px; background: linear-gradient(rgba(18, 18, 20, .9), rgba(18, 18, 20, 0)); pointer-events: none; z-index: -1; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-tile { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--solid); border: 1px solid var(--line2); box-shadow: var(--cap); }
.brand-tile img { filter: drop-shadow(0 0 10px rgba(255, 170, 20, .35)); }
.brand-txt { display: grid; line-height: 1.05; } .brand-txt b { font: 800 18px var(--sans); color: var(--amber); letter-spacing: .1em; } .brand-txt small { font-size: 11px; color: var(--faint); letter-spacing: .02em; }
.tabs { display: flex; gap: 8px; margin: 0 auto; }
.tabs .key { height: 38px; font-size: 13px; color: var(--mute); }
.tabs .key.on { color: var(--amber2); }
.tabs b { font: 800 12px var(--sans); color: var(--amber2); } .tabs b:empty { display: none; }
.end { display: flex; align-items: center; gap: 8px; }
.links { display: flex; align-items: center; gap: 8px; }
.ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--solid); box-shadow: var(--cap); color: var(--ink); cursor: pointer; padding: 0; }
.ic:hover { border-color: rgba(237, 230, 214, .3); } .ic:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.ic svg { width: 15px; height: 15px; } .ic img { width: 20px; height: 20px; border-radius: 50%; }
.ic.off { opacity: .5; cursor: default; }
.ic.ca { width: auto; padding: 0 12px; font: 500 12px var(--mono); color: var(--amber2); }
.wallet.on { color: var(--amber2); border-color: rgba(255, 194, 26, .45); }

/* title screen */
.title { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 70% at 50% 45%, rgba(18, 18, 20, .55), rgba(18, 18, 20, .94) 70%); transition: opacity .55s, visibility .55s; }
.title.away { opacity: 0; visibility: hidden; pointer-events: none; }
.title-in { width: min(760px, 100%); display: grid; justify-items: center; text-align: center; }
.title-logo { width: 200px; height: 200px; margin-bottom: 4px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(255, 170, 20, .35)); }
.title-kick { margin: 0 0 10px; font: 800 14px var(--sans); color: var(--amber); letter-spacing: .22em; }
.title h1 { margin: 0 0 14px; font-size: clamp(30px, 5vw, 54px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; }
.hl { display: inline-block; padding: 0 12px 4px; border-radius: 10px; background: var(--amber); color: #121214; transform: rotate(-1.5deg); box-shadow: 0 4px 0 #a57400, 0 0 40px rgba(255, 194, 26, .35); }
.title-p { margin: 0 0 22px; max-width: 560px; color: var(--mute); font-size: 16px; }
.title-acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.title-more { margin-top: 16px; font-size: 13px; color: var(--mute); } .title-more:hover { color: var(--amber2); }
body.titled #tags, body.titled .topbar .tabs, body.titled .feed, body.titled .board, body.titled .hud, body.titled .camkeys { opacity: 0; pointer-events: none; }
.tabs, .feed, .board, .hud, .camkeys { transition: opacity .5s; }

/* live feed: robot speech bubbles */
.feed { position: fixed; z-index: 14; left: 20px; top: 96px; bottom: 132px; width: 330px; display: flex; flex-direction: column; pointer-events: none; }
.feed > * { pointer-events: auto; }
.feed-h { align-self: flex-start; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--cap); margin-bottom: 12px; backdrop-filter: blur(10px); }
.feed-h .px { font-size: 13px; color: var(--ok); } .feed-h small { color: var(--faint); font-size: 11.5px; }
.live { width: 8px; height: 8px; border-radius: 2px; background: var(--faint); } .live.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.min { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--mute); cursor: pointer; flex: none; line-height: 1; }
.min:hover { color: var(--ink); border-color: var(--line2); }
.feed .log { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; gap: 8px; overflow: auto; align-content: start; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.feed.folded .log { display: none; }
.feed .log li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; cursor: pointer; animation: in .45s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes in { from { opacity: 0; transform: translateX(-10px) scale(.96); } }
.bot { width: 30px; height: 30px; border-radius: 8px; background: #eeebe4; position: relative; box-shadow: 0 2px 0 #b8b2a6; margin-top: 2px; }
.bot::before { content: ''; position: absolute; left: 4px; right: 4px; top: 7px; height: 14px; border-radius: 4px; background: #16151a; }
.bot::after { content: ''; position: absolute; top: 11px; left: 9px; width: 4px; height: 5px; background: var(--amber2); box-shadow: 8px 0 0 var(--amber2), 0 0 6px var(--amber); }
.bot.sys { background: var(--solid); box-shadow: 0 2px 0 var(--edge); border: 1px solid var(--line2); } .bot.sys::before, .bot.sys::after { display: none; }
.bot.sys img { width: 24px; height: 24px; margin: 2px; }
.bub { position: relative; padding: 8px 11px 9px; border-radius: 4px 12px 12px 12px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: 12.5px; color: var(--mute); }
.feed .log li:hover .bub { color: var(--ink); border-color: var(--line2); }
.bub em { display: flex; justify-content: space-between; gap: 8px; font: normal 11px var(--px); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.bub time { font: 10.5px var(--mono); letter-spacing: 0; text-transform: none; }
.log [data-k=found] .bub, .log [data-k=service] .bub { border-color: rgba(255, 194, 26, .35); } .log [data-k=found] em, .log [data-k=service] em { color: var(--amber); }
.log [data-k=trade] em { color: var(--amber2); } .log [data-k=hire] em, .log [data-k=arrive] em { color: var(--ok); } .log [data-k=close] em { color: var(--bad); } .log [data-k=merge] em { color: #c59bff; } .log [data-k=civic] em { color: var(--ink); }
/* the compact feed inside an inspect card */
.log.mini { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 6px; }
.log.mini li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; cursor: pointer; }
.log.mini .bot { width: 22px; height: 22px; border-radius: 6px; } .log.mini .bot::before { top: 5px; height: 10px; left: 3px; right: 3px; } .log.mini .bot::after { top: 8px; left: 6px; width: 3px; height: 4px; box-shadow: 7px 0 0 var(--amber2); }
.log.mini .bot.sys img { width: 18px; height: 18px; }
.log.mini .bub { padding: 6px 9px; font-size: 12px; background: rgba(0, 0, 0, .2); }

/* scoreboard */
.board { position: fixed; z-index: 14; right: 20px; top: 96px; width: 280px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--cap); backdrop-filter: blur(14px); }
.bd-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px; }
.cz-img { width: 40px; height: 40px; border-radius: 10px; background: var(--panel2); overflow: hidden; flex: none; display: grid; place-items: center; box-shadow: 0 2px 0 var(--edge); } .cz-img img { width: 100%; height: 100%; object-fit: cover; }
.cz-who { display: grid; min-width: 0; flex: 1; } .cz-who b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cz-who small { color: var(--faint); font-size: 11.5px; }
.bd-body { padding: 0 12px 12px; }
.board.folded .bd-body { display: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.stats div { background: #17171a; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px 8px; box-shadow: 0 2px 0 var(--edge); }
.stats dt { font: 800 11px var(--sans); color: var(--faint); letter-spacing: .05em; text-transform: uppercase; }
.stats dd { margin: 1px 0 0; font: 700 17px var(--sans); white-space: nowrap; letter-spacing: -.01em; }
.spark { margin-top: 10px; } .spark .lab { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; margin-bottom: 4px; }
#cz-chart { display: block; width: 100%; height: 54px; border-radius: 9px; background: #17171a; border: 1px solid var(--line); }
.cz-sectors { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.cz-sectors span { font-size: 11.5px; padding: 3px 9px 3px 7px; border-radius: 7px; border: 1px solid var(--line2); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; background: #17171a; }
.cz-sectors span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.cz-sectors .eth { color: var(--amber2); border-color: rgba(255, 194, 26, .35); } .cz-sectors .eth::before { display: none; }
.cz-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .cz-acts:empty { display: none; }

/* inspect card, above the hotbar */
.inspect { position: fixed; z-index: 16; left: 50%; bottom: 150px; transform: translateX(-50%); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 290px); overflow: auto; padding: 16px 16px 12px; border-radius: 14px; background: rgba(27, 27, 31, .96); border: 1px solid var(--line2); box-shadow: var(--cap), 0 30px 60px rgba(0, 0, 0, .4); animation: rise .3s cubic-bezier(.2, 1.2, .3, 1); }
@keyframes rise { from { transform: translate(-50%, 14px); opacity: 0; } }
.kick { margin: 0 0 4px; font: 800 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.inspect h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; padding-right: 34px; }
.inspect .sub { margin: 0 0 12px; color: var(--mute); font-size: 13px; }
.inspect h4 { margin: 12px 0 6px; font: 800 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.people { margin: 0; font-size: 13px; color: var(--mute); }
.lnk { border: 0; background: none; padding: 0; color: var(--amber2); cursor: pointer; font: inherit; } .lnk:hover { text-decoration: underline; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 4px; }
.kv div { background: #17171a; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.kv dt { font: 800 10.5px var(--sans); color: var(--faint); text-transform: uppercase; letter-spacing: .04em; } .kv dd { margin: 0; font: 700 14px var(--sans); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line2); background: var(--solid); box-shadow: 0 2px 0 var(--edge); cursor: pointer; font-size: 16px; line-height: 1; color: var(--mute); z-index: 2; }
.x:hover { color: var(--ink); }

/* labels in the world */
.tag { position: absolute; left: 0; top: 0; pointer-events: auto; display: grid; justify-items: center; padding: 5px 11px 6px; border-radius: 8px; background: rgba(27, 27, 31, .92); border: 1px solid var(--line2); box-shadow: 0 2px 0 var(--edge); cursor: pointer; white-space: nowrap; color: var(--ink); }
.tag::after { content: ''; position: absolute; bottom: -6px; left: 50%; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: rgba(27, 27, 31, .92); }
.tag b { font-size: 12px; font-weight: 700; } .tag span { font-size: 10.5px; color: var(--mute); }
.tag.hall { padding: 6px 14px 7px; border-color: rgba(255, 194, 26, .5); } .tag.hall b { font: 800 14px var(--sans); letter-spacing: .14em; color: var(--amber); } .tag.hall span { font-size: 10.5px; }
.tag.new { border-color: rgba(255, 194, 26, .6); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); } .tag.new span { color: var(--amber); font-family: var(--sans); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
@keyframes pop { from { opacity: 0; scale: .7; } }
.tag.hov { pointer-events: none; }

/* the hotbar: one slot per theme + the day as an XP bar */
.hud { position: fixed; z-index: 16; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; }
.day { display: flex; align-items: center; gap: 10px; font: 800 13px var(--sans); color: var(--ink); }
.day .mono { font: 800 13px var(--sans); color: var(--mute); }
.xp { width: 280px; height: 10px; border-radius: 3px; background: #17171a; border: 1px solid var(--line2); overflow: hidden; box-shadow: 0 2px 0 var(--edge); }
.xp i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--ok) 0 12px, #9be673 12px 14px); transition: width 1s linear; }
.hotbar { display: flex; gap: 6px; padding: 7px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--cap); backdrop-filter: blur(12px); }
.slot { position: relative; width: 60px; height: 60px; border-radius: 10px; border: 1px solid var(--line2); background: #17171a; box-shadow: 0 3px 0 var(--edge); cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--ink); transition: transform .08s, border-color .15s, background .15s; }
.slot:hover { background: #222227; border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-2px); }
.slot:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.slot.fav { border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 3px 0 var(--edge), inset 0 0 14px color-mix(in srgb, var(--c) 22%, transparent); }
.slot.none { opacity: .45; }
.slot svg { width: 32px; height: 32px; }
.slot .n { position: absolute; left: 5px; top: 3px; font: 800 10px var(--sans); color: var(--faint); }
.slot .c { position: absolute; right: 5px; bottom: 2px; font: 800 14px var(--sans); color: var(--ink); text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
.slot .t { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: var(--solid); border: 1px solid var(--line2); font-size: 11.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.slot:hover .t, .slot:focus-visible .t { opacity: 1; }

/* camera keys */
.camkeys { position: fixed; z-index: 16; right: 20px; bottom: 22px; display: grid; grid-template-columns: repeat(5, 36px); gap: 6px; }
.camkeys .key { width: 36px; height: 36px; padding: 0; font: 14px var(--px); color: var(--mute); }
.camkeys .key:hover { color: var(--ink); }

/* the menu panel (launch, playgrounds, how it works) docks on the left */
.sheet { position: fixed; z-index: 30; top: 90px; left: 20px; bottom: 20px; width: 460px; overflow: auto; padding: 22px 22px 20px; border-radius: 16px; background: rgba(24, 24, 27, .97); border: 1px solid var(--line2); box-shadow: var(--cap), 0 30px 80px rgba(0, 0, 0, .5); animation: slide .35s cubic-bezier(.2, 1.1, .3, 1); }
.sheet.wide { width: 500px; }
@keyframes slide { from { transform: translateX(-18px); opacity: 0; } }
.sheet h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.025em; font-weight: 800; padding-right: 34px; }
.lead { color: var(--mute); margin: 0 0 18px; font-size: 14px; }
.how { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.how li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px; border-radius: 12px; background: #1f1f23; border: 1px solid var(--line); }
.how .n, .ls .n { font: 800 14px var(--sans); color: #121214; background: var(--amber); border-radius: 8px; height: 34px; display: grid; place-items: center; box-shadow: 0 2px 0 #a57400; }
.how h3 { margin: 4px 0 4px; font-size: 15px; font-weight: 700; } .how p { margin: 0; color: var(--mute); font-size: 13.5px; }
.search { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: #17171a; padding: 0 14px; margin-bottom: 12px; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .25); }
.search:focus { outline: none; border-color: rgba(255, 194, 26, .6); }
.coins { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.coins a { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--line); background: #1f1f23; box-shadow: 0 2px 0 var(--edge); color: var(--ink); }
.coins a:hover { border-color: rgba(255, 194, 26, .45); }
.ci { width: 46px; height: 46px; border-radius: 10px; background: var(--panel2); overflow: hidden; } .ci img { width: 100%; height: 100%; object-fit: cover; }
.cn { display: grid; min-width: 0; } .cn small { color: var(--mute); font-size: 11.5px; } .cn b { font-weight: 700; } .cn b small { color: var(--amber2); font-size: 11px; font-family: var(--mono); }
.cs { font: 800 18px var(--sans); color: var(--amber2); display: grid; justify-items: center; } .cs small { font: 10px var(--sans); color: var(--mute); }
.empty { color: var(--mute); padding: 18px; text-align: center; border: 1px dashed var(--line2); border-radius: 11px; }

/* launch form */
.ls { padding: 14px 0; border-top: 1px solid var(--line); }
.ls header { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; margin-bottom: 12px; }
.ls h3 { margin: 0; font-size: 15px; font-weight: 700; } .ls header p { margin: 0; color: var(--faint); font-size: 12px; }
.hint { margin: 10px 0 6px; font-size: 12.5px; font-weight: 600; } .hint em { font-style: normal; color: var(--faint); margin-left: 4px; font-weight: 400; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .f.full { grid-column: 1 / -1; }
.f { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; } .f em { font-style: normal; color: var(--faint); font-size: 11px; margin-left: 6px; font-weight: 400; }
.f input { height: 42px; border-radius: 9px; border: 1px solid var(--line2); background: #17171a; padding: 0 12px; min-width: 0; font-weight: 500; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .25); }
.f input:focus { border-color: rgba(255, 194, 26, .6); outline: none; }
.tick { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 9px; background: #17171a; padding-left: 12px; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .25); } .tick i { font-style: normal; color: var(--amber); } .tick input { border: 0; background: transparent; flex: 1; box-shadow: none; }
.drop { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border: 1px dashed var(--line2); border-radius: 11px; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--amber); } .drop small { display: block; color: var(--faint); font-size: 11.5px; }
.thumb { width: 54px; height: 54px; border-radius: 10px; background: var(--panel2); display: grid; place-items: center; color: var(--amber); font: 800 22px var(--sans); overflow: hidden; flex: none; } .thumb img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line2); background: #1d1d21; box-shadow: 0 2px 0 var(--edge); cursor: pointer; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.chip:active { transform: translateY(2px); box-shadow: none; }
.chip.on { border-color: var(--amber); color: var(--amber2); background: rgba(255, 194, 26, .1); }
.chip.sec::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--c); opacity: .5; } .chip.sec.on::before { opacity: 1; }
.chip.sec.on { border-color: var(--c); color: var(--ink); background: color-mix(in srgb, var(--c) 14%, #1d1d21); }
.chips.sm .chip { height: 28px; font-size: 11.5px; padding: 0 10px; cursor: default; box-shadow: none; } .chips.sm .chip:not(.on) { opacity: .45; }
.ethos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.eth { text-align: left; padding: 10px 11px; border-radius: 10px; border: 1px solid var(--line2); background: #1d1d21; box-shadow: 0 2px 0 var(--edge); cursor: pointer; display: grid; gap: 2px; }
.eth b { font: 800 14px var(--sans); letter-spacing: .03em; } .eth small { font-size: 11px; color: var(--faint); line-height: 1.35; }
.eth.on { border-color: var(--amber); background: rgba(255, 194, 26, .08); } .eth.on b { color: var(--amber2); }
.sl { display: block; margin: 12px 0 6px; } .sl-h { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; } .sl-h output { font: 800 14px var(--sans); color: var(--amber2); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 3px; background: #17171a; border: 1px solid var(--line2); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 3px; background: #17171a; border: 1px solid var(--line2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 5px; background: var(--amber); box-shadow: 0 2px 0 #a57400; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 5px; background: var(--amber); }
.charter { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 194, 26, .07); border: 1px solid rgba(255, 194, 26, .25); font-size: 13px; }
.pcard { margin-top: 6px; padding: 14px; border-radius: 14px; background: #1f1f23; border: 1px solid var(--line2); box-shadow: 0 3px 0 var(--edge); display: grid; gap: 10px; }
.prow { display: flex; gap: 12px; align-items: center; }
.pimg { width: 50px; height: 50px; border-radius: 11px; background: #151418; display: grid; place-items: center; color: var(--faint); font-size: 10px; overflow: hidden; border: 1px solid var(--line); flex: none; } .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pwho { display: grid; } .pwho b { font-size: 15px; font-weight: 700; } .pwho span { font-family: var(--mono); color: var(--amber2); font-size: 12px; }
.fine { margin: 0; font-size: 11.5px; color: var(--faint); }
.status { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); font-size: 12.5px; color: var(--mute); }
.status.err { border-color: rgba(255, 122, 92, .5); color: #ffb8a6; } .status.ok { border-color: rgba(126, 217, 87, .5); color: #cdf2bb; } .status.hide { display: none; }
.status .btn { height: 28px; margin-left: 6px; }

/* admin, toasts, no-gl */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0, 0, 0, .6); }
.mcard { position: relative; width: min(400px, calc(100vw - 32px)); padding: 22px; border-radius: 14px; background: #1e1e22; border: 1px solid var(--line2); box-shadow: var(--cap); display: grid; gap: 10px; }
.mcard h2 { margin: 0 0 4px; font-size: 18px; } .mcard label { display: grid; gap: 4px; font-size: 12.5px; color: var(--mute); }
.mcard input { height: 40px; border-radius: 9px; border: 1px solid var(--line2); background: #17171a; padding: 0 10px; color: var(--ink); }
.mcard .actions { display: flex; gap: 8px; justify-content: flex-end; }
.toasts { position: fixed; z-index: 95; left: 50%; top: 86px; transform: translateX(-50%); display: grid; gap: 6px; }
.toast { padding: 10px 14px; border-radius: 10px; background: #222226; border: 1px solid var(--line2); box-shadow: var(--cap); font-size: 13px; animation: fadein .3s; transition: opacity .4s; }
@keyframes fadein { from { opacity: 0; } }
.toast.err { border-color: rgba(255, 122, 92, .5); } .toast.out { opacity: 0; }
.nogl { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; gap: 4px; }
.nogl h1 { color: var(--amber); letter-spacing: .1em; }

body.sheet-open .feed, body.sheet-open .camkeys { display: none; }

/* narrower screens */
@media (max-width: 1180px) { .tabs .key { padding: 0 12px; } .brand-txt small { display: none; } }
@media (max-width: 999px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 12px 14px 0; row-gap: 10px; }
  .tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; padding-bottom: 6px; }
  .tabs .key { flex: none; height: 34px; }
  .feed { top: auto; bottom: 150px; left: 12px; width: min(330px, calc(100% - 24px)); max-height: 30vh; }
  .feed .log li:nth-child(n+4) { display: none; }
  .board { top: 128px; right: 12px; width: 220px; } .board .spark, .board .cz-sectors { display: none; }
  .camkeys { display: none; }
  .sheet, .sheet.wide { left: 12px; right: 12px; width: auto; top: 128px; bottom: 12px; }
  .inspect { bottom: 150px; }
}
@media (max-width: 640px) {
  .brand-txt, .found-cta, .wallet, .ic.ca, .ic.snd { display: none; }
  .brand-tile { width: 42px; height: 42px; }
  .end { margin-left: auto; }
  .board { left: 12px; right: 12px; width: auto; top: 112px; } .board .bd-body { display: none; }
  .sheet, .sheet.wide { top: 112px; }
  .slot { width: 38px; height: 38px; border-radius: 8px; } .slot svg { width: 22px; height: 22px; } .slot .n { display: none; } .slot .c { font-size: 11px; right: 3px; bottom: 0; }
  .hotbar { gap: 4px; padding: 5px; } .xp { width: 150px; }
  .feed { bottom: 112px; } .feed .log li:nth-child(n+3) { display: none; } .feed-h small { display: none; }
  .inspect { bottom: 112px; max-height: calc(100vh - 240px); } .kv { grid-template-columns: 1fr 1fr; }
  .fields, .ethos { grid-template-columns: 1fr; }
  .title-logo { width: 140px; height: 140px; } .title-p { font-size: 14px; }
  .tag { padding: 3px 8px 4px; } .tag b { font-size: 11px; } .tag span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
