@font-face {
  font-family: AngelBunny;
  src: url("assets/AngelBunny-Regular.ttf") format("truetype");
}

:root {
  --bg: #efb7ca;
  --bg2: #f8d7e2;
  --top: #c77999;
  --side: #e3a0ba;
  --pink: #ffc2d7;
  --pink2: #ffd7e5;
  --rose: #bd6689;
  --red: #782020;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  color: var(--red);
  font-family: AngelBunny, "Trebuchet MS", sans-serif;
  cursor: url("assets/cursor-normal.png"), auto;

  background:
    radial-gradient(circle, rgba(255,255,255,.36) 0 7px, transparent 8px) 12px 26px / 52px 52px,
    linear-gradient(90deg, var(--bg), var(--bg2));
}

a,
button,
select,
.soft-img {
  cursor: url("assets/cursor-hover.png"), pointer;
}

/* SITE OVERLAY */

.site-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;

  background:
    radial-gradient(circle at 0% 50%, rgba(255, 245, 255, .55), transparent 28%),
    radial-gradient(circle at 100% 50%, rgba(255, 188, 220, .45), transparent 30%),

    linear-gradient(
      90deg,
      rgba(255, 215, 235, .18),
      transparent 25%,
      transparent 75%,
      rgba(255, 170, 210, .16)
    ),

    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.13) 0 1px,
      transparent 1px 4px
    );

  opacity: .72;
  mix-blend-mode: soft-light;
}

.particle-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;

  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,210,230,.75) 0 1px, transparent 2px);

  background-size:
    90px 90px,
    130px 130px;

  background-position:
    0 0,
    30px 60px;

  opacity: .45;

  animation: particleDrift 18s linear infinite;
}

@keyframes particleDrift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-90px);
  }
}

/* PRELOAD */

.preload-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;

  background:
    radial-gradient(circle, rgba(255,255,255,.28) 0 7px, transparent 8px) 12px 26px / 52px 52px,
    linear-gradient(90deg, #eeb2c7, #f8d9e4);

  transition: opacity .7s ease, visibility .7s ease;
}

.preload-screen.hide {
  opacity: 0;
  visibility: hidden;
}

.preload-card {
  width: min(520px, 88vw);
  padding: 35px;
  text-align: center;

  background:
    radial-gradient(circle at top left, rgba(255,255,255,.45), transparent 38%),
    #ffe8f1;

  border: 5px dashed #c97999;

  box-shadow:
    0 0 0 8px rgba(255,255,255,.35),
    0 12px 35px rgba(154,76,105,.22);
}

.preload-card h1 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 44px;
  line-height: 1;
}

.loading-phrase {
  min-height: 28px;
  margin-bottom: 15px;
  color: var(--rose);
  font-size: 22px;
}

.preload-card p {
  margin: 0 auto 12px;
  max-width: 420px;
  font-size: 17px;
  line-height: 1.35;
}

.preload-btn {
  border: 0;
  margin-top: 12px;
  padding: 9px 18px;
  background: var(--rose);
  color: white;
  font-family: inherit;
  font-size: 19px;
  transition: .18s ease;
}

.preload-btn:hover {
  transform: translateY(-2px) rotate(-1deg);
  background: #cc7396;
}

/* WEATHER */

.ambient-weather {
  position: fixed;
  right: 18px;
  top: 48px;
  z-index: 70;
  width: 155px;
  padding: 10px;

  background: rgba(255,232,241,.86);
  border: 3px dashed #c97999;

  text-align: center;

  box-shadow: 0 8px 22px rgba(154,76,105,.14);

  animation: floatWeather 4s ease-in-out infinite;
}

.weather-title {
  font-size: 13px;
  color: var(--rose);
  text-transform: uppercase;
}

#weatherText {
  font-size: 16px;
}

/* TYPING HINT */

.typing-hint {
  position: fixed;
  left: 50%;
  bottom: 46px;
  z-index: 100;

  transform: translateX(-50%) translateY(10px);

  opacity: 0;
  pointer-events: none;

  padding: 8px 14px;

  background: rgba(255,232,241,.96);
  border: 2px dashed #c97999;

  color: var(--rose);

  transition: .25s ease;
}

.typing-hint.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* TOP */

.top-strip {
  position: fixed;
  inset: 0 0 auto 0;

  height: 32px;
  z-index: 80;

  display: flex;
  align-items: center;
  gap: 18px;

  padding: 0 12px;

  background: var(--top);
}

.nav-icon {
  border: 0;
  background: transparent;
  color: white;
  font-size: 13px;
  padding: 4px;
  transition: .18s ease;
}

