/* ratwires: purple wall, pink ink, no javascript */
:root {
  --wall: #c876ff;
  --ink: #ffd6f3;
  --panel: #8c53b3;
  --field: #ffcaf2;
  --shade: rgba(20, 0, 40, .4);
  --edge: rgba(0, 0, 0, .25);
  --link: #9ff7ff;
}

html { background: var(--wall) url(bg.svg); }
body {
  margin: 0;
  padding: 0 1em 5em;
  color: var(--ink);
  font-family: sans-serif;
  line-height: 1.35;
}
a { color: var(--ink); font-weight: bold; text-decoration: none; }
a:hover { text-decoration: underline; }

/* banner */
.banner {
  text-align: center;
  background: rgba(0, 0, 0, .4);
  border: 2px solid rgba(0, 0, 0, .4);
  padding: 8px;
  margin: 1em 0;
}
.site_name { margin: .3em 0 0; font-size: 3em; letter-spacing: .08em; }
.site_name a { color: var(--ink); text-shadow: 3px 3px 0 #8c53b3, 5px 5px 0 rgba(0, 0, 0, .35); }
.tagline { margin: .2em 0 .6em; font-style: italic; opacity: .9; }
#about_button { cursor: pointer; font-weight: bold; display: inline-block; padding: 2px 8px; }
#about {
  max-width: 44em;
  margin: .5em auto;
  text-align: left;
  background: rgba(0, 0, 0, .25);
  padding: .5em 1em;
  border-radius: 4px;
}
#about a, .post_content a, .footer a.quote { color: var(--link); font-weight: normal; }
.markup { border-collapse: collapse; margin: .5em 0; }
.markup td, .markup th { padding: .2em .8em; border: 1px solid rgba(255, 255, 255, .15); text-align: left; }

