* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #8b9ce4;
  --blue-dark: #3c4784;
  --blue-mid: #6c7fd0;
  --blue-lite: #aab6f2;
  --panel: #b7c3f6;
  --ink: #1c2340;
  --red: #f22000;
  --green-btn: #a8f04c;
  --yellow: #ffd23f;
  --pink: #ff9ad5;
  --greentext: #789922;
}

html { scroll-behavior: smooth; }

body {
  background-color: #f0ede3;
  background-image: url("bg.svg");
  background-size: 460px 300px;
  font-family: "DotGothic16", "Courier New", monospace;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: #3d51e8; }
a:hover { color: var(--red); }

.wrap { max-width: 1020px; margin: 0 auto; padding: 26px 12px 60px; }

/* ticker */
.ticker {
  background: #000; color: var(--yellow);
  font-family: "Silkscreen", monospace; font-size: 12px;
  padding: 6px 0; border-bottom: 3px solid var(--pink);
  white-space: nowrap; overflow: hidden;
}
.ticker span { display: inline-block; padding-left: 100%; animation: tick 40s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }

/* window chrome */
.win {
  background: var(--blue);
  border: 4px solid var(--blue-dark);
  box-shadow: inset -7px -7px 0 var(--blue-mid), inset 7px 7px 0 var(--blue-lite), 8px 10px 0 rgba(40, 48, 92, 0.35);
  padding: 34px;
  margin: 34px 0;
}
.win .title {
  font-family: "Silkscreen", monospace;
  font-size: 15px; color: #fff;
  text-shadow: 2px 2px 0 var(--blue-dark);
  margin: -12px 0 18px 2px;
}
.paper {
  background: #fff;
  border: 3px solid #14141c;
  padding: 40px 34px;
  text-align: center;
}
.inset {
  background: var(--panel);
  border: 3px solid var(--blue-dark);
  box-shadow: inset 5px 5px 0 rgba(40, 48, 92, 0.35), inset -5px -5px 0 #cdd6fa;
  padding: 34px 30px;
  text-align: left;
}

/* logo */
.logo { font-family: "Luckiest Guy", cursive; font-size: clamp(58px, 11vw, 118px); line-height: 0.9; letter-spacing: 2px; }
.logo span { display: inline-block; -webkit-text-stroke: 3px #101010; text-shadow: 5px 6px 0 #101010; transform: rotate(-2deg); }
.logo span:nth-child(2n) { transform: rotate(2deg) translateY(4px); }
.logo .c1 { color: #e93f33; } .logo .c2 { color: #f6c33b; } .logo .c3 { color: #4879e8; }
.logo .c4 { color: #58b94d; } .logo .c5 { color: #e93f33; } .logo .c6 { color: #f6c33b; }
.logo .c7 { color: #4879e8; } .logo .c8 { color: #58b94d; }
.ticker b { color: #fff; }

.counter { font-size: clamp(20px, 3.4vw, 32px); font-weight: bold; margin: 26px 0 6px; }
.counter small { display: block; font-size: 15px; color: #555; }

h2.pitch { font-size: clamp(22px, 3.6vw, 34px); line-height: 1.3; margin: 22px 0 8px; }
h2.pitch .red { color: var(--red); }

/* black banner */
.banner {
  background: #000; color: var(--yellow);
  font-style: italic; font-weight: bold;
  font-size: clamp(14px, 2.2vw, 19px);
  padding: 12px 18px; margin: 26px auto 8px;
  max-width: 660px;
  box-shadow: 7px 7px 0 var(--pink);
}
.banner.green-sh { box-shadow: 7px 7px 0 #9fe84c; }
.banner .w { color: #fff; } .banner .r { color: var(--red); }

/* buttons */
.btn {
  display: inline-block;
  font-family: "Silkscreen", monospace;
  font-size: 14px;
  background: var(--green-btn); color: #142310;
  border: 3px solid #14141c;
  box-shadow: 0 7px 0 #4e7d21, 4px 11px 0 rgba(0,0,0,0.3);
  padding: 15px 26px; margin: 22px 4px 12px;
  cursor: pointer; text-decoration: none;
  transition: transform 0.05s;
}
.btn:hover { background: #baff5e; color: #142310; }
.btn:active { transform: translateY(6px); box-shadow: 0 1px 0 #4e7d21; }
.btn.small { font-size: 11px; padding: 10px 16px; box-shadow: 0 5px 0 #4e7d21; }

/* hero image */
.hero-img { position: relative; display: inline-block; margin: 30px 0 10px; }
.hero-img img { width: min(330px, 74vw); height: auto; border: 3px solid #14141c; box-shadow: 8px 8px 0 var(--pink); }
.hero-tag {
  position: absolute; top: -34px; left: -110px;
  font-family: "Luckiest Guy", cursive; font-size: 30px; color: #2b2b2b;
  transform: rotate(-16deg);
}
.hero-tag::after { content: "➤"; display: block; color: var(--red); font-size: 40px; transform: rotate(48deg) translate(24px, -6px); }

/* imageboard post */
.post {
  background: #d6dbf5; border: 2px solid #8a94c8;
  box-shadow: 5px 5px 0 rgba(40,48,92,0.3);
  padding: 18px; text-align: left;
  font-size: 16px;
}
.post .phead { color: #117743; font-weight: bold; margin-bottom: 12px; font-size: 15px; }
.post .phead .trip { color: #228854; }
.post .phead .live { color: var(--red); font-weight: bold; }
.post .pbody { display: flex; gap: 18px; flex-wrap: wrap; }
.post .pbody img { width: 240px; height: 240px; border: 1px solid #666; object-fit: cover; filter: saturate(2.4) hue-rotate(18deg) contrast(1.25); }
.post .green { color: var(--greentext); flex: 1; min-width: 240px; }
.post .green p { margin: 2px 0; }

/* prose panels */
.prose { text-align: left; font-size: 18px; }
.prose p { margin: 0 0 20px; }
.prose b.lead { font-size: 21px; }
.prose .cap { font-size: 13px; color: #7a1f1f; text-align: center; margin-top: 6px; }
.figrow { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 26px 0; }
.figrow figure { max-width: 250px; }
.figrow img { width: 100%; height: auto; border: 2px solid #14141c; background: #fff; }

/* scoreboard */
.score { width: 100%; max-width: 620px; margin: 24px auto; border-collapse: collapse; font-size: 17px; }
.score td { padding: 9px 10px; border: 2px solid var(--blue-dark); background: #e6ebff; }
.score td.word { font-weight: bold; width: 110px; }
.score .bar { height: 22px; background: repeating-linear-gradient(45deg, #f0c1c1, #f0c1c1 8px, #e79f9f 8px, #e79f9f 16px); border: 1px solid #a44; }
.score tr.top td { background: #fff3b8; }
.score tr.top .bar { background: repeating-linear-gradient(45deg, #ffd23f, #ffd23f 8px, #f0a72e 8px, #f0a72e 16px); border-color: #b57b00; }
.score td.n { font-family: "Silkscreen", monospace; font-size: 14px; width: 44px; text-align: center; }

/* tweet grid */
.tweets { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; margin-top: 26px; }
.tweet {
  background: #fff; border: 2px solid #14141c; box-shadow: 5px 5px 0 #14141c;
  padding: 14px 14px 10px; text-align: left; text-decoration: none; color: var(--ink);
  transform: rotate(-1.2deg); transition: transform 0.08s;
}
.tweet:nth-child(2n) { transform: rotate(1.1deg); }
.tweet:nth-child(3n) { transform: rotate(-0.5deg); }
.tweet:hover { transform: rotate(0) scale(1.05); color: var(--ink); z-index: 2; position: relative; }
.tweet .th { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #566; }
.tweet .th img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #888; }
.tweet .th b { color: #111; }
.tweet .tb { font-size: 25px; font-weight: bold; margin: 10px 2px 8px; }
.tweet .tf { font-size: 12px; color: #778; }
.tweet .tn { font-family: "Silkscreen", monospace; font-size: 10px; color: #99a; float: right; }

/* witness cards */
.tweets.two { grid-template-columns: repeat(auto-fit, minmax(250px, 330px)); justify-content: center; }
.tweet.wit .tb { font-size: 36px; }
.tweet.wit .th img { width: 40px; height: 40px; }
.tweet.wit .tf { font-size: 13px; color: #7a1f1f; font-weight: bold; }

/* math table */
.math { width: 100%; max-width: 640px; margin: 10px auto; border-collapse: collapse; font-size: 18px; }
.math td { border: 2px solid var(--blue-dark); padding: 11px 14px; background: #e6ebff; text-align: left; }
.math td:last-child { text-align: right; font-weight: bold; }
.math tr.hot td { background: #fff3b8; }
.math tr.hot td:last-child { color: #a00; }

/* steps */
.steps { text-align: left; max-width: 660px; margin: 0 auto; font-size: 18px; counter-reset: st; list-style: none; }
.steps li { margin: 16px 0; padding-left: 56px; position: relative; min-height: 44px; }
.steps li::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; line-height: 38px; text-align: center;
  font-family: "Luckiest Guy", cursive; font-size: 22px;
  background: var(--yellow); border: 2px solid #14141c; box-shadow: 3px 3px 0 #14141c;
}

/* warning box */
.warnbox {
  background: #000; border: 3px solid #14141c;
  box-shadow: inset 0 0 0 2px #333;
  color: #fff; text-align: left;
  padding: 30px; font-size: 18px; line-height: 2;
}
.warnbox .y { color: var(--yellow); font-weight: bold; }
.warnbox .r { color: var(--red); font-weight: bold; }
.warnbox a { color: #7db1ff; }

/* footer */
.foot { text-align: center; font-size: 15px; color: #fff; text-shadow: 1px 1px 0 var(--blue-dark); }
.foot .quote { font-style: italic; font-size: 17px; margin: 14px 0; }
.hashblock { font-size: 12px; color: #dfe5ff; text-align: left; background: rgba(20,20,40,0.25); padding: 14px; margin-top: 18px; word-break: break-word; }

/* claim page bits */
.field { width: 100%; max-width: 560px; font-family: "DotGothic16", monospace; font-size: 16px; padding: 12px; border: 3px solid #14141c; background: #fffef2; margin: 8px 0; }
textarea.field { min-height: 90px; resize: vertical; }
.msgbox { background: #14141c; color: #9fe84c; font-family: "Courier New", monospace; font-size: 16px; padding: 16px; text-align: left; word-break: break-all; border: 3px solid #000; box-shadow: 5px 5px 0 var(--pink); max-width: 560px; margin: 10px auto; }
.result { margin-top: 18px; padding: 18px; border: 3px solid #14141c; font-size: 17px; display: none; text-align: left; max-width: 620px; margin-left: auto; margin-right: auto; }
.result.ok { display: block; background: #d9ffd0; }
.result.bad { display: block; background: #ffd6d0; }
.progress { max-width: 560px; height: 30px; margin: 14px auto; border: 3px solid #14141c; background: #fff; position: relative; }
.progress .fill { height: 100%; background: repeating-linear-gradient(45deg, #9fe84c, #9fe84c 10px, #7dc32e 10px, #7dc32e 20px); width: 0%; transition: width 1s; }
.progress .lab { position: absolute; inset: 0; text-align: center; line-height: 26px; font-family: "Silkscreen", monospace; font-size: 11px; }
.or { font-family: "Silkscreen", monospace; font-size: 12px; color: #666; margin: 18px 0 6px; }
.divline { border: none; border-top: 3px dashed var(--blue-dark); margin: 30px auto; max-width: 620px; }

@media (max-width: 640px) {
  .win { padding: 18px; }
  .paper { padding: 26px 14px; }
  .inset { padding: 20px 14px; }
  .hero-tag { left: -8px; top: -44px; }
  body { font-size: 16px; }
}
