:root {
  --paper: #fbf8f2; --ink: #23201c; --ink2: #6d655b; --line: #e6dccd; --card: #ffffff;
  --wall: #f3e6d1; --wall2: #ecd9bd; --floor: #d8b685; --floor2: #cfa978; --base: #b98d5a;
  --mint: #18a865; --mint-bg: #dff6e9; --coral: #e0483b; --coral-bg: #ffe6e2; --sun: #ffc83d; --sky: #bfe6ff; --violet: #7b5cd6;
  --shadow: 4px 4px 0 var(--ink);
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--body); font-variant-numeric: tabular-nums; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ── header ── */
.top { display: flex; align-items: center; gap: 24px; padding: 14px 24px; flex-wrap: wrap; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.logo { font: 800 26px/1 var(--display); text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -.5px; }
.logo::before { content: ''; width: 36px; height: 36px; background: url(/assets/logo.png) center/contain no-repeat; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.18)); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { text-decoration: none; font-weight: 700; padding: 6px 14px; border-radius: 999px; color: var(--ink2); }
nav a:hover { color: var(--ink); background: var(--wall); }
nav a.on { color: var(--ink); background: var(--wall2); }
.right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.ca { font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--wall); cursor: pointer; }
.ca:empty { display: none; }

.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--card); border: 2.5px solid var(--ink); border-radius: 999px; padding: 8px 18px; font-weight: 800; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--sun); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.mode { text-align: center; font-weight: 700; font-size: 13px; padding: 6px 12px; }
.mode.paper { background: var(--sun); border-bottom: 2px solid var(--ink); }
.mode.live { display: none; }

main { max-width: 1240px; margin: 0 auto; padding: 28px 20px 90px; }
h1 { font: 800 clamp(32px, 4.6vw, 54px)/1.02 var(--display); margin: 0 0 12px; letter-spacing: -1px; }
h2 { font: 800 24px/1.1 var(--display); margin: 34px 0 14px; }
.prompt { display: none; }
.sub { color: var(--ink2); margin: 0 0 20px; max-width: 62ch; font-size: 17px; }

