html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 224, 247, 0.85) 0 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(222, 216, 255, 0.85) 0 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 30% 80%,
      rgba(255, 255, 255, 0.8) 0 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, #f9ebff, #f2e3ff 50%, #f8eeff);
  background-size: 70px 70px, 90px 90px, 40px 40px, 100% 100%;
  font-family: "Lato", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #775f95;
  overflow-x: hidden;
  position: relative;
  cursor: url("https://64.media.tumblr.com/6978997f1abf836db899b2a1a0fdb623/tumblr_inline_mvchqq09Bl1r63cto.gif"),
    auto;
}

/* glitter haze */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    radial-gradient(rgba(255, 210, 242, 0.35) 1px, transparent 1px);
  background-size: 32px 32px, 60px 60px;
  background-position: 0 0, 15px 15px;
  opacity: 0.5;
  z-index: 0;
}

a,
a:hover,
a:active,
a:visited,
button,
input,
textarea,
select {
  cursor: url("https://64.media.tumblr.com/6978997f1abf836db899b2a1a0fdb623/tumblr_inline_mvchqq09Bl1r63cto.gif"),
    pointer;
}

.page {
  width: 800px;
  margin: 26px auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.window {
  background: linear-gradient(to bottom, #fffaff, #f8f0ff);
  border: 1px solid #d9b7f1;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85) inset, 4px 4px 0 #ecd8ff,
    0 0 12px rgba(223, 180, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.window:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9) inset, 4px 4px 0 #ecd8ff,
    0 0 16px rgba(223, 180, 255, 0.55);
}

.titlebar {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  box-sizing: border-box;
  background: linear-gradient(to right, #ffd5f2, #e7d0ff 60%, #d7bfff);
  border-bottom: 1px solid #d9b7f1;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  color: #8a61b5;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #fff;
  position: relative;
}

.titlebar::before {
  content: "☾ ✦";
  position: absolute;
  left: 8px;
  top: 5px;
  font-size: 9px;
  color: #fff7ff;
  opacity: 0.95;
}

.titletext {
  padding-left: 28px;
  white-space: nowrap;
}

.windowbuttons {
  font-size: 10px;
  letter-spacing: 2px;
  color: #7b5aa5;
}

.windowcontent {
  padding: 12px;
  box-sizing: border-box;
}

.topbar {
  grid-column: 1 / 3;
  grid-row: 1;
}

.topbar .windowcontent {
  padding: 14px 12px;
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.navlinks a {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 11px;
  color: #8b62b7;
  text-decoration: none;
  transition: 0.2s ease;
}

.navlinks a:hover {
  color: #db75b8;
  transform: translateY(-1px);
}

.leftcol {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mainbox {
  grid-column: 2;
  grid-row: 2;
}

.mainbox .windowcontent {
  padding: 16px;
  font-size: 13px;
  line-height: 1.8;
}

.mainbox .windowcontent img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  float: left;
  display: block;
  border: 0px solid black;
  padding: 0px;
  margin: 4px 14px 10px 0;
  box-sizing: border-box;
}

.mainbox .windowcontent p {
  margin: 0;
  line-height: 1.8;
}

.profile-inner {
  text-align: center;
}

.portrait-frame {
  width: 152px;
  height: 152px;
  margin: 2px auto 12px auto;
  padding: 6px;
  background: linear-gradient(to bottom, #ffe8f8, #ebd9ff);
  border: 1px solid #d9b7f1;
  border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85) inset, 3px 3px 0 #edd8ff;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  image-rendering: pixelated;
}

.profile-card h2 {
  margin: 0 0 5px 0;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 18px;
  color: #8d63b6;
}

.profile-tag {
  margin: 0 0 10px 0;
  font-size: 11px;
  color: #9778b7;
}

.mini-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.mini-badges span {
  display: inline-block;
  padding: 4px 8px;
  background: linear-gradient(to bottom, #ffe4f6, #efd8ff);
  border: 1px solid #dbbee9;
  border-radius: 999px;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 9px;
  color: #8b62b7;
  box-shadow: 0 0 0 1px #fff inset;
}

.moodbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mood-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(to bottom, #fff8fe, #f6ecff);
  border: 1px solid #dcc0f2;
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85) inset, 2px 2px 0 #ecd8ff;
}

.mood-label {
  flex: 0 0 auto;
  display: inline-block;
  padding: 2px 6px;
  background: linear-gradient(to bottom, #ffe4f6, #efd8ff);
  border: 1px solid #dbbee9;
  border-radius: 999px;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 9px;
  color: #8b62b7;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 1px #fff inset;
  white-space: nowrap;
}

.mood-value {
  flex: 1 1 auto;
  min-width: 0;
  color: #7b6797;
  font-size: 12px;
  line-height: 1.5;
}

.moodbox p {
  margin: 0 0 8px 0;
}

.cute-list {
  margin: 0;
  padding-left: 16px;
}

.cute-list li {
  margin-bottom: 6px;
}

.linkback-box {
  text-align: center;
}

.linkback-box img {
  display: block;
  margin: 0 auto 10px auto;
}

.linkback-box textarea {
  width: 100%;
  min-height: 75px;
  padding: 8px;
  background: #f8f2ff;
  border: 1px solid #d9b7f1;
  border-radius: 10px;
  color: #7d66a1;
  font-family: monospace;
  font-size: 10px;
  line-height: 1.4;
  box-sizing: border-box;
  resize: none;
  outline: none;
}

.button-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kawaii-button,
.kawaii-button:link,
.kawaii-button:visited {
  display: inline-block;
  padding: 7px 12px;
  background: linear-gradient(to bottom, #ffe6f7, #edd8ff);
  border: 1px solid #d9b7f1;
  border-radius: 999px;
  color: #8b63b4;
  text-decoration: none;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 10px;
  box-shadow: 0 0 0 1px #fff inset, 2px 2px 0 #ecd8ff;
  transition: 0.2s ease;
}

.kawaii-button:hover {
  transform: translateY(-1px);
  color: #d56eb5;
}

.footercredit {
  grid-column: 1 / 3;
  grid-row: 3;
  text-align: center;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 10px;
  color: #a081bf;
  letter-spacing: 1px;
  padding-bottom: 4px;
}

.sparkle {
  position: fixed;
  bottom: -20px;
  pointer-events: none;
  z-index: 1;
  font-size: 14px;
  color: #dc7fba;
  text-shadow: 0 0 6px rgba(220, 127, 186, 0.35),
    0 0 10px rgba(255, 220, 240, 0.35);
  animation: pageSparkleFloat linear forwards;
}

@keyframes pageSparkleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  50% {
    transform: translateY(-35vh) translateX(8px) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-85vh) translateX(-10px) scale(0.95);
    opacity: 0;
  }
}

.cursor-sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 8px;
  color: #f08bc8;
  text-shadow: 0 0 5px rgba(240, 139, 200, 0.65),
    0 0 10px rgba(255, 210, 235, 0.45);
  transform: translate(-50%, -50%);
  animation: sparkleFade 0.65s ease-out forwards;
  z-index: 9999;
}

@keyframes sparkleFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -80%) scale(0.6);
  }
}

