/* ---------- scrollbar ---------- */
::-webkit-scrollbar {
  width: 14px;
}
::-webkit-scrollbar:horizontal {
  height: 14px;
}
::-webkit-scrollbar-corner {
  background: #ffe3ef;
}
::-webkit-scrollbar-track:vertical {
  background: linear-gradient(90deg, #ffd6e8, #fff0f6 20%);
  border-radius: 5px;
}
::-webkit-scrollbar-track:horizontal {
  background: linear-gradient(180deg, #ffd6e8, #fff0f6 20%);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  border: 1.5px solid #d6417d;
  border-radius: 5px;
  box-shadow: inset 0 -1px 1px #fff, inset 0 1px 1px #fff;
}
::-webkit-scrollbar-thumb:vertical {
  background: linear-gradient(90deg, #ffc2dc 45%, #ff8fbb 0, #ff5fa2);
}
::-webkit-scrollbar-thumb:horizontal {
  background: linear-gradient(180deg, #ffc2dc 45%, #ff8fbb 0, #ff5fa2);
}
::-webkit-scrollbar-button {
  display: none;
}

/* ---------- corner decoration ---------- */
.corner-decor {
  position: fixed;
  right: -120px;
  bottom: 0;
  height: 36rem; 
  width: auto;
  max-width: none;
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 56.25rem) { 
  .corner-decor {
    display: none;
  }
}

/* ---------- page ---------- */
* {
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 1.6vw + 8px, 16px);
}

body {
  margin: 0;
  padding: clamp(0.5rem, 2vw, 1.25rem) 0;
  color: #7a1249;
  font-family: 'Pixelify Sans', 'Courier New', Courier, Monospace;
  text-align: center;
  background-color: #ffeaf3;
  background-image: url("https://64.media.tumblr.com/956c8ac14c9c23b6c414fc301077b6fd/tumblr_inline_mzmk67MUiZ1rpts2p.png");
  background-repeat: repeat;
}

a {
  color: #d6417d;
}

.main-box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  border: 3px solid #ff5fa2;
  margin: auto;
  min-height: 50rem;
  width: min(1200px, 100% - 1.25rem);
  padding: clamp(0.5rem, 1.5vw, 0.75rem);
  background-color: #fff5fa;
  background-image: url("https://64.media.tumblr.com/c4bc9819689df5f3c721961ff0aafcda/tumblr_inline_ml9dhtmM7B1qz4rgp.gif");
  background-repeat: repeat;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px #ff9fc4;
}

.sidebar {
  border: 3px solid #ff5fa2;
  flex: 1 1 260px;
  max-width: 22rem;
  height: 50rem;
  background-color: #fff0f6;
  background-image: url("https://64.media.tumblr.com/b02536e804c11979d269d02b5e0e9588/tumblr_inline_mm1ahphf5I1qz4rgp.gif");
  background-repeat: repeat;
  overflow: auto;
}

.gallery {
  border: 3px solid #ff5fa2;
  flex: 3 1 500px;
  height: 50rem;
  overflow: auto;
  background-color: #fff0f6;
  background-image: url("https://64.media.tumblr.com/b02536e804c11979d269d02b5e0e9588/tumblr_inline_mm1ahphf5I1qz4rgp.gif");
  background-repeat: repeat;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem;
}

.gallery > .headers {
  flex: 1 1 100%;
  margin: -0.6rem -0.6rem 0;
  width: calc(100% + 1.2rem);
}

.headers {
  border-bottom: 3px solid #ff5fa2;
  background-color: #ff6fa8;
  background-image: url("https://64.media.tumblr.com/36b3779c8a0eb8599a57e371ca5928ee/tumblr_inline_ml7ymz9zlL1qz4rgp.gif");
  color: #fff;
  font-weight: bold;
  font-size: clamp(1.1rem, 1.4rem + 1vw, 1.9rem);
  letter-spacing: 1px;
  padding: 0.5rem 0.25rem;
  text-shadow: 1px 1px 0 #d6417d;
  font-family: 'Jacquard 12', system-ui;
}

.headers img {
  vertical-align: middle;
  height: 1.5rem;
  margin-right: 6px;
}

.welcome-box {
  border: 2px dashed #ff5fa2;
  width: min(300px, 100%);
  margin: 0.75rem auto;
  padding: 0.75rem;
  background-color: #ffffff;
  font-size: clamp(0.75rem, 0.6rem + 0.4vw, 0.9rem);
  line-height: 1.5;
}

.welcome-box .banner {
  display: block;
  width: 100%;
  height: 20rem;
  margin-bottom: 10px;
  background-color: #ffc2dc;
  object-fit: cover;
  object-position: center;
}


.home-link {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  border: 2px dashed #ff5fa2;
  background: #ffe3ee;
  font-size: 0.75rem;
  text-decoration: none;
  color: #b5366e;
  font-weight: bold;
}
.home-link:hover {
  background: #ff9fc4;
  color: #fff;
}

/* ---------- fanart cards ---------- */

.art {
  border: 2px dashed #ff5fa2;
  flex: 1 1 15rem;
  max-width: 17.5rem;
  height: auto;
  padding-bottom: 8px;
  background-color: #ffffff;
  font-size: 0.75rem;
  overflow: hidden;
}

.art-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background-color: #fff5f9;
  background-size: cover;
  background-position: center;
}

/* fanart links */
.thumb1 { background-image: url("https://f2.toyhou.se/file/f2-toyhou-se/images/84972185_Rmc4KRDNLUwi9Hm.png"); }
.thumb2 { background-image: url("https://images.artfight.net/attack/C0tWo78NtCD6Q4wolGggcnFtlq5tSK3YrIoYKlE0J2YZWuDuO8k9g4DcXDLA.png?t=1751445692"); }
.thumb3 { background-image: url("https://images.artfight.net/attack/dEtmICZIKXXpURcHELD5MBljVU8Qf3XRIJWMielnW4A1hvEwc5Bh4a2JCyvQ.png?t=1751628979"); }
.thumb4 { background-image: url("https://images.artfight.net/attack/6HuuS2X91YvPHg5unUIGqjtZIhq3fC1K2dgbgvh6W6ZVyrIFPGSk8divinU3.jpg?t=1751682936"); }
.thumb5 { background-image: url("https://images.artfight.net/attack/BYWFhrE3u6OyL1M2vqIVSDCfqPPZFoSEElbRVg0FEQXqveCQPvjrETOdhLSu.png?t=1752205147"); }
.thumb6 { background-image: url("https://f2.toyhou.se/file/f2-toyhou-se/images/123046814_RcyMLiOrZ4xoOiV.png"); }
.thumb7 { background-image: url("https://f2.toyhou.se/file/f2-toyhou-se/images/123047329_SiJEk8SBj4KrSA0.png"); }
.thumb8 { background-image: url("https://images.artfight.net/attack/xI2NcJAlKGjDpIJ5bEbCRc6y9qWyb4YB0YgsTOx3qHW1vgld2vyD3vAY8EPc.png?t=1783299268"); }
.thumb9 { background-image: url("../stuff/hayato_fanart_by_marufunland.png"); }
.thumb10 { background-image: url("https://images.artfight.net/attack/hbH7STa99sZqWIdGyaHvT2IzT2N5nlejuNWOwbdYu4uTza56yJanox1iVTaO.png?t=1783303611"); }
.thumb11 { background-image: url("https://images.artfight.net/attack/AeKapGNnPdlsoRT4CQVNs81bgxr5LXiekGNVmqchngsjbq3pZWLfs6cqjCMs.jpeg?t=1783306234"); }
.thumb12 { background-image: url("https://images.artfight.net/attack/dCKk8bqUq0cDTpMN2otrpKVvumBhaTsiywUBLpI6Wv7LfGiP5oTe2Zwrm2dv.jpeg?t=1783382246"); }
.thumb13 { background-image: url("https://images.artfight.net/attack/mB1p5dTJUP18AgIZiaEsJuBAmeSuMxakEGyf9FrmEhAmdN6a4jYtPfoAlWOU.jpg?t=1783422316"); }
.thumb14 { background-image: url("https://images.artfight.net/attack/M24wv9EJ1IfWWbtG8YOMNFqHvnZXsPtt6LePTRD5aiW4Ax9YpmPdcOShVkgw.png?t=1783463501"); }
.thumb15 { background-image: url("https://images.artfight.net/attack/h70wemmHEsZ1l4Y0ghQwu9uKKUEUzlBCK4SSnmLNcU7WKO0HKsGWoXhh1WKx.png?t=1783776825"); }
.thumb16 { background-image: url("https://images.artfight.net/attack/hh59fAnyrOZawg9iZhQeNJWM4RRb2dX3UdWbdR1lSzKoODUZqJREl9ov89tu.jpeg?t=1784113283"); }
.thumb17 { background-image: url("https://images.artfight.net/attack/Sb7JawAmpnhkGppqQ0BntXClIwYg6TKUb0QD3PyfG7LuUC7XhK1TL1br4P64.png?t=1784223326"); }
.thumb18 { background-image: url("https://images.artfight.net/attack/05g9XdHMEcYx19CnC8KNrCWCCvVbOgbrrHeGJ1dYdGWz3tJw3hopHbHdrmz0.jpeg?t=1784230285"); }
.thumb19 { background-image: url("https://images.artfight.net/attack/Qzw1XLiMwyE8dKJ0JWNSKCXkdmD3jCYtEqxomszmjL41nyfvnU1BqkgKVv5W.png?t=1784667793"); }
.thumb20 { background-image: url("https://images.artfight.net/attack/GPRAjRESI8W1U3362ljSfQrc3fH9H5jtFojpPMtKFPuTDzQF1HVEiZqZgyLH.png?t=1785174951"); }
.thumb21 { background-image: url("https://f2.toyhou.se/file/f2-toyhou-se/images/123087786_lFSVtAAYxdPoOGg.jpg"); }
.thumb22 { background-image: url("https://f2.toyhou.se/file/f2-toyhou-se/images/124572631_J3FFzYplqnZ1Rvq.jpg"); }
.thumb23 { background-image: url(""); }
.thumb24 { background-image: url(""); }

.art p {
  margin: 6px 8px 0;
  color: #e87aaa;
}

p {
  color: #fb70ae;
}

/* ---------- responsive tweaks ---------- */

@media (max-width: 56.25rem) { /* ~900px, tablet */
  .main-box {
    width: 100%;
    min-height: 0;
  }

  .sidebar {
    flex-basis: 100%;
    max-width: 37.5rem;
    margin: 0 auto;
    height: auto;
    max-height: 25rem;
  }

  .gallery {
    flex-basis: 100%;
    height: clamp(20rem, 70vh, 40rem);
  }

  .welcome-box {
    max-width: 37.5rem;
    width: 100%;
  }
}

@media (max-width: 35rem) { /* ~560px, phone */
  .art {
    flex-basis: 100%;
    max-width: 26rem;
  }

  .home-link {
    display: block;
    text-align: center;
  }

  .welcome-box .banner {
    display: block;
    width: 100%;
    height: 35rem;
  }

  .sidebar {
    min-height: 800px;
  }

  .gallery {
    min-height: 800px;
  }

  

}