/* posting form, pinned bottom right */
.form {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 255;
  max-height: 85vh;
  overflow: auto;
  border: 2px solid var(--panel);
  padding: 8px;
  background: var(--panel);
  box-shadow: 0 0 12px rgba(0, 0, 0, .35);
}
.form_heading { cursor: pointer; font-weight: bold; padding: 2px 4px; }
.form form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.form textarea { width: 30em; height: 10em; max-width: calc(100vw - 40px); box-sizing: border-box; }
.captcha_form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.captcha_form img { border: 2px inset var(--panel); background: var(--field); }
.form_error { background: #3a0030; color: #ffb3c8; padding: .4em .6em; border-left: 4px solid #ff4f7b; margin: .4em 0 0; }
.new_thread { font-size: .85em; align-self: flex-end; }
input, textarea {
  font: inherit;
  color: #000;
  background: var(--field);
  border: 2px inset #b88ad6;
  outline-width: 0;
}
input:focus, textarea:focus { border: 2px inset var(--panel); outline: 2px solid var(--ink); }
textarea { font-family: monospace; }
input[type=submit], .post_header a.reply_link {
  padding: 4px 8px;
  color: var(--ink);
  font-weight: bold;
  border: 2px outset var(--edge);
  background: rgba(0, 0, 0, .2);
  border-radius: 4px;
  cursor: pointer;
}
input[type=submit] { align-self: flex-start; }
input[type=submit]:hover, .post_header a.reply_link:hover {
  border-style: solid;
  background: rgba(0, 0, 0, .05);
  text-decoration: none;
}

/* posts */
.crumbs { margin: 0 0 .8em; }
.board_container { display: flex; flex-direction: column; gap: .8em; }
.post {
  border-radius: 4px;
  padding: .5em;
  background: var(--shade);
  border: 2px solid var(--edge);
}
.post .post { margin-top: .5em; }
.post_header { cursor: pointer; line-height: 1.9; }
.post_no { font-weight: bold; }
.post_header time { opacity: .85; font-size: .9em; }
.poster_id {
  font-family: monospace;
  font-size: .85em;
  padding: 1px 5px;
  border-radius: 3px;
  color: #fff;
  background: hsl(var(--h, 280) 55% 32%);
  border: 1px solid hsl(var(--h, 280) 60% 60% / .6);
}
.op { font-size: .75em; font-weight: bold; padding: 1px 4px; border-radius: 3px; background: var(--ink); color: #5b2386; }
.reply_to { font-weight: normal; color: var(--link); }
.report_link { font-weight: normal; opacity: .55; padding: 0 .3em; }
.report_link:hover { opacity: 1; text-decoration: none; }
.SelectedPost { background: rgba(0, 0, 255, .25); border-color: rgba(160, 200, 255, .5); }
.post:target { outline: 2px dashed var(--link); outline-offset: 2px; }
.post.removed .post_text { opacity: .7; }
.post_content { overflow-wrap: anywhere; }
.post_text { margin: .4em 0 0; white-space: pre-wrap; }
@media (hover: hover) {
  .post_content { max-height: 25em; overflow-y: hidden; }
  .post_content:hover { max-height: none; }
}
.hidden_replies, .later_replies { margin: .5em 0 0; font-size: .85em; }
.hidden_replies a, .later_replies a { color: var(--link); font-weight: normal; }
.empty { text-align: center; font-size: 1.2em; padding: 2em; background: var(--shade); border-radius: 4px; }
.footer { text-align: center; margin: 2em 0 1em; opacity: .9; font-size: .9em; }
.pager { text-align: center; margin: .8em 0; }
.pager a, .pager b { display: inline-block; min-width: 1.6em; padding: 2px 6px; border-radius: 3px; }
.pager a { background: rgba(0, 0, 0, .2); }
.pager b { background: var(--ink); color: #5b2386; }

/* ascii / shift_jis art, dice */
pre.aa {
  margin: .3em 0;
  padding: .4em .5em;
  white-space: pre;
  overflow-x: auto;
  font-family: ui-monospace, "DejaVu Sans Mono", Consolas, monospace;
  line-height: 1.15;
  background: rgba(0, 0, 0, .25);
  border-radius: 3px;
}
pre.aa.sjis {
  font-family: "MS PGothic", "ＭＳ Ｐゴシック", "IPAMonaPGothic", "Monapo", "Mona", "Textar", "Saitamaar", sans-serif;
  font-size: 16px;
  line-height: 18px;
}
.dice {
  font-family: monospace;
  white-space: nowrap;
  padding: 0 .35em;
  border-radius: 3px;
  background: #1d0b2b;
  color: #ffe680;
  border: 1px solid #ffe680;
}

/* report page */
.panel { border-radius: 4px; padding: .6em 1em; margin: 1em 0; }
.report_panel { max-width: 36em; margin: 1em auto; background: var(--panel); border: 2px solid rgba(0, 0, 0, .25); }
.report_panel h2 { margin: .2em 0 .5em; font-size: 1.2em; }
.report_panel form { display: flex; flex-direction: column; gap: .5em; }
.report_panel fieldset { border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px; }
.report_panel fieldset label { display: block; padding: .15em 0; cursor: pointer; }
.report_panel input[type=radio] { accent-color: #5b2386; }
.report_panel input[type=submit] { align-self: flex-start; }
.fine { font-size: .85em; opacity: .85; }
.form_hint { margin: 0; font-size: .8em; opacity: .9; }

/* markup */
.greentext { color: #6dff6d; }
.bluetext { color: #6ff; }
.redtext { font-weight: bold; font-size: 1.5em; color: #ff3b3b; text-transform: uppercase; }
.spoiler { background: #000; color: #000; padding: 0 .3em; }
.spoiler:hover { color: #fff; }
code { font-family: monospace; background: #000; color: #fff; padding: 0 .2em; }
.donate {
  margin: 0 0 .6em;
  font-size: clamp(.7em, 3.1vw, 1em);
  font-weight: bold;
  letter-spacing: .03em;
  color: var(--ink);
  text-shadow: 1px 1px 0 var(--panel), 2px 2px 0 rgba(0, 0, 0, .35);
  overflow-wrap: anywhere;
}
.btc_addr { user-select: all; }
.threedtext {
  text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa,
    0 6px 1px rgba(0, 0, 0, .1), 0 0 5px rgba(0, 0, 0, .1), 0 3px 5px rgba(0, 0, 0, .2),
    0 10px 10px rgba(0, 0, 0, .2);
}
.rainbowtext { animation: rainbow 1s infinite; }
@keyframes rainbow { 0%, 100% { color: crimson; } 25%, 75% { color: violet; } 50% { color: aqua; } }
.shaketext { display: inline-block; animation: shake .5s infinite; }
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0); }
  20% { transform: translate(-3px, 0) rotate(1deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  60% { transform: translate(-3px, 1px) rotate(0); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  100% { transform: translate(1px, 2px) rotate(0); }
}
.glow { color: #fff; animation: glow 1s ease-in-out infinite alternate; }
@keyframes glow {
  from { text-shadow: 0 0 .5em #fff, 0 0 .6em #fff; }
  to { text-shadow: 0 0 1.1em #0f0, 0 0 1.2em #0f0; }
}
.digit_check {
  font-weight: 900;
  font-size: 1.15em;
  color: #0ff;
  background: linear-gradient(110deg, #0ff 40%, #fff 50%, #0ff 60%) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 2.5s linear infinite;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (max-width: 640px) {
  body { padding: 0 .5em 4.5em; }
  .form { left: 0; }
  .form textarea { width: 100%; max-width: none; height: 8em; }
}
@media (prefers-reduced-motion: reduce) {
  .rainbowtext, .shaketext, .glow, .digit_check { animation: none; }
}