.nav-icon:hover,
.nav-icon.active {
  transform: translateY(-1px) rotate(-2deg);
  text-shadow: 0 0 8px white;
}

/* LAYOUT */

.site-wrap {
  width: 100vw;
  height: 100vh;
  padding-top: 32px;
  display: flex;
  align-items: stretch;
}

.profile-side {
  position: relative;
  z-index: 30;

  width: 350px;
  min-width: 350px;
  height: calc(100vh - 64px);

  padding: 18px 44px 70px;

  text-align: center;

  left: -30px;

  background:
    url("assets/sidebar-scallop.png") right top / auto 100% no-repeat;
}

.site-name {
  margin: 4px 0 14px;
  color: white;
  font-size: 46px;
  letter-spacing: 4px;
  line-height: .9;
}

.avatar-box {
  width: 205px;
  height: 205px;
  margin: 0 auto 18px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border-radius: 60px 60px 0 0;

  background: var(--pink);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-text {
  max-width: 260px;
  margin: 0 auto 12px;
  color: white;
  font-size: 16px;
  line-height: 1.34;
}

.stitch-hr {
  border: 0;
  width: 88%;
  height: 8px;
  margin: 14px auto;

  background:
    repeating-linear-gradient(
      90deg,
      white 0 13px,
      transparent 13px 27px
    );
}

.side-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0 12px;
}

.side-links a {
  display: block;
  padding: 8px 4px;

  background: rgba(255,255,255,.52);
  color: var(--rose);

  text-decoration: none;

  font-size: 25px;
  line-height: 1;

  transition: .18s ease;
}

.side-links a:hover {
  background: rgba(255,255,255,.8);
  transform: scale(.98) rotate(-1deg);
}

.last-answered {
  width: 260px;
  margin: -7px auto 0;
  padding: 7px;

  color: white;

  background: rgba(255,255,255,.18);

  border: 2px dashed rgba(255,255,255,.7);

  font-size: 13px;
}

.footer-divider {
  opacity: .8;
  margin: 0 4px;
}

.footer-status {
  transition: opacity 1s ease;
}

/* CONTENT */

.content-area {
  position: relative;
  flex: 1;

  height: calc(100vh - 64px);

  overflow: visible;

  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;
}

