/* suit.spiderverses.com: the same comic paper style as quiz, daily, cards and the rest */
:root {
  --paper: #f3ecda; --paper2: #e9e0c8; --card: #fffaf0; --ink: #141210; --red: #e3262f; --cyan: #1fb7d6; --yellow: #ffe14d; --blue: #2b59c3; --pink: #ff2bd6; --mute: #6d6556;
  --display: 'Bangers', Impact, sans-serif; --marker: 'Permanent Marker', cursive; --mono: 'Space Mono', monospace; --body: 'Comic Neue', 'Comic Sans MS', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); overflow-x: clip; }
body { margin: 0; color: var(--ink); font: 700 16px/1.45 var(--body); overflow-x: clip;
  background: radial-gradient(circle, #0000001c 1px, transparent 1.6px) 0 0 / 6px 6px, var(--paper); }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; color: inherit; }
.ic { width: 1em; height: 1em; vertical-align: -.14em; flex-shrink: 0; }
[hidden] { display: none !important; }

/* ---------- top bar (same as every SpiderVerses site) ---------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 10px 22px; background: var(--ink); color: var(--paper); border-bottom: 5px solid var(--red); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; flex-shrink: 0; }
.brand .mark { display: inline-flex; color: var(--red); filter: drop-shadow(2px 2px 0 #000); } .brand .mark svg { width: 34px; height: 34px; }
.brand .wm { font-family: var(--display); font-size: 30px; letter-spacing: .04em; line-height: 1; text-shadow: -2px 0 var(--cyan), 2px 0 var(--red); }
.brand .wm b { font-family: var(--marker); font-weight: 400; font-size: 20px; color: var(--yellow); text-shadow: none; margin-left: 4px; rotate: -4deg; display: inline-block; }
.who { margin-left: auto; }

/* ---------- the lab ---------- */
.lab { max-width: 1240px; margin: 0 auto; padding: 22px 22px 30px; display: grid; grid-template-columns: minmax(300px, 480px) 1fr; gap: 28px; align-items: start; }
.stage { position: sticky; top: 84px; display: grid; gap: 14px; }
.kicker { justify-self: start; display: inline-block; font: 700 11px var(--mono); letter-spacing: .18em; background: var(--yellow); border: 3px solid var(--ink); padding: 4px 10px 3px; box-shadow: 3px 3px 0 var(--ink); rotate: -2deg; }
.cardwrap { position: relative; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: var(--ink); aspect-ratio: 4 / 5; overflow: hidden; }
.cardwrap svg { display: block; width: 100%; height: auto; }
.cardwrap .fig { animation: bob 1.1s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.cardwrap.flash::after { content: ''; position: absolute; inset: 0; background: #fff; animation: flash .35s steps(3) forwards; pointer-events: none; }
@keyframes flash { to { opacity: 0; } }
.idrow { display: grid; grid-template-columns: 1fr 190px; gap: 12px; }
.fld > span:first-child { display: block; font: 700 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.fld .in { display: flex; align-items: center; background: var(--card); color: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.fld .in b { font: 400 18px var(--display); letter-spacing: .04em; padding-left: 10px; }
.fld input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 22px var(--display); letter-spacing: .04em; padding: 8px 10px 6px; color: var(--ink); }
.fld.small input { padding-left: 2px; }
.fld .in button { width: 42px; align-self: stretch; display: grid; place-items: center; border: 0; border-left: 3px solid var(--ink); background: var(--yellow); color: var(--ink); padding: 0; }
.fld .in button:hover { background: #fff; }
.fld .in button .ic { width: 20px; height: 20px; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 3px solid var(--ink); background: var(--card); color: var(--ink); font: 400 20px/1 var(--display); letter-spacing: .05em;
  padding: .5em .85em .4em; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: translate .08s, box-shadow .08s; }
.btn:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink); }
.btn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.btn.big { flex: 1; font-size: 28px; background: var(--red); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.y { background: var(--yellow); }
.btn.full { flex-basis: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- options ---------- */
.tools { background: var(--card); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); min-width: 0; }
.tabs { display: flex; overflow-x: auto; border-bottom: 4px solid var(--ink); background: var(--paper2); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-right: 3px solid var(--ink); background: none; padding: 12px 14px 9px; font: 400 19px/1 var(--display); letter-spacing: .05em; color: var(--ink); }
.tabs button .ic { width: 18px; height: 18px; }
.tabs button:hover { background: var(--card); }
.tabs button.on { background: var(--ink); color: #fff; box-shadow: inset 0 -5px 0 var(--red); }
.opts { padding: 18px; }
.opts h3 { display: inline-block; margin: 0 0 12px; font: 400 24px/1 var(--display); letter-spacing: .04em; background: var(--yellow); border: 3px solid var(--ink); padding: 5px 12px 2px; box-shadow: 3px 3px 0 var(--ink); rotate: -1deg; }
.opts h3 + p { margin: -4px 0 12px; color: var(--mute); font-size: 14px; }
.opts section + section { margin-top: 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 0; color: var(--ink); text-align: center; overflow: hidden; transition: translate .08s, box-shadow .08s; }
.tile .pic { display: block; aspect-ratio: 1; background: var(--paper2); border-bottom: 3px solid var(--ink); overflow: hidden; }
.tile .pic svg { display: block; width: 100%; height: 100%; }
.tile .lb { font: 400 15px/1.1 var(--display); letter-spacing: .04em; padding: 7px 4px 5px; }
.tile:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--red); }
.tile.on { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--red); }
.tile.on::after { content: ''; position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='white' d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") center / 14px no-repeat; border: 3px solid var(--ink); border-radius: 50%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 400 17px/1 var(--display); letter-spacing: .04em; padding: 5px 10px 4px 5px; border: 3px solid var(--ink); background: var(--card); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.chip .sw { display: flex; border: 2px solid var(--ink); }
.chip .sw i { width: 13px; height: 22px; }
.chip:hover { background: var(--yellow); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.slot { background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 10px; }
.slot .h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.slot .h b { font: 400 19px var(--display); letter-spacing: .04em; flex: 1; }
.slot input[type=color] { width: 44px; height: 32px; border: 3px solid var(--ink); padding: 0; background: none; cursor: pointer; }
.slot .q { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.slot .q button { aspect-ratio: 1; border: 2px solid var(--ink); padding: 0; }
.slot .q button.on { outline: 3px solid var(--red); outline-offset: 1px; }

/* ---------- a saved suit ---------- */
.saved { display: grid; gap: 12px; }
.saved .tag { justify-self: start; display: inline-block; font: 700 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; background: var(--yellow); border: 3px solid var(--ink); padding: 4px 10px 3px; box-shadow: 3px 3px 0 var(--ink); rotate: -2deg; }
.saved h2 { margin: 6px 0 0; font: 400 clamp(40px, 6vw, 64px)/.9 var(--display); color: #fff; -webkit-text-stroke: 2px var(--ink); text-shadow: -3px 0 var(--cyan), 3px 0 var(--red), 5px 5px 0 var(--ink); letter-spacing: .02em; }
.saved p { margin: 0; font-size: 17px; }
.saved .row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- feed ---------- */
.feed { max-width: 1240px; margin: 0 auto; padding: 10px 22px 30px; }
.sec { margin: 10px 0 8px; display: flex; align-items: center; gap: 14px; }
.sec h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 400 34px/1 var(--display); letter-spacing: .04em; background: var(--yellow); border: 3px solid var(--ink); padding: 6px 14px 2px; box-shadow: 4px 4px 0 var(--ink); rotate: -1deg; }
.sec h2 .ic { color: var(--red); }
.feed > p { margin: 10px 0 16px; color: var(--mute); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.mini { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: translate .1s, box-shadow .1s, rotate .1s; }
.mini:hover { translate: -3px -3px; box-shadow: 8px 8px 0 var(--red); rotate: -.5deg; }
.mini svg { display: block; width: 100%; height: auto; border-bottom: 4px solid var(--ink); }
.mini b { display: block; font: 400 19px/1.1 var(--display); letter-spacing: .04em; padding: 8px 10px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini small { display: block; font: 700 10px var(--mono); letter-spacing: .12em; color: var(--mute); padding: 0 10px 8px; }
.empty { grid-column: 1 / -1; color: var(--mute); }

.foot { max-width: 1240px; margin: 10px auto 0; padding: 18px 22px 30px; border-top: 4px solid var(--ink); font-size: 13px; font-weight: 400; }
.foot p { margin: 6px 0; } .foot .note { color: var(--mute); }
.more { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; } .more b { font: 400 18px var(--display); letter-spacing: .04em; }
.toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 120; font: 400 19px var(--display); letter-spacing: .04em; background: var(--yellow); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 8px 16px 6px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; }

@media (max-width: 860px) {
  .lab { grid-template-columns: 1fr; gap: 20px; padding: 16px 14px 24px; }
  .stage { position: static; }
  .cardwrap { max-width: 440px; width: 100%; justify-self: center; }
  .top { padding: 8px 14px; } .brand .wm { font-size: 24px; } .brand .mark svg { width: 28px; height: 28px; }
  .idrow { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile .lb { font-size: 13px; }
  .opts { padding: 14px; }
  .feed { padding: 10px 14px 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sec h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .cardwrap .fig { animation: none; } .btn, .tile, .mini { transition: none; } }
