/* Anatomy of Your Shit (anatomy.html): wallet -> pile generator + suggest-a-collection. Builds on wl.css. */
.yp-main { max-width: 980px; gap: 34px; }
.yp-win .title { background: linear-gradient(#7fe08a 0 4px, #3c9c3c 4px 10px, #2a7a2a 10px 26px, #1f6420 26px 30px, #154a16 30px); text-shadow: 2px 2px 0 #0a2a0a; }
.yp-sug .title { background: linear-gradient(#ffe98a 0 4px, #e0b020 4px 10px, #c49010 10px 26px, #a07408 26px 30px, #7a5804 30px); text-shadow: 2px 2px 0 #3a2800; }

.yp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "form stage" "chains stage" "list list";
  gap: 18px 26px; padding: 22px; background: repeating-linear-gradient(45deg, #d9d4bf 0 2px, var(--xp-face) 2px 6px); }
.yp-form { grid-area: form; min-width: 0; }
.yp-row { display: flex; gap: 8px; }
.yp-row input { flex: 1; min-width: 0; font: 22px 'VT323', monospace; padding: 6px 8px; color: #000; background: #fff;
  border: 2px solid #3b3427; box-shadow: inset 2px 2px 0 rgba(0,0,0,.12); border-radius: 0; outline: none; }
.yp-row input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--yellow); }
.yp-row input.bad { border-color: #d63a1a; background: #fff0ec; animation: shake .2s steps(2) 2; }
.yp-row .xp-btn { white-space: nowrap; }
.yp-random { margin-top: 4px; background: none; border: 0; padding: 0; font: 700 12px 'Silkscreen', monospace; color: #0a246a; text-decoration: underline; cursor: pointer; }
.yp-random:hover { color: var(--pink); }

.yp-chains { grid-area: chains; list-style: none; margin: 0; padding: 12px; display: grid; gap: 8px; background: #000; border: 2px solid #555;
  font: 11px 'Press Start 2P', monospace; color: #9fb5e0; align-self: start; }
.yp-chains li { display: flex; align-items: center; gap: 10px; }
.yp-chains i { width: 10px; height: 10px; background: #444; flex: none; }
.yp-chains span { margin-left: auto; font: 18px 'VT323', monospace; color: #888; }
.yp-chains .busy i { background: var(--yellow); animation: blink .5s steps(1) infinite; }
.yp-chains .ok i { background: var(--stink); } .yp-chains .ok span { color: var(--stink); }
.yp-chains .none i { background: #888; }
.yp-chains .down i { background: #d63a1a; } .yp-chains .down span { color: #ff7a5a; }
@keyframes blink { 50% { opacity: 0; } }

.yp-stage { grid-area: stage; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.yp-frame { position: relative; width: 384px; height: 384px; max-width: 100%; border: 4px solid #000; box-shadow: 8px 8px 0 rgba(0,0,0,.4); background: #6a6658; }
.yp-cv { display: block; width: 100%; height: 100%; image-rendering: pixelated; cursor: crosshair; }
.yp-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 16px/1.8 'Press Start 2P', monospace; color: #d8d2bd;
  background: repeating-linear-gradient(-45deg, #5a5648 0 8px, #4e4a3e 8px 16px); }
.yp-empty[hidden] { display: none; }
.yp-tip[hidden] { display: none; }
.yp-tip { position: absolute; z-index: 5; pointer-events: none; background: #000; color: #fff; border: 2px solid #fff; box-shadow: 3px 3px 0 #000;
  padding: 7px 9px; display: grid; gap: 4px; max-width: 240px; }
.yp-tip b { font: 10px/1.4 'Press Start 2P', monospace; color: var(--yellow); }
.yp-tip span { font: 16px/1 'VT323', monospace; }
.yp-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.yp-actions [disabled], .yp-actions [aria-disabled=true] { opacity: .5; pointer-events: none; }
.yp-landfill { margin: 0; max-width: 384px; padding: 10px 12px; background: var(--yellow); border: 3px solid #000; box-shadow: 4px 4px 0 #000;
  font: 20px/1.15 'VT323', monospace; color: #000; }
.yp-landfill b { font: 10px/1.6 'Press Start 2P', monospace; display: block; color: #d63a1a; }
.yp-landfill a { font: 700 13px 'Silkscreen', monospace; color: #0a246a; }

.yp-anatomy { grid-area: list; min-width: 0; }
.yp-anatomy h2 { font: 15px 'Press Start 2P', monospace; color: #0a246a; margin: 0 0 4px; }
.yp-hint { font: 18px 'VT323', monospace; color: #555; margin: 0 0 10px; }
.yp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; counter-reset: piece; }
.yp-list li { counter-increment: piece; background: rgba(255,255,255,.6); border: 2px dashed #8f7650; padding: 8px 10px 8px 40px; position: relative; min-width: 0; }
.yp-list li::before { content: counter(piece, decimal-leading-zero); position: absolute; left: 8px; top: 9px; font: 11px 'Press Start 2P', monospace; color: #8f7650; }
.yp-list li.nft { border-style: solid; border-color: var(--pink); background: #fff0f8; }
.yp-list li.nft::before { color: var(--pink); }
.yp-list li.on { background: var(--yellow); border-color: #000; }
.yp-list b { display: block; font: 700 13px 'Silkscreen', monospace; overflow-wrap: anywhere; }
.yp-list .kv { display: block; font: 17px/1.1 'VT323', monospace; color: #444; }
.yp-list em { display: block; font: normal 8px 'Press Start 2P', monospace; color: #8f7650; margin-top: 4px; }
.yp-list li.nft em { color: var(--pink); }

/* suggestion form */
.sug-h { font: 15px/1.4 'Press Start 2P', monospace; margin: 0 0 6px; color: #7a5804; }
.sug-form select, .sug-form textarea { width: 100%; font: 22px 'VT323', monospace; padding: 6px 8px; color: #000; background: rgba(255,255,255,.7);
  border: 2px solid #3b3427; box-shadow: inset 2px 2px 0 rgba(0,0,0,.12); border-radius: 0; outline: none; }
.sug-form textarea { resize: vertical; min-height: 80px; line-height: 1; }
.sug-form select:focus, .sug-form textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--yellow); }
.sug-form textarea.bad { border-color: #d63a1a; background: #fff0ec; }
.sug-found { margin: -8px 0 16px; font: 18px 'VT323', monospace; padding: 4px 8px; background: #000; color: #ccc; }
.sug-found.ok { color: var(--stink); } .sug-found.bad { color: #ff7a5a; }
.sug-found[hidden] { display: none; }
.mood { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mood label { cursor: pointer; position: relative; }
.mood input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mood span { display: block; text-align: center; padding: 10px 4px; font: 11px 'Press Start 2P', monospace; border: 3px solid #000; background: #fff; box-shadow: 3px 3px 0 #000; }
.mood .bull input:checked + span { background: #3c9c3c; color: #fff; }
.mood .bear input:checked + span { background: #d63a1a; color: #fff; }
.mood input:focus-visible + span { outline: 3px dashed var(--pink); outline-offset: 2px; }
.sug-msg { font: 11px 'Press Start 2P', monospace; color: #3c9c3c; }

@media (max-width: 760px) {
  .yp-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "form" "chains" "stage" "list"; padding: 14px; }
  .yp-frame { width: 288px; height: 288px; }
  .yp-list { grid-template-columns: minmax(0, 1fr); }
  .yp-row { flex-wrap: wrap; } .yp-row .xp-btn { flex: 1; }
  .yp-chains { font-size: 9px; }
}