a {
  color: #8b63b4;
}

a:hover {
  color: #d56eb5;
}

@media (max-width: 1120px) {
  .page {
    width: 92%;
    grid-template-columns: 1fr;
  }

  .topbar,
  .leftcol,
  .mainbox,
  .footercredit {
    grid-column: 1;
    grid-row: auto;
  }
}

blockquote {
  position: relative;
  margin: 14px 0;
  padding: 16px 16px 16px 52px;
  background: linear-gradient(to bottom, #fff8fe, #f5ecff);
  border: 1px solid #d9b7f1;
  border-radius: 14px;
  color: #7a6198;
  font-size: 12px;
  line-height: 1.7;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85) inset, 3px 3px 0 #ecd8ff,
    0 0 10px rgba(223, 180, 255, 0.25);
}

blockquote::before {
  content: "☾";
  position: absolute;
  top: 12px;
  left: 14px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #ffe6f7, #edd8ff);
  border: 1px solid #d9b7f1;
  border-radius: 999px;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 13px;
  color: #c786c4;
  box-shadow: 0 0 0 1px #fff inset, 2px 2px 0 #ecd8ff;
}

blockquote::after {
  content: "✦ ✧";
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: #d8a8eb;
}

blockquote p {
  margin: 0;
}

::selection {
  background: #f6cdea;
  color: #7d5aa3;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.75);
}

::-moz-selection {
  background: #f6cdea;
  color: #7d5aa3;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.75);
}

.pixel-border {
  border: 7px solid;
  border-image: url("https://foollovers.com/mat/baf/heart/he32-012-c.gif") 7
    round;
  image-rendering: pixelated;
  display: block;

  box-shadow: 0 0 10px rgba(255, 200, 240, 0.5),
    0 0 20px rgba(230, 180, 255, 0.3);
}

.love-img {
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;

  border: 7px solid;
  border-image: url("https://dl.dropbox.com/s/l61yvavjx2e501e/image.png") 7
    round;

  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
}

.guestbook-wrap {
  width: 100%;
  height: 560px;
}

.guestbook-frame {
  width: 100%;
  height: 100%;
  border: 1px solid #d9b7f1;
  border-radius: 12px;
  box-sizing: border-box;
  display: block;
  background: #fff;
}

h1, h2, h3 {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 1px;
  color: #8b63b4;
  text-shadow: 0 1px 0 #fff;
}

/* big magical title */
h1 {
  margin-bottom: 16px;
  padding: 8px 14px 7px 14px;
  font-size: 22px;
  background: linear-gradient(to bottom, #ffe6f7, #edd8ff);
  border: 1px solid #d9b7f1;
  border-radius: 16px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.85) inset,
    3px 3px 0 #ecd8ff,
    0 0 10px rgba(223, 180, 255, 0.25);
  position: relative;
}

h1::before {
  content: "☾ ";
  color: #e08bc2;
}

h1::after {
  content: " ✦";
  color: #d8a8eb;
}

/* section heading */
h2 {
  margin-bottom: 12px;
  padding: 6px 10px 5px 10px;
  font-size: 16px;
  background: linear-gradient(to bottom, #fff3fb, #f0e2ff);
  border: 1px solid #dcc0f2;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.85) inset,
    2px 2px 0 #ecd8ff;
}

h2::before {
  content: "✧ ";
  color: #e08bc2;
}

/* tiny subheading */
h3 {
  margin-bottom: 10px;
  padding: 4px 8px 3px 8px;
  font-size: 12px;
  background: linear-gradient(to bottom, #fff8fe, #f6ecff);
  border: 1px solid #dcc0f2;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.85) inset,
    2px 2px 0 #ecd8ff;
  text-transform: lowercase;
}

h3::before {
  content: "♡ ";
  color: #e08bc2;
}