:root {
  --bg: #f9f6ff;
  --bg-accent: #f5dcff;
  --ink: #2b2335;
  --muted: #6c5e7a;
  --accent: #ff9ecf;
  --accent-2: #7fd7ff;
  --accent-3: #ffe5a6;
  --card: rgba(255, 245, 252, 0.9);
  --shadow: 0 24px 50px rgba(60, 40, 80, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff7fd 0%, var(--bg) 45%, #f1fbff 100%);
  min-height: 100vh;
  line-height: 1.65;
  font-size: 1.06rem;
  overflow-x: hidden;
  transition: background 0.5s ease;
}

h1, h2, h3 {
  font-family: "Kiwi Maru", "Times New Roman", serif;
  letter-spacing: 0.3px;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.5;
  mix-blend-mode: multiply;
  animation: float 18s ease-in-out infinite;
}

.b1 {
  width: 380px;
  height: 380px;
  background: #ffd1ea;
  top: -80px;
  left: -60px;
}

.b2 {
  width: 320px;
  height: 320px;
  background: #c8ecff;
  bottom: 10vh;
  right: -80px;
  animation-delay: 2s;
}

.b3 {
  width: 260px;
  height: 260px;
  background: #ffeab8;
  top: 55vh;
  left: 10vw;
  animation-delay: 5s;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 8vw 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(249, 246, 255, 0.95) 0%, rgba(249, 246, 255, 0.6) 100%);
  z-index: 2;
}

.logo {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 1.15rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding: 6px 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a::before {
  content: "✦";
  position: absolute;
  top: -6px;
  right: -10px;
  font-size: 0.85rem;
  color: #ffc7e8;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover::before {
  opacity: 1;
  transform: scale(1);
}

main {
  padding: 40px 8vw 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 48px 0 20px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 3rem;
  letter-spacing: 2px;
  color: var(--accent-2);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.8rem, 4.5vw, 3.9rem);
  margin: 14px 0 18px;
  white-space: nowrap;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
}

.type {
  display: inline-block;
  width: 14ch;
  overflow: hidden;
  white-space: nowrap;
  font-family: inherit;
}

.type::after {
  content: "";
}

.type:last-child::after {
  content: "▮";
  margin-left: 4px;
  color: #9f8bd1;
  animation: blink 1s step-end infinite;
}

.lead {
  color: var(--muted);
  max-width: 480px;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, var(--accent), #ffb5e8);
  color: #fff;
  font-weight: 600;
  font-size: 1.18rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(255, 158, 207, 0.25);
}

#energyBtn {
  font-size: 2rem;
  background: linear-gradient(120deg, #7fd7ff, #a3f0ff);
  color: #1f3552;
  box-shadow: 0 12px 24px rgba(127, 215, 255, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(31, 26, 23, 0.2);
  box-shadow: none;
}

.spark {
  margin-top: 14px;
  color: var(--accent-2);
  min-height: 24px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(255, 221, 239, 0.9), rgba(255, 245, 252, 0.9));
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  max-width: none;
  justify-self: stretch;
  font-family: "Kiwi Maru", "Baloo 2", "Trebuchet MS", sans-serif;
}

.card-title {
  font-weight: 600;
  color: var(--accent);
  font-size: 2rem;
}

.card-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 1.25rem;
}

.mini-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.mini-btn {
  padding: 10px 16px;
  border-radius: 14px;
  border: none;
  background: rgba(255, 158, 207, 0.25);
  color: #7d3f63;
  font-weight: 700;
  font-size: 1.14rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 18px rgba(255, 158, 207, 0.2);
}

.mini-btn:hover {
  transform: translateY(-1px);
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.mini-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 18px rgba(90, 60, 120, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.9);
  perspective: 800px;
}

.mini-card-inner {
  position: relative;
  min-height: 64px;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.mini-card.flip .mini-card-inner {
  transform: rotateY(180deg);
}

.mini-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: var(--muted);
  backface-visibility: hidden;
  text-align: center;
}

.mini-face.back {
  transform: rotateY(180deg);
  color: #6c4b7d;
  font-weight: 600;
}

.section {
  padding: 60px 0 20px;
}

.section-title h2 {
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.08rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.about-card {
  background: linear-gradient(135deg, rgba(255, 239, 214, 0.9), rgba(255, 250, 234, 0.9));
  padding: 20px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 1.3rem;
}

.about-card:hover {
  transform: translateY(-6px);
}

.about-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(210, 238, 255, 0.9), rgba(238, 250, 255, 0.9));
}

.about-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(233, 222, 255, 0.9), rgba(246, 238, 255, 0.9));
}

.project {
  margin-top: 26px;
  background: linear-gradient(135deg, rgba(255, 228, 214, 0.9), rgba(255, 246, 238, 0.9));
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.project-title-link {
  color: #ff8dc4;
  font-weight: 700;
}

.project-title-link:hover {
  color: #6ebfe8;
}

.project h3 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent-2);
  font-size: 1.2rem;
}

.project-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 158, 207, 0.22);
  color: #9b4d77;
  font-size: 1.2rem;
  font-weight: 600;
}

.play-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.play-card {
  background: linear-gradient(135deg, rgba(220, 255, 237, 0.9), rgba(244, 255, 249, 0.9));
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
}

#reactionBox, .reaction-box {
  height: 120px;
  border-radius: 16px;
  border: 2px dashed rgba(31, 26, 23, 0.2);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  font-size: 1.05rem;
}

.reaction-box.ready {
  background: rgba(127, 215, 255, 0.24);
  color: #2c6d8c;
  border-color: rgba(127, 215, 255, 0.55);
  transform: scale(1.01);
}

.reaction-box.too-soon {
  background: rgba(255, 158, 207, 0.22);
  color: #a24f7b;
  border-color: rgba(255, 158, 207, 0.55);
}

.reaction-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.reaction-result {
  font-weight: 600;
  color: var(--accent-2);
}

#mood, input[type="range"] {
  width: 100%;
}

.quiz {
  display: grid;
  gap: 10px;
}

.quiz-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(31, 26, 23, 0.18);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 1.14rem;
}

.quiz-btn.correct {
  background: rgba(122, 214, 148, 0.2);
  color: #68d654;
  border-color: rgba(127, 215, 255, 0.5);
}

.quiz-btn.wrong {
  background: rgba(255, 158, 207, 0.2);
  color: #a24f7b;
  border-color: rgba(255, 158, 207, 0.5);
}

.energy {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c6d8c;
}

#play .play-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(255, 231, 248, 0.9), rgba(255, 244, 252, 0.9));
}

#play .play-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(230, 240, 255, 0.9), rgba(246, 250, 255, 0.9));
}

#play .play-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(255, 240, 208, 0.9), rgba(255, 249, 231, 0.9));
}

.contact-card {
  margin-top: 22px;
  padding: 22px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(233, 222, 255, 0.9), rgba(246, 238, 255, 0.9));
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.contact-label {
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.contact-email {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-2);
}

.site-footer {
  padding: 40px 8vw 60px;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-20px) translateX(14px);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    white-space: normal;
  }

  .hero-card {
    justify-self: start;
  }

  .project {
    grid-template-columns: 1fr;
  }

  .project-meta {
    justify-items: start;
  }
}
