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

/* ---------------- ROOT ---------------- */

:root {

  --bg: #a9caca;
  --bg2: #b7d4d4;

  --panel: #d9eeee;
  --white: #ffffff;

  --text: #6f9da1;
  --dark: #547f83;

  --line: #d6eeee;

  --shadow: rgba(64, 99, 103, 0.22);
}

/* ---------------- GLOBAL ---------------- */

* {
  box-sizing: border-box;
}

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

body {

  font-family: "CustomCute", sans-serif;
  color: var(--text);

  overflow: hidden;

  cursor: url("assets/cursor-normal.png"), auto;

  background:
    radial-gradient(circle, rgba(255,255,255,.55) 0 3px, transparent 4px) 20px 20px / 90px 90px,
    radial-gradient(circle, rgba(255,255,255,.35) 0 2px, transparent 3px) 65px 65px / 90px 90px,
    linear-gradient(180deg, var(--bg), var(--bg2));
}

/* ---------------- LOADING ---------------- */

.loading-screen {

  position: fixed;
  inset: 0;

  z-index: 99999;

  display: grid;
  place-items: center;

  background:
    radial-gradient(circle at center, rgba(255,255,255,.4), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));

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

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

.loading-box {

  min-width: 240px;

  padding: 24px 28px;

  text-align: center;

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

  box-shadow:
    0 0 0 3px var(--line),
    0 8px 0 rgba(178,211,211,.75),
    0 18px 34px rgba(64,99,103,.18);

  animation: loadingFloat 1.8s ease-in-out infinite;
}

.loading-charm {

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

  color: var(--dark);
}

.loading-box p {

  margin: 8px 0 2px;

  font-size: 28px;
  line-height: 1;
}

.loading-box span {

  font-size: 15px;

  opacity: .75;
}

/* ---------------- PAGE ---------------- */

.page {

  width: 100vw;
  height: 100vh;

  padding: 24px;

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

  position: relative;
}

/* ---------------- CLOUDS ---------------- */

.cloud {

  position: fixed;

  top: 0;

  width: 150px;
  height: 100vh;

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

  pointer-events: none;

  z-index: 0;
}

.cloud-left {
  left: 0;
}

.cloud-right {
  right: 0;
  transform: scaleX(-1);
}

/* ---------------- AMBIENT ---------------- */

.ambient {

  position: fixed;
  inset: 0;

  z-index: 1;

  pointer-events: none;

  opacity: .26;

  background-image:
    radial-gradient(circle at 12% 24%, rgba(255,255,255,.65) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 82%, rgba(255,255,255,.6) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 74%, rgba(255,255,255,.5) 0 1px, transparent 2px);

  background-size:
    130px 130px,
    170px 170px,
    150px 150px,
    190px 190px;

  animation: ambientDrift 18s linear infinite;
}

body::after {

  content: "";

  position: fixed;
  inset: 0;

  z-index: 1;

  pointer-events: none;

  opacity: .06;

  background-image:
    linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);

  background-size: 4px 4px;
}

/* ---------------- CARD ---------------- */

.soft-card {

  width: 900px;
  height: 650px;

  position: relative;
  z-index: 2;

  padding: 70px 76px 52px;

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

  filter: drop-shadow(0 18px 34px var(--shadow));
}

/* ---------------- DECORATIONS ---------------- */

button,
a,
.soft,
.tab,
.music-player button {
  cursor: url("assets/cursor-hover.png"), pointer !important;
}

/* ---------------- TABS ---------------- */

.tabs {

  display: flex;
  justify-content: center;

  gap: 12px;

  margin-bottom: 16px;
}

.tab {

  border-radius: 10px;
  border:0!important;
  background: var(--white);
  color: var(--text);
  min-width: 166px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 22px;
  transition: .18s ease;

  cursor: url("assets/cursor-hover.png"), pointer;

  box-shadow:
    0 0 0 3px var(--line),
    0 4px 0 rgba(178,211,211,.85);
}

.tab:hover,
.tab.active {

  transform: translateY(2px);

  color: var(--dark);

  box-shadow:
    0 0 0 3px var(--line),
    0 2px 0 rgba(178,211,211,.85);
}


.tabs {
  position: relative;
  z-index: 50;
}

.content {
  position: relative;
  z-index: 1;
}
/* ---------------- CONTENT ---------------- */

.content {

  height: 390px;

  padding: 26px 34px;

  background: rgba(217,238,238,.92);

  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: thin;
  scrollbar-color: #ffffff #c8e4e4;

  border:5px dashed #abcbce;
  border-radius:20px;
  
  box-shadow:
    inset 0 0 0 6px rgba(255,255,255,.5);
}

/* ---------------- SCROLLBAR ---------------- */

.content::-webkit-scrollbar {
  width: 14px;
}

.content::-webkit-scrollbar-track {

  background:
    repeating-linear-gradient(
      45deg,
      #d9eeee 0 6px,
      #eefafa 6px 12px
    );

  border-left: 3px solid rgba(255,255,255,.7);
}

.content::-webkit-scrollbar-thumb {

  background:
    repeating-linear-gradient(
      -45deg,
      #ffffff 0 5px,
      #f7ffff 5px 10px
    );

  border: 3px solid #c8e4e4;

  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.8);
}

.content::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

/* ---------------- PANELS ---------------- */

.panel {
  display: none;
  animation: fadeUp .28s ease;
}

.panel.active {
  display: block;
}

h1 {

  margin: 0 0 12px;

  text-align: center;

  font-size: 62px;
  line-height: .9;

  letter-spacing: 2px;

  color: var(--dark);
}

p {

  max-width: 640px;

  margin: 0 auto 14px;

  text-align: center;

  font-size: 18px;
  line-height: 1.35;
}

/* ---------------- HR ---------------- */
.stitch-hr {

  border: 0;
  height: 8px;

  margin: 18px auto;

  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.95) 0 8px,
      transparent 8px 18px
    );

  opacity: .95;
}

/* ---------------- STATUS ---------------- */

.status-row {

  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 10px;

  margin: 18px 0;
}

.status-row span {

  background: var(--white);

  padding: 8px 14px;

  font-size: 17px;

  box-shadow:
    0 0 0 2px var(--line),
    0 3px 0 rgba(178,211,211,.75);
}

.mini-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 10px;

  max-width: 410px;

  margin: 0 auto;
}

.mini-box {

  background: var(--white);

  padding: 10px 12px;

  text-align: center;

  font-size: 17px;

  box-shadow:
    0 0 0 2px var(--line),
    0 3px 0 rgba(178,211,211,.75);
}

/* ---------------- LIST ---------------- */

.cute-list {

  list-style: none;
  margin: 0 auto;
  padding: 0;
  font-size: 18px;
  line-height: 1.45;
}

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

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

/* ---------------- SOCIALS ---------------- */

.social-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 12px;

  max-width: 660px;

  margin: 0 auto 14px;
}

.social-grid a {

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

  text-align: center;
  text-decoration: none;

  font-size: 20px;

  padding: 12px;

  transition: .18s ease;

  cursor: url("assets/cursor-hover.png"), pointer;

  box-shadow:
    0 0 0 2px var(--line),
    0 3px 0 rgba(178,211,211,.75);
}

.social-grid a:hover {
  transform: rotate(-2deg) scale(1.03);
}

.small-note {
  font-size: 16px;
}

/* ---------------- TOOLTIPS ---------------- */

[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {

  content: attr(data-tooltip);

  position: absolute;

  left: 50%;
  bottom: calc(100% + 12px);

  min-width: 120px;
  max-width: 220px;

  padding: 8px 10px;

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

  color: var(--dark);

  font-size: 14px;
  line-height: 1.2;

  text-align: center;

  box-shadow:
    0 0 0 2px var(--line),
    0 4px 0 rgba(178,211,211,.75),
    0 10px 18px rgba(64,99,103,.14);

  opacity: 0;

  pointer-events: none;

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

  transition: .18s ease;

  z-index: 99;
}

[data-tooltip]::after {

  content: "";

  position: absolute;

  left: 50%;
  bottom: calc(100% + 4px);

  width: 10px;
  height: 10px;

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

  box-shadow:
    2px 2px 0 var(--line);

  opacity: 0;

  pointer-events: none;

  transform:
    translateX(-50%)
    rotate(45deg)
    translateY(6px);

  transition: .18s ease;

  z-index: 98;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {

  opacity: 1;
}

[data-tooltip]:hover::before {

  transform:
    translateX(-50%)
    translateY(0);
}

[data-tooltip]:hover::after {

  transform:
    translateX(-50%)
    rotate(45deg)
    translateY(0);
}

/* ---------------- CREDITS ---------------- */

.credits {

  margin: 14px auto 0;

  text-align: center;

  font-size: 13px;

  opacity: .8;
}

/* ---------------- MUSIC ---------------- */

.music-player {

  position: fixed;

  left: 18px;
  bottom: 18px;

  z-index: 5;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 9px 12px;

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

  box-shadow:
    0 0 0 3px var(--line),
    0 5px 0 rgba(178,211,211,.75),
    0 10px 22px rgba(64,99,103,.16);
}

.music-player button {

  width: 36px;
  height: 36px;

  border: 0;
  border-radius: 50%;

  background: var(--panel);
  color: var(--dark);

  font-family: inherit;
  font-size: 18px;

  cursor: url("assets/cursor-hover.png"), pointer;
}

.music-text {

  display: flex;
  flex-direction: column;

  line-height: 1.05;

  text-align: left;
}

.music-text strong {
  font-size: 13px;
}

.music-text span {
  font-size: 11px;
}

/* ---------------- SPARKLES ---------------- */

.sparkle {

  position: fixed;

  width: 8px;
  height: 8px;

  pointer-events: none;

  z-index: 9999;

  opacity: .85;

  will-change:
    transform,
    opacity;

  animation:
    sparkleFade .45s linear forwards;
}

.sparkle::before {

  content: "✦";

  position: absolute;
  inset: 0;

  color: #f8ffff;

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

  text-shadow:
    0 0 3px rgba(255,255,255,.9),
    0 0 6px rgba(214,238,238,.8);
}

@keyframes sparkleFade {

  from {
    transform:
      translate3d(0,0,0)
      scale(1);

    opacity: .9;
  }

  to {
    transform:
      translate3d(0,-10px,0)
      scale(.25);

    opacity: 0;
  }
}
/* ---------------- ANIMATIONS ---------------- */

@keyframes fadeUp {

  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientDrift {

  from {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0;
  }

  to {
    background-position:
      80px -120px,
      -100px 90px,
      120px 80px,
      -80px -100px;
  }
}

@keyframes loadingFloat {

  0%,100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes sparkleFade {

  from {
    transform: translateY(0px) scale(1);
    opacity: .95;
  }

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

/* ---------------- MOBILE ---------------- */

@media (max-width: 760px) {

  body {
    overflow-y: auto;
  }

  .page {

    min-height: 100vh;
    height: auto;

    padding: 20px 10px 90px;
  }

  .cloud {
    display: none;
  }

  .card {

    width: 96vw;
    height: auto;

    min-height: 600px;

    padding: 72px 34px 44px;
  }

  .tabs {
    gap: 8px;
    flex-wrap: wrap;
  }

  .tab {

    min-width: 98px;

    font-size: 18px;

    padding: 9px 12px;
  }

  .content {

    height: auto;
    min-height: 350px;

    padding: 24px 18px;
  }

  h1 {
    font-size: 50px;
  }

  p,
  .cute-list {
    font-size: 16px;
  }

  .mini-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .music-player {
    left: 12px;
    bottom: 12px;
  }

  .deco {

    width: 34px;
    height: 34px;

    font-size: 20px;
  }

  .deco-top-left {
    top: 42px;
    left: 24px;
  }

  .deco-top-right {
    top: 42px;
    right: 24px;
  }

  .deco-bottom-left {
    bottom: 24px;
    left: 26px;
  }

  .deco-bottom-right {
    bottom: 24px;
    right: 26px;
  }
}

/* ---------------- TAB FEEL ---------------- */

.tab {
  position: relative;
  overflow: visible;
}

.tab:hover {
  transform: translateY(2px) rotate(-1deg);
}

.tab:active,
.social-grid a:active,
.music-player button:active {
  transform: translateY(4px) scale(.96);
}

/* ---------------- TAB-ONLY SPARKLES ---------------- */

.tab-sparkle {
  position: fixed;

  width: 8px;
  height: 8px;

  pointer-events: none;
  z-index: 9999;

  animation: tabSparkleFade .5s ease-out forwards;
}

.tab-sparkle::before {
  content: "✦";

  position: absolute;
  inset: 0;

  color: #1ac9c6;
  font-size: 9px;
  line-height: 1;

  text-shadow:
    0 0 4px rgba(255,255,255,.95),
    0 0 7px rgba(214,238,238,.9);
}

@keyframes tabSparkleFade {
  from {
    opacity: .95;
    transform: translate3d(0,0,0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate3d(0,-12px,0) scale(.25);
  }
}

@media (max-width: 760px) {
  .tiny-marquee {
    margin-top: -8px;
  }
}

/* ---------------- SOFT IMAGES ---------------- */

.soft {
  position: relative;
  z-index: 1;
  
  display: inline-block;

  transition:
    transform .35s ease,
    filter .35s ease;

  transform-origin: center center;

  cursor: url("assets/cursor-hover.png"), pointer;
}

/* gentle float tilt */

.soft:hover {
  animation: softTilt 2.2s ease-in-out infinite;

  filter:
    drop-shadow(0 0 10px rgba(255,255,255,.55));
}

/* click squish */

.soft:active {
  transform: scale(.96);
}

/* sparkle jiggle */

.soft.sparkled {
  animation:
    sparkleJiggle .45s ease;
}

.soft.sparkled::after {
  content: "✦";

  position: absolute;

  top: -10px;
  right: -8px;

  font-size: 14px;

  color: #ffffff;

  pointer-events: none;

  animation:
    sparklePop .6s ease forwards;

  text-shadow:
    0 0 6px rgba(255,255,255,.95),
    0 0 12px rgba(214,238,238,.85);
}

/* animations */

@keyframes softTilt {

  0% {
    transform:
      rotate(-1.5deg)
      translateY(0px);
  }

  50% {
    transform:
      rotate(1.5deg)
      translateY(-4px);
  }

  100% {
    transform:
      rotate(-1.5deg)
      translateY(0px);
  }
}

@keyframes sparkleJiggle {

  0% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(-2deg) scale(1.03);
  }

  50% {
    transform: rotate(2deg) scale(1.04);
  }

  75% {
    transform: rotate(-1deg) scale(1.02);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes sparklePop {

  from {
    opacity: 1;

    transform:
      translateY(0px)
      scale(1);
  }

  to {
    opacity: 0;

    transform:
      translateY(-16px)
      scale(.3);
  }
}

/* ---------------- MASCOT!! ---------------- */

.mascot-buddy {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 60;

  width: 130px;

  cursor: url("assets/cursor-hover.png"), pointer;
}

.mascot-buddy img {
  width: 100%;
  height: auto;
  display: block;

  filter:
    drop-shadow(0 6px 0 rgba(84,127,131,.18))
    drop-shadow(0 10px 18px rgba(64,99,103,.18));

  animation: mascotFloat 3s ease-in-out infinite;
}

/* ---------------- SIDE THOUGHT BUBBLE ---------------- */

.mascot-speech {

  position: absolute;

  right: 120px;
  bottom: 72px;

  min-width: 170px;
  max-width: 230px;

  padding: 16px 18px;

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

  color: var(--dark);

  font-size: 14px;
  line-height: 1.3;
  text-align: center;

  border-radius: 999px;

  opacity: 0;

  pointer-events: none;

  transform:
    translateY(8px)
    scale(.94);

  transition: .24s ease;

  box-shadow:
    0 0 0 3px var(--line),
    0 6px 0 rgba(178,211,211,.75),
    0 14px 24px rgba(64,99,103,.16);
}

/* medium thought bubble */

.mascot-speech::before {

  content: "";

  position: absolute;

  width: 18px;
  height: 18px;

  right: -18px;
  bottom: 34px;

  border-radius: 50%;

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

  box-shadow:
    0 0 0 3px var(--line);
}

/* tiny thought bubble */

.mascot-speech::after {

  content: "";

  position: absolute;

  width: 10px;
  height: 10px;

  right: -34px;
  bottom: 22px;

  border-radius: 50%;

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

  box-shadow:
    0 0 0 3px var(--line);
}

.mascot-buddy:hover .mascot-speech {

  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

.mascot-buddy:active img {
  transform: scale(.94);
}

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

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

@media (max-width: 760px) {
  .mascot-buddy {
    width: 90px;
    right: 12px;
    bottom: 76px;
  }

  .mascot-speech {
    right: 86px;
    bottom: 56px;
    min-width: 130px;
    font-size: 12px;
  }
}

/* ---------------- FLOATING COMFORT TEXT ---------------- */

.comfort-strip {

  width: 100%;
  margin-bottom: 14px;
  text-align: center;
  color: var(--dark);
  font-size: 13px;
  line-height: 1.2;
  opacity: .72;
  letter-spacing: .3px;
  min-height: 18px;
}

#comfortText {
  display: inline-block;
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
  opacity: 1;

  transform:
    translateY(0px);
}

#comfortText.fade-out {

  opacity: 0;

  transform:
    translateY(-4px);
}

#comfortText.fade-in {

  opacity: 1;

  transform:
    translateY(0px);
}

/* ---------------- PRETTY TEXT TAGS ---------------- */

b,
strong {

  color: #7faeb2;

  font-weight: 700;

  text-shadow:
    0 0 4px rgba(255,255,255,.45);
}

i,
em {

  color: #9fbfc2;

  font-style: italic;

  opacity: .92;
}

/* ---------------- LINK ME ---------------- */

.linkme-box {

  position: fixed;

  left: 18px;
  bottom: 104px;

  z-index: 5;

  width: 170px;

  padding: 10px;

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

  box-shadow:
    0 0 0 3px var(--line),
    0 5px 0 rgba(178,211,211,.75),
    0 10px 22px rgba(64,99,103,.16);

  text-align: center;
}

.linkme-title {

  margin-bottom: 8px;

  font-size: 13px;

  color: var(--dark);

  opacity: .82;
}

.linkme-button {

  width: 88px;
  height: 31px;

  image-rendering: auto;

  transition:
    transform .2s ease,
    filter .2s ease;
}

.linkme-button:hover {

  transform:
    scale(1.04)
    rotate(-1deg);

  filter:
    drop-shadow(0 0 8px rgba(255,255,255,.7));
}

.linkme-box textarea {

  width: 100%;
  height: 58px;

  margin-top: 8px;

  padding: 8px;

  resize: none;

  border: 0;

  background:
    rgba(217,238,238,.65);

  color: var(--dark);

  font-size: 10px;
  line-height: 1.3;

  font-family: monospace;

  overflow-y: auto;
  overflow-x: hidden;

  white-space: pre-wrap;
  word-break: break-word;

  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.7);
}

.linkme-box textarea::-webkit-scrollbar {

  width: 6px;
}

.linkme-box textarea::-webkit-scrollbar-track {

  background:
    rgba(255,255,255,.45);
}

.linkme-box textarea::-webkit-scrollbar-thumb {

  background:
    #a9c7c9;

  border-radius: 999px;
}

.linkme-box textarea:focus {
  outline: none;
}

@media (max-width: 760px) {

  .linkme-box {
    left: 12px;
    bottom: 154px;
    width: 145px;
  }

  .linkme-box textarea {
    height: 46px;
    font-size: 9px;
  }
}
