/* SPIDER-ID: an ID card from the Spider-Society, printed on the same comic page as every other site. */
: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); }
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; } input { font: inherit; }
.ic { width: 1em; height: 1em; vertical-align: -.14em; flex-shrink: 0; }
[hidden] { display: none !important; }
.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; }
.brand .mark { display: inline-flex; color: var(--red); filter: drop-shadow(2px 2px 0 #000); } .brand .mark .ic { width: 34px; height: 34px; }
.brand span:last-child { font: 400 30px/1 var(--display); letter-spacing: .04em; text-shadow: -2px 0 var(--cyan), 2px 0 var(--red); }
.brand b { font: 400 20px var(--marker); color: var(--yellow); text-shadow: none; margin-left: 4px; rotate: -4deg; display: inline-block; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a, .nav button { display: inline-flex; gap: 6px; align-items: center; font: 400 19px/1 var(--display); letter-spacing: .05em; padding: 7px 11px 5px; color: var(--paper); text-decoration: none; border: 2px solid transparent; background: none; }
.nav a:hover, .nav button:hover { border-color: #ffffff44; }
.nav a.on { background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: 3px 3px 0 var(--red); }
main { max-width: 1180px; margin: 0 auto; padding: 24px 22px 40px; }
.loading { font: 400 26px var(--display); padding: 40px 0; }
.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: .45em .8em .35em; 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.red { background: var(--red); color: #fff; } .btn.x { background: var(--ink); color: #fff; } .btn.y { background: var(--yellow); } .btn.big { font-size: 28px; } .btn.sm { font-size: 16px; padding: .4em .65em .3em; box-shadow: 3px 3px 0 var(--ink); }
.btn:disabled { opacity: .5; translate: none; }
.kicker { 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; }
h1.big { margin: 12px 0 6px; font: 400 clamp(44px, 7vw, 90px)/.86 var(--display); color: #fff; -webkit-text-stroke: 2px var(--ink); text-shadow: -4px 0 var(--cyan), 4px 0 var(--red), 7px 7px 0 var(--ink); }
.lede { margin: 6px 0 0; max-width: 620px; font-size: 18px; }
.hint { margin: 0; font: 700 12px var(--mono); color: var(--mute); }
.sec { margin: 34px 0 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sec h2 { margin: 0; font: 400 32px/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; }

/* sign up */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.form label { display: block; margin: 16px 0 6px; font: 700 11px var(--mono); letter-spacing: .14em; }
.form input { width: 100%; font: 400 28px/1 var(--display); letter-spacing: .03em; border: 3px solid var(--ink); background: #fff; padding: 12px 14px 8px; box-shadow: 4px 4px 0 var(--ink); }
.avs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.av { position: relative; padding: 0; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 50%; overflow: hidden; background: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.on { box-shadow: 0 0 0 4px var(--yellow), 0 0 0 7px var(--ink); }

/* the ID card */
.idc { position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; padding: 26px; background: linear-gradient(115deg, #fffaf0, #fff3d6); border: 5px solid var(--ink); box-shadow: 12px 12px 0 var(--red), 12px 12px 0 4px var(--ink); overflow: hidden; }
.idc::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 22px, #14121008 22px 24px); pointer-events: none; }
.idc::after { content: "SPIDER-SOCIETY"; position: absolute; right: -40px; top: 22px; rotate: 32deg; font: 700 11px var(--mono); letter-spacing: .3em; background: var(--red); color: #fff; padding: 6px 60px; }
.idc > * { position: relative; }
.ph { width: 230px; aspect-ratio: 1; border: 5px solid var(--ink); border-radius: 50%; overflow: hidden; background: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lvl { position: absolute; left: 160px; top: 170px; width: 78px; height: 78px; display: grid; place-items: center; text-align: center; background: var(--yellow); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink); }
.lvl b { display: block; font: 400 34px/.8 var(--display); } .lvl small { font: 700 9px var(--mono); letter-spacing: .12em; }
.idc h1 { margin: 6px 0 2px; font: 400 clamp(40px, 5vw, 66px)/.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); overflow-wrap: anywhere; }
.ttl { font: 400 26px/1 var(--marker); color: var(--red); }
.xpb { margin-top: 16px; max-width: 560px; }
.xpb .bar { height: 22px; border: 3px solid var(--ink); background: #fff; position: relative; box-shadow: 3px 3px 0 var(--ink); }
.xpb .bar i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(45deg, var(--red) 0 10px, #c81e27 10px 20px); }
.xpb .lb { display: flex; justify-content: space-between; margin-top: 6px; font: 700 12px var(--mono); }
.nums { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.nums span { background: #fff; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 6px 12px 5px; font: 700 11px var(--mono); letter-spacing: .1em; }
.nums b { display: block; font: 400 28px/1 var(--display); letter-spacing: .02em; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* badges */
.bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.bg { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 16px 12px 14px; background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.bg .md { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); border: 4px solid var(--ink); box-shadow: 3px 3px 0 var(--red); }
.bg .md .ic { width: 32px; height: 32px; }
.bg b { font: 400 20px/1 var(--display); letter-spacing: .03em; }
.bg small { font-size: 13px; line-height: 1.25; color: var(--mute); }
.bg.lock { background: transparent; border-style: dashed; box-shadow: none; opacity: .6; }
.bg.lock .md { background: var(--paper2); box-shadow: none; color: var(--mute); }
.bg .when { font: 700 10px var(--mono); color: var(--mute); }
/* sites */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.st { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; background: var(--card); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); text-decoration: none; }
.st:hover { box-shadow: 6px 6px 0 var(--red); translate: -2px -2px; }
.st .si { width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); border-radius: 50%; } .st .si .ic { width: 24px; height: 24px; }
.st b { display: block; font: 400 22px/1 var(--display); } .st small { font: 700 12px var(--mono); color: var(--mute); }
.st.off { opacity: .55; }
/* leaderboard */
.lb2 { display: grid; gap: 8px; }
.lb2 a { display: grid; grid-template-columns: 40px 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; background: #fff; border: 3px solid var(--ink); color: var(--ink); text-decoration: none; }
.lb2 a:hover { box-shadow: 4px 4px 0 var(--red); } .lb2 a.me { background: #fff6c9; }
.lb2 .rk { font: 400 26px/1 var(--display); } .lb2 img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ink); }
.lb2 b { font: 400 21px/1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lb2 span { font: 700 12px var(--mono); }
dialog { padding: 0; border: 5px solid var(--ink); background: var(--paper); color: var(--ink); width: min(640px, 94vw); max-height: 90vh; box-shadow: 14px 14px 0 #000a; }
dialog::backdrop { background: #141210d9; }
.close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.close .ic { width: 20px; height: 20px; }
.dl { padding: 22px; } .dl h3 { margin: 0 0 12px; display: inline-block; font: 400 30px/1 var(--display); background: var(--yellow); border: 3px solid var(--ink); padding: 6px 14px 2px; box-shadow: 4px 4px 0 var(--ink); }
.url { font: 700 12px var(--mono); background: #fff; border: 2px dashed var(--ink); padding: 8px; word-break: break-all; margin: 10px 0 0; }
#toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 120; display: none; 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 5px; white-space: nowrap; }
.foot { max-width: 1180px; 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; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } .idc { grid-template-columns: 1fr; justify-items: center; text-align: center; } .idc .xpb { margin-left: auto; margin-right: auto; } .nums, .acts { justify-content: center; } .lvl { left: auto; right: calc(50% - 125px); } }
@media (max-width: 720px) {
  .top { padding: 8px 12px; } .brand span:last-child { font-size: 22px; } .brand b { font-size: 15px; } .brand .mark .ic { width: 26px; height: 26px; } .nav .lbl { display: none; }
  main { padding: 16px 12px 30px; } .avs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .idc { padding: 18px; } .ph { width: 180px; } .lvl { top: 128px; right: calc(50% - 100px); width: 66px; height: 66px; } .lvl b { font-size: 28px; }
  .bgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