/* ── hero ── */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; margin: 4px 0 26px; }
.hero-copy h1 { margin-bottom: 14px; }
.hero-copy p { margin: 0 0 22px; font-size: 18px; color: #4c463f; max-width: 46ch; }
.hero-copy .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.board { background: #2b2620; color: #f7f1e6; border: 3px solid var(--ink); border-radius: 22px; padding: 18px 22px; box-shadow: var(--shadow); }
.board .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.14); }
.board .row:last-child { border-bottom: 0; }
.board .k { color: #c9bfae; font-size: 14px; }
.board .v { font: 800 26px/1 var(--display); }
.board .v.up { color: #6ff0a8; } .board .v.down { color: #ff8a7d; }
.board .live { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #c9bfae; margin-bottom: 4px; }
.board .live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ff5b4d; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ── office rooms (art: room / chair / character / desk / live screen / desk front) ── */
.rooms { display: grid; gap: 22px; }
.room { position: relative; aspect-ratio: 1536 / 874; background-size: 100% auto; background-position: center bottom; border: 3px solid var(--ink); border-radius: 30px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); container-type: inline-size; }
.floor-no { position: absolute; left: 2%; top: 3%; z-index: 30; background: rgba(35, 32, 28, .78); color: var(--paper); font-weight: 800; font-size: clamp(11px, 1.2cqw, 15px); padding: .3em .9em; border-radius: 999px; }
.slot { all: unset; position: absolute; display: block; cursor: pointer; z-index: 5; -webkit-tap-highlight-color: transparent; }
.slot > * { position: absolute; }
.slot:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 18px; }
.slot .chair { z-index: 1; user-select: none; }
.slot .who { z-index: 2; pointer-events: none; transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite; animation-delay: var(--d); }
.slot .who-in { width: 100%; height: 100%; transform-origin: 50% 100%; transition: transform .35s, filter .35s; }
.slot .ch { width: 100%; height: 100%; display: block; user-select: none; }
.slot .deskbox { left: 0; width: 100%; z-index: 3; }
.slot .desk, .slot .desk-fg { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; }
.slot .desk-fg { z-index: 2; }
.slot .scr { position: absolute; left: 0; top: 0; transform-origin: 0 0; z-index: 1; overflow: hidden; background: #24272c; border-radius: 6px; }
.slot .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .3s; }
.slot .scr img.on { opacity: 1; }
.slot .scr-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #9fb4c2; font: 800 90px/1.1 var(--body); text-align: center; padding: 40px; }
.slot .scr img.on ~ .scr-msg { display: none; }
.slot .scr::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.10), transparent 40%); pointer-events: none; }
.slot:hover .who-in { transform: translateY(-2.5%); }
.slot .tag { left: 50%; top: 77%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: .5em; white-space: nowrap; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: .25em .85em; font-weight: 800; font-size: clamp(10px, 1.15cqw, 15px); box-shadow: 2px 2px 0 var(--ink); transition: background .15s; }
.slot:hover .tag { background: var(--sun); }
.slot .tag .dot { width: .6em; height: .6em; border-radius: 50%; background: #b8ada0; }
.slot.is-active .tag .dot { background: var(--mint); box-shadow: 0 0 0 3px var(--mint-bg); }
.slot .tag .pl { color: var(--ink2); }
.slot .tag .pl.up { color: var(--mint); } .slot .tag .pl.down { color: var(--coral); }
.slot.free { cursor: pointer; }
.slot.free .tag { background: rgba(255,255,255,.85); border-style: dashed; }
.slot.free:hover .tag { background: var(--sun); }

.slot .bubble { left: 64%; top: -2%; transform: translateX(-50%); z-index: 8; max-width: 70%; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: .35em .8em; font-weight: 800; font-size: clamp(10px, 1.1cqw, 14px); box-shadow: 2px 2px 0 var(--ink); animation: pop .22s ease-out; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .bubble.buy { background: var(--mint-bg); } .slot .bubble.loss { background: var(--coral-bg); } .slot .bubble.pass { color: var(--ink2); } .slot .bubble.think { border-style: dashed; }
@keyframes pop { from { transform: translateX(-50%) scale(.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.slot .float { left: 64%; top: 12%; z-index: 9; white-space: nowrap; font: 800 clamp(14px, 2.2cqw, 28px)/1 var(--display); pointer-events: none; animation: rise 2.2s ease-out forwards; text-shadow: 2px 2px 0 var(--card); transform: translateX(-50%); }
.slot .float.up { color: var(--mint); } .slot .float.down { color: var(--coral); }
@keyframes rise { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -260%); opacity: 0; } }
.slot .zzz { left: 80%; top: 6%; z-index: 8; display: none; font: 800 clamp(14px, 2cqw, 26px) var(--display); color: #5d4b33; }
.slot .zzz span { position: absolute; animation: zz 3s infinite; opacity: 0; }
.slot .zzz span:nth-child(2) { animation-delay: 1s; } .slot .zzz span:nth-child(3) { animation-delay: 2s; }
@keyframes zz { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(1.2em, -2.6em) scale(1.2); opacity: 0; } }

@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.012) translateY(-.4%); } }
.is-active .who-in { animation: typing .5s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes typing { from { transform: translateY(0); } to { transform: translateY(.5%); } }
.is-think .who-in { transform: rotate(-3deg); animation: none; }
.is-buy .who-in, .is-win .who-in { animation: hop .45s ease-out 2; }
.is-loss .who-in { animation: shake .4s ease-in-out 2; }
.is-evolve .who-in { animation: hop .5s ease-out 1; filter: drop-shadow(0 0 8px var(--sun)) drop-shadow(0 0 3px var(--sun)); }
@keyframes hop { 40% { transform: translateY(-9%); } 100% { transform: translateY(0); } }
@keyframes shake { 25% { transform: translateX(-3%) rotate(-2deg); } 75% { transform: translateX(3%) rotate(2deg); } }
.is-resting .who-in { transform: translateY(8%) rotate(4deg); filter: saturate(.75) brightness(.92); animation: none; }
.is-resting .zzz { display: block; }
.is-resting .scr { background: #15171a; }
.is-resting .scr::after { display: none; }

/* ── ticker ── */
.ticker { margin: 22px 0 0; overflow: hidden; border: 3px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.ticker .track { display: inline-flex; gap: 42px; padding: 10px 0; white-space: nowrap; animation: marquee 60s linear infinite; font-weight: 700; }
.ticker .track:hover { animation-play-state: paused; }
.ticker .up { color: #6ff0a8; } .ticker .down { color: #ff8a7d; } .ticker .who { color: var(--sun); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── cards, tables, misc (shared by all pages) ── */
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.grid2 > * { min-width: 0; }
.card, .tbl-wrap, .log, .tiles { background: var(--card); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow); }
.card { padding: 18px 20px; margin: 14px 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); overflow: hidden; margin: 18px 0; }
.tile { padding: 14px 18px; border-right: 2px solid var(--line); }
.tile:last-child { border-right: 0; }
.tile .v { font: 800 28px/1.1 var(--display); }
.tile .k { color: var(--ink2); font-size: 14px; font-weight: 700; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { text-align: left; font-weight: 800; font-size: 13px; color: var(--ink2); padding: 12px 14px 8px; border-bottom: 2px solid var(--line); }
td { padding: 9px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--paper); }
.num { text-align: right; }
.mini { width: 30px; height: 34px; vertical-align: middle; margin: -6px 8px -6px 0; }
.pos { color: var(--mint); font-weight: 700; } .neg { color: var(--coral); font-weight: 700; } .dim { color: var(--ink2); } .amb { color: #b07d00; font-weight: 700; } .vio { color: var(--violet); }
h1 .tag { position: static; transform: none; display: inline-flex; vertical-align: middle; font: 800 14px var(--body); margin-left: 10px; box-shadow: none; }
.log { height: 460px; overflow-y: auto; padding: 10px 16px; font-size: 14px; }
.log .ln { padding: 5px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.log .ln:last-child { border-bottom: 0; }
.log .t { color: var(--ink2); margin-right: 8px; font-size: 12px; }
.log .who { font-weight: 800; margin-right: 6px; }
.callouts { max-height: 720px; overflow-y: auto; padding-right: 4px; }
.callouts .c { background: var(--card); border: 2px solid var(--ink); border-left-width: 8px; border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
.callouts .c.entry { border-left-color: var(--mint); } .callouts .c.exit { border-left-color: #2b8fd6; }
.callouts .c.lesson { border-left-color: var(--violet); } .callouts .c.evolve { border-left-color: var(--sun); } .callouts .c.pass { border-left-color: #c8bdaf; }
.callouts .meta { color: var(--ink2); font-size: 12px; font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.kv .k { color: var(--ink2); font-weight: 700; }
.mono-break { word-break: break-all; }
input[type=text] { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 14px; font: inherit; width: 100%; max-width: 380px; }
input[type=text]:focus { outline: 3px solid var(--sun); }
.secret { background: var(--coral-bg); border: 2.5px solid var(--coral); border-radius: 14px; padding: 12px 14px; word-break: break-all; margin: 10px 0; font-family: ui-monospace, monospace; }
.warn { color: #9a6a00; font-weight: 700; } .err { color: var(--coral); font-weight: 700; }
.empty { color: var(--ink2); padding: 16px 4px; }
.man dt { font: 800 22px var(--display); margin-top: 18px; }
.man dd { margin: 4px 0 0; max-width: 66ch; color: #4c463f; }
svg.spark { width: 100%; height: 140px; display: block; background: var(--card); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow); }
.agent-head { display: flex; align-items: center; gap: 18px; }
.agent-head .big-ch { width: 96px; height: 112px; }
.agent-head .big-ch svg { width: 100%; height: 100%; overflow: visible; }

/* live screen on agent page */
.scr { display: block; border: 2.5px solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); text-decoration: none; }
.scr-v { position: relative; aspect-ratio: 16 / 10; background: #1f2b33; overflow: hidden; }
.scr-v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.scr-v img.on { opacity: 1; }
.scr-v img.on + .scr-wait { display: none; }
.scr-wait { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: #b9d3e0; font-weight: 700; }
.scr-c { padding: 10px 16px; font-size: 14px; font-weight: 700; white-space: pre-line; min-height: 22px; border-top: 2px solid var(--ink); }
.scr.big { margin: 18px 0; }

/* ── agent drawer ── */
.scrim { position: fixed; inset: 0; background: rgba(35, 32, 28, .35); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 41; background: var(--paper); border-left: 3px solid var(--ink); transform: translateX(105%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; padding: 22px 22px 40px; }
.drawer.on { transform: none; }
.drawer .x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--card); font-weight: 800; cursor: pointer; }
.drawer .who-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.drawer .who-row .big-ch { width: 84px; height: 98px; } .drawer .who-row svg { width: 100%; height: 100%; overflow: visible; }
.drawer h3 { font: 800 30px/1 var(--display); margin: 0 0 6px; }
.drawer .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.drawer .stat { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; }
.drawer .stat b { display: block; font: 800 22px/1.1 var(--display); }
.drawer .stat span { color: var(--ink2); font-size: 13px; font-weight: 700; }
.drawer .feed .c { font-size: 14px; }

.bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 6px 20px; background: var(--paper); border-top: 2px solid var(--line); color: var(--ink2); font-size: 13px; font-weight: 700; z-index: 10; }
#ws-state.on { color: var(--mint); }

@media (max-width: 980px) {
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .top { position: static; gap: 8px; padding: 10px 14px; }
  .logo { font-size: 22px; }
  .right { margin-left: auto; }
  nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav a { padding: 5px 12px; font-size: 14px; white-space: nowrap; }
  .mode { font-size: 12px; }
  main { padding: 16px 12px 80px; }
  .hero-copy p { display: none; }
  .hero-copy h1 { font-size: 32px; }
  .board { padding: 12px 16px; }
  .board .v { font-size: 20px; }
  .tile { border-right: 0; border-bottom: 2px solid var(--line); }
  .log { height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

img.av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin: -6px 10px -6px 0; border: 2px solid var(--ink); background: var(--wall); }
img.av-big { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: var(--wall); }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .room { border-radius: 18px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
  .hero-copy p { display: none; }
  .slot .tag { font-size: 8.5px; padding: .2em .6em; border-width: 1.5px; box-shadow: none; gap: .35em; }
  .slot .tag .pl { display: none; }
  .slot .bubble { font-size: 9px; }
  .floor-no { font-size: 10px; }
  .board { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .board .live { grid-column: 1 / -1; }
  .board .row { flex-direction: column; align-items: flex-start; gap: 2px; border-bottom: 0; padding: 4px 0; }
}

/* talking: head bob + speaker badge on the bubble */
.is-talking .who-in { animation: talk .22s ease-in-out infinite alternate !important; }
@keyframes talk { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-1.2%) scaleY(1.01); } }
.slot .bubble.talk { background: var(--sun); white-space: normal; max-width: 92%; width: max-content; line-height: 1.25; }
.slot .bubble.talk::before { content: '🔊 '; }
.btn.snd { padding: 8px 14px; }
@media (max-width: 620px) { .btn.snd { padding: 6px 10px; font-size: 13px; } }

/* ── coffee break: seat empties, standing character walks around the room ── */
.slot .who, .slot .chair { transition: opacity .35s; }
.slot.is-away .who { opacity: 0; }
.slot.is-break .who-in { animation: none; }
.walker { position: absolute; z-index: 4; transform: translate(-50%, -100%); cursor: pointer; animation: wk-in .35s ease-out; }
.walker.leaving { opacity: 0; transition: opacity .35s; }
@keyframes wk-in { from { opacity: 0; } }
.walker .wk-in { height: 100%; transform-origin: 50% 100%; }
.walker img { height: 100%; width: auto; display: block; user-select: none; transition: transform .2s; filter: drop-shadow(0 6px 4px rgba(60, 35, 10, .28)); }
.walker.left img { transform: scaleX(-1); }
.walker.walking .wk-in { animation: step .42s ease-in-out infinite; }
@keyframes step { 0%, 100% { transform: translateY(0) rotate(-2.5deg); } 50% { transform: translateY(-2.5%) rotate(2.5deg); } }
.walker:not(.walking) .wk-in { animation: sway 3s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-.8deg); } 50% { transform: rotate(.8deg); } }
.walker .bubble { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); z-index: 2; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: .35em .8em; font-weight: 800; font-size: clamp(10px, 1.1cqw, 14px); box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; animation: pop .22s ease-out; }
.walker .bubble.talk { background: var(--sun); }
.walker .bubble.talk::before { content: '🔊 '; }
.walker .bubble.buy { background: var(--mint-bg); } .walker .bubble.loss { background: var(--coral-bg); }

/* ── launch form ── */
.launch { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 800; }
.form small { font-weight: 600; color: var(--ink2); }
.form input[type=text], .form textarea { max-width: none; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 14px; font: inherit; font-weight: 600; width: 100%; resize: vertical; }
.form input[type=file] { font: inherit; font-weight: 600; }
.form details { border: 2px dashed var(--line); border-radius: 14px; padding: 8px 12px; }
.form details[open] { display: grid; gap: 10px; }
.form summary { cursor: pointer; font-weight: 800; }
.form .btn { justify-self: start; font-size: 17px; padding: 10px 22px; }
.terms h3 { font: 800 22px var(--display); margin: 0 0 8px; }
.terms ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: #4c463f; }
.coinrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
@media (max-width: 860px) { .launch { grid-template-columns: 1fr; } }

/* ── CA bar under the header ── */
.cabar { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 8px 16px; border-bottom: 2px solid var(--line); background: var(--paper); }
.cabar:has(.ca[hidden]):has(.links:empty) { display: none; }
.ca { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; border: 2.5px solid var(--ink); border-radius: 999px; padding: 5px 6px 5px 14px; background: var(--card); box-shadow: 2px 2px 0 var(--ink); font-weight: 800; }
.ca[hidden] { display: none; }
.ca:hover { background: var(--sun); }
.ca:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.ca-l { color: var(--ink); }
.ca-v { font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-c { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.links { display: flex; gap: 14px; }
.links a { font-weight: 800; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.banner { text-align: center; padding: 8px 16px; font-weight: 800; background: var(--violet); color: #fff; }
@media (max-width: 620px) { .ca-v { max-width: 52vw; } .cabar { gap: 10px; } }

.form .fl { display: grid; gap: 6px; font-weight: 800; }
.picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 4px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick img { width: 100%; aspect-ratio: 1; border-radius: 14px; border: 2.5px solid var(--line); display: block; transition: transform .12s, border-color .12s; }
.pick:hover img { transform: translateY(-2px); border-color: var(--ink); }
.pick input:checked + img { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sun), 3px 3px 0 3px var(--ink); }
.pick input:focus-visible + img { outline: 3px solid var(--violet); outline-offset: 2px; }
.form code { font: 700 13px ui-monospace, monospace; background: var(--paper); border: 2px dashed var(--line); border-radius: 10px; padding: 8px 10px; word-break: break-all; }
@media (max-width: 620px) { .picker { grid-template-columns: repeat(4, 1fr); } }