.scallop-card {
  width: min(900px, 88vw);
  height: calc(100vh - 112px);

  padding: 60px;

  background-image: url("assets/scallop-card.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;

  overflow: hidden;
}

.inner-box {
  height: 100%;

  overflow-y: auto;

  padding: 10px;
  padding-right: 56px;

  text-align: center;

  background:
    radial-gradient(circle at top left,
      rgba(255,255,255,.45),
      transparent 35%),
    #ffe8f1;

  background-clip: padding-box;

  border: 5px dashed #ba9198;
  border-radius: 30px;

  box-shadow:
    0 0 20px rgba(201,121,153,.15),
    inset 0 0 0 2px rgba(255,255,255,.4);
}

.inner-box::-webkit-scrollbar {
  width: 12px;
}

.inner-box::-webkit-scrollbar-track {
  background: transparent;
  margin: 18px 0;
}

.inner-box::-webkit-scrollbar-thumb {
  background: #d889a8;
  border-radius: 999px;
  border: 3px solid #ffe8f1;
}

.tab-content-area {
  transition: opacity .22s ease;
}

.tab-content-area.fade-out {
  opacity: 0;
}

.tab-content-area h2 {
  margin: 30px 0 20px;
  color: var(--red);
  font-size: 50px;
  line-height: 1.05;
  text-transform: uppercase;
}

.big-note {
  margin-bottom: 24px;
  color: var(--red);
  font-size: 38px;
  line-height: 1;
}

/* FORM */

.mail-form {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.mail-form label {
  display: block;
  margin: 10px 0 5px;
  color: var(--rose);
  font-size: 17px;
}

.soft-input {
  width: 100%;
  border: 2px solid #f0bccb;
  background: #fff8fb;
  color: var(--red);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 17px;
}

.soft-input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(255,194,215,.35);
}

.letter-box {
  min-height: 110px;
  resize: vertical;
}

.send-btn {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: var(--rose);
  color: white;
  font-family: inherit;
  font-size: 18px;
  padding: 8px 18px;
  transition: .18s ease;
}

.send-btn:hover {
  transform: translateY(-2px) rotate(-1deg);
  background: #cc7396;
}

.form-note {
  margin-top: 10px;
  color: var(--rose);
  font-size: 14px;
  text-align: center;
}

/* SHRINE */

.shrine-wrapper {
  margin:0px 0 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.shrine-card {
  width: 100%;
  padding: 18px;

  background: rgba(255,255,255,.42);

  border: 2px dashed #d889a8;

  text-align: center;

  font-size: 18px;
}

.shrine-card i,
.shrine-star {
  display: block;

  margin-bottom: 8px;

  color: var(--rose);

  font-size: 22px;
}

.shrine-button {
  display: block;
  width: 88px;
  height: auto;
  margin: 0 auto;
}

.button-code {
  display: block;

  width: 100%;
  min-height: 10px;

  resize: none;

  margin: 0 auto;
  padding: 12px;

  border: 2px dashed #d889a8;

  background: #fff8fb;
  color: var(--red);

  text-align: left;

  font-family: monospace;
  font-size: 10px;

  overflow-y: auto;
}

/* CREDITS */

.credit-list {
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 22px;
}

.credit-list li {
  margin-bottom: 8px;
}

.credit-list li::before {
  content: "♡ ";
}

/* MUSIC */

.music-bar {
  position: fixed;
  inset: auto 0 0 0;

  height: 32px;
  z-index: 90;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 0 8px;

  background: var(--top);
  color: white;

  font-size: 12px;
  text-transform: uppercase;
}

.music-bar button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  color: white;
}

/* SOFT IMG */

.soft-img {
  transition: transform .24s ease, filter .24s ease;
}

.soft-img:hover {
  transform: rotate(-2deg) scale(1.03);
  filter: drop-shadow(0 0 10px rgba(255,255,255,.55));
}

/* SPARKLES */

.sparkle {
  position: fixed;

  width: 9px;
  height: 9px;

  z-index: 999;

  pointer-events: none;

  animation: sparklePop .55s ease forwards;
}

.sparkle::before {
  content: "✦";
  color: white;
  font-size: 10px;

  text-shadow:
    0 0 5px rgba(255,255,255,.9),
    0 0 10px rgba(255,194,215,.8);
}

/* ANSWERED LETTERS */

.answered-letters {
  max-width: 560px;
  margin: 0 auto;
}

.letter-card {
  margin-bottom: 18px;
  padding: 18px;

  background: #fff8fb;

  border: 2px dashed #efb8c9;

  text-align: left;
  font-size: 18px;
}

.letter-writer {
  color: var(--rose);
  font-size: 20px;
  margin-bottom: 8px;
}

.letter-question {
  margin-bottom: 12px;
}

.pink-stitch {
  border: 0;
  width: 70%;
  height: 8px;
  margin: 18px auto;

  background:
    repeating-linear-gradient(
      90deg,
      #ffd1df 0 15px,
      transparent 15px 28px
    );
}

.reply-mood {
  color: var(--rose);
  font-size: 15px;
  margin-bottom: 6px;
}

.letter-answer {
  background: rgba(255, 194, 215, .22);
  padding: 12px;
}

.answered-love {
  margin-top: 10px;
  text-align: right;
  color: var(--rose);
  font-size: 15px;
}

/* CAPTCHA */

.soft-captcha {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  background: rgba(255, 210, 230, .38);
  backdrop-filter: blur(4px);
}

.soft-captcha.hide {
  display: none;
}

.captcha-card {
  width: min(360px, 88vw);
  padding: 24px;

  position: relative;

  background:
    radial-gradient(circle at top left, rgba(255,255,255,.55), transparent 35%),
    #ffe8f1;

  border: 5px dashed #c97999;

  text-align: center;

  box-shadow:
    0 0 0 8px rgba(255,255,255,.35),
    0 18px 35px rgba(154,76,105,.22);
}

.captcha-card h3 {
  margin: 0 0 8px;
  font-size: 32px;
  color: var(--red);
}

.captcha-card p {
  font-size: 18px;
  color: var(--rose);
}

.captcha-close {
  position: absolute;
  top: 6px;
  right: 10px;

  border: 0;
  background: transparent;

  color: var(--rose);

  font-size: 24px;
}

.captcha-message {
  min-height: 20px;
  margin-top: 10px;

  color: var(--rose);
  font-size: 14px;
}

/* ANIMATIONS */

@keyframes sparklePop {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-16px) scale(.3);
  }
}

@keyframes floatWeather {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-5px) rotate(1deg);
  }
}

.link-wall {
  text-align: center;
  line-height: 2;
}

.link-wall img {
  vertical-align: middle;
  image-rendering: auto;
}
