@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Lexend:wght@300;400;500;600;700&display=swap');

:root {
  --yellow: #ffd200;
  --yellow-glow: #ffe600;
  --yellow-soft: #fff4a3;
  --yellow-deep: #f5a623;
  --denim: #1c529e;
  --denim-bright: #2972d8;
  --denim-dark: #123768;
  --night-bg: #0a1320;
  --night-card: #101c2e;
  --night-card-border: #1f3659;
  --night-panel: #0d1726;
  --ink: #f0f4fa;
  --muted: #95adc9;
  --line: #223c63;
  --cream: #0a1320;
  --font: 'Lexend', sans-serif;
  --round: 'Baloo 2', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--night-bg);
  overflow-x: hidden;
}
button, a { font: inherit; }
button { cursor: pointer; }

/* Sky & Stars */
.sky {
  position: absolute;
  inset: 0 0 auto;
  height: 780px;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 78% 28%, #1f4273 0, transparent 42%),
              linear-gradient(120deg, #070e17, #0e1e34 55%, #183358);
}
.sky:after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  height: 130px;
  bottom: -92px;
  background: var(--night-bg);
  border-radius: 50% 50% 0 0;
}

/* Topbar */
.topbar {
  position: relative;
  z-index: 2;
  height: 76px;
  padding: 0 max(calc((100% - 1160px)/2), 6%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font: 600 20px var(--round);
  letter-spacing: -.3px;
}
.brand b {
  color: var(--yellow);
  text-shadow: 0 0 14px rgba(255, 210, 0, 0.45);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--yellow);
  background: rgba(255, 210, 0, 0.12);
  border: 1px solid rgba(255, 210, 0, 0.35);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 210, 0, 0.2);
}
.topbar nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
  margin-right: 34px;
}
.topbar nav a {
  color: #b9d0ec;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s, text-shadow .2s;
}
.topbar nav a:hover {
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255, 210, 0, 0.5);
}

/* Hero */
.hero {
  min-height: 700px;
  max-width: 1160px;
  margin: auto;
  padding: 96px 20px 0;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  color: #fff;
}
.hero-copy {
  padding-top: 48px;
  animation: rise .8s both;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow-glow);
}
.hero h1 {
  font: 800 clamp(52px, 6.2vw, 78px)/.98 var(--round);
  letter-spacing: -1.4px;
  margin: 22px 0 19px;
}
.hero h1 span, .section-heading h2 span {
  color: var(--yellow);
  text-shadow: 0 0 25px rgba(255, 210, 0, 0.5);
}
.hero-text {
  color: #c0d4ec;
  font-size: 14px;
  line-height: 1.9;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.button {
  border: 0;
  border-radius: 14px;
  padding: 13px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--round);
  letter-spacing: .2px;
  transition: transform .22s, box-shadow .22s, background .22s;
}
.button:hover { transform: translateY(-3px); }
.button-primary {
  background: linear-gradient(135deg, #ffd200, #ffb300);
  color: #0b192e;
  box-shadow: 0 8px 24px rgba(255, 210, 0, 0.35);
}
.button-primary:hover {
  background: linear-gradient(135deg, #ffe033, #ffbf00);
  box-shadow: 0 12px 30px rgba(255, 210, 0, 0.55);
}
.button-ghost {
  color: #e8f0fe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 210, 0, 0.35);
}
.button-ghost:hover {
  background: rgba(255, 210, 0, 0.15);
  border-color: var(--yellow);
  color: var(--yellow);
}
.hero-note {
  font-size: 11px;
  color: #92abc9;
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tiny-heart {
  color: var(--yellow);
  font-size: 14px;
  animation: heartbeat 2s infinite;
}

/* Hero Art - Minion Style */
.hero-art {
  position: relative;
  height: 460px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  animation: floatIn 1s .15s both;
}
.art-orbit {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 210, 0, 0.18);
  border-radius: 50%;
  animation: spin 26s linear infinite;
}
.orbit-a:before {
  content: "🍌";
  position: absolute;
  left: 20%;
  top: 4%;
  font-size: 16px;
}
.orbit-b {
  width: 320px;
  height: 320px;
  border-color: rgba(41, 114, 216, 0.25);
  animation-direction: reverse;
  animation-duration: 34s;
}
.orbit-b:after {
  content: "✦";
  color: var(--yellow);
  position: absolute;
  right: 7%;
  top: 70%;
  font-size: 12px;
}
.art-moon {
  position: absolute;
  right: 85px;
  top: 40px;
  font-size: 155px;
  color: #ffea70;
  filter: drop-shadow(0 0 38px rgba(255, 210, 0, 0.45));
  transform: rotate(-17deg);
  animation: moonGlow 4s ease-in-out infinite;
}

/* Minion Character Model */
.minion-character {
  z-index: 1;
  position: relative;
  width: 175px;
  height: 275px;
  margin-top: 85px;
  animation: bob 4s ease-in-out infinite;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.65));
}
.minion-hair {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 0;
}
.minion-hair span {
  display: block;
  width: 4px;
  background: #111;
  border-radius: 4px;
  transform-origin: bottom center;
}
.minion-hair .h1 { transform: rotate(-20deg); height: 16px; }
.minion-hair .h2 { transform: rotate(1deg); height: 22px; }
.minion-hair .h3 { transform: rotate(18deg); height: 17px; }

.minion-body-shape {
  position: relative;
  width: 175px;
  height: 265px;
  background: linear-gradient(175deg, #ffe033 0%, #ffd200 48%, #f2ad00 100%);
  border-radius: 88px 88px 65px 65px;
  overflow: hidden;
  box-shadow: inset -14px -10px 0 rgba(199, 139, 0, 0.4), inset 10px 10px 0 rgba(255, 255, 255, 0.35);
  border: 3px solid #e5a800;
}

.minion-strap {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  height: 23px;
  background: #1e2229;
  border-top: 2px solid #101216;
  border-bottom: 2px solid #101216;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.minion-goggle {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1f3f5 0%, #adb5bd 45%, #6c757d 100%);
  border: 4px solid #ced4da;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4), inset 0 2px 4px #fff, inset 0 -2px 5px rgba(0,0,0,0.4);
  z-index: 2;
}
.goggle-rim {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #868e96;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.25);
}
.goggle-eye {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
}
.goggle-eye .iris {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #8a4b16 20%, #582b09 85%);
  display: grid;
  place-items: center;
  position: relative;
  animation: lookAround 6s ease-in-out infinite;
}
.goggle-eye .pupil {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #111;
  position: relative;
}
.goggle-eye .shine {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.minion-mouth {
  position: absolute;
  top: 149px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 18px;
  border-bottom: 4px solid #754200;
  border-radius: 0 0 24px 24px;
}

.minion-overalls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, #245ea8 0%, #153e77 100%);
  border-top: 3px solid #113463;
  border-radius: 0 0 60px 60px;
  box-shadow: inset 0 5px 0 rgba(255,255,255,0.18), inset 0 -8px 0 rgba(0,0,0,0.25);
}
.overalls-strap {
  position: absolute;
  top: -24px;
  width: 23px;
  height: 32px;
  background: #1f559a;
  border: 2px solid #123561;
  border-bottom: 0;
}
.strap-left {
  left: 17px;
  transform: rotate(-15deg);
}
.strap-right {
  right: 17px;
  transform: rotate(15deg);
}
.strap-button {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 2px #fff;
}
.overalls-pocket {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 44px;
  background: #163e75;
  border: 2px solid #102e57;
  border-radius: 4px 4px 18px 18px;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.art-caption {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  color: #a4bedf;
  font-size: 11px;
  letter-spacing: .4px;
}
.art-star {
  position: absolute;
  color: var(--yellow);
  animation: twinkle 2s ease-in-out infinite;
}
.star-a { top: 77px; left: 43px; font-size: 21px; }
.star-b { bottom: 96px; right: 50px; font-size: 20px; animation-delay: .8s; }
.star {
  position: absolute;
  color: #ffdf60;
  opacity: .75;
  animation: twinkle 3s ease-in-out infinite;
}
.s1 { top: 160px; left: 13%; font-size: 15px; }
.s2 { top: 280px; left: 47%; font-size: 22px; animation-delay: .8s; }
.s3 { top: 510px; right: 12%; font-size: 17px; animation-delay: 1.2s; }
.s4 { top: 78px; right: 27%; font-size: 14px; animation-delay: .4s; }
.s5 { top: 610px; left: 31%; font-size: 11px; animation-delay: 1.7s; }
.sparkle { position: absolute; color: var(--yellow); }
.sp1 { top: 390px; left: 8%; font-size: 15px; }
.sp2 { top: 575px; right: 37%; font-size: 10px; }

.scroll-hint {
  position: absolute;
  bottom: 33px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8da6c5;
}
.scroll-hint span {
  height: 26px;
  width: 15px;
  border: 1px solid #4a678f;
  border-radius: 20px;
  position: relative;
}
.scroll-hint span:after {
  content: "";
  position: absolute;
  width: 3px;
  height: 6px;
  background: var(--yellow);
  left: 5px;
  top: 5px;
  border-radius: 3px;
  animation: scroll 1.5s infinite;
}

/* Dashboard / Library */
.dashboard {
  position: relative;
  z-index: 1;
  background: var(--night-bg);
  padding: 64px max(calc((100% - 1080px)/2), 6%) 90px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.section-heading .eyebrow { color: var(--yellow); }
.section-heading h2 {
  font: 700 clamp(30px, 4vw, 43px)/1.12 var(--round);
  margin: 12px 0 5px;
  letter-spacing: -.7px;
  color: #f0f4fa;
}
.section-heading h2 span { color: var(--yellow); }
.section-heading p {
  margin: 0;
  color: #9cb5d3;
  font-size: 12px;
}
.button-random {
  color: #fff;
  background: linear-gradient(135deg, #1c529e, #13396b);
  border: 1px solid #2a6cc2;
  padding: 13px 19px;
  box-shadow: 0 8px 18px rgba(18, 55, 104, 0.45);
}
.button-random:hover {
  background: linear-gradient(135deg, #276fc9, #1b4b88);
  border-color: var(--yellow);
  color: var(--yellow);
}

/* Progress Card */
.progress-card {
  position: relative;
  margin-top: 31px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 18px;
  background: linear-gradient(110deg, #112136, #162a45 65%, #13243c);
  border: 1px solid #1f3759;
  overflow: hidden;
}
.progress-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  background: #193152;
  border-radius: 13px;
  color: var(--yellow);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  font-size: 18px;
}
.progress-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.progress-copy strong {
  font: 700 16px var(--round);
  color: #f2f6fc;
}
.progress-copy span {
  font-size: 11px;
  color: #9ab4d3;
}
.progress-count {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.progress-count b {
  font: 800 28px var(--round);
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 210, 0, 0.35);
}
.progress-count span {
  font-size: 10px;
  color: #9cb5d3;
}
.progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #1c3352;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2972d8, var(--yellow));
  box-shadow: 0 0 12px rgba(255, 210, 0, 0.6);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}

/* Filters & Search */
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 31px 0 21px;
  flex-wrap: wrap;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  padding: 9px 13px;
  border-radius: 11px;
  color: #a4bedf;
  font-size: 11px;
  transition: .2s;
}
.filter:hover {
  background: #182942;
  color: var(--yellow);
}
.filter.active {
  background: #1b3558;
  color: var(--yellow);
  border-color: rgba(255, 210, 0, 0.3);
  font-weight: 700;
}
.filter span {
  font-size: 9px;
  opacity: .75;
}
.search {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #233c61;
  background: #0f1c2d;
  border-radius: 11px;
  padding: 0 12px;
  color: #8faecf;
  height: 38px;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: 11px var(--font);
  width: 170px;
  color: #f0f4fa;
}
.search input::placeholder { color: #6f8ba9; }

/* Story Grid & Cards */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.story-card {
  background: #0f1c2d;
  border: 1px solid #1c3559;
  border-radius: 18px;
  overflow: hidden;
  transition: transform .28s, box-shadow .28s, border-color .28s;
  animation: cardIn .5s both;
}
.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(5, 12, 22, 0.65);
  border-color: var(--yellow);
}
.card-cover {
  height: 144px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #182e4e, #23477a);
}
.card-cover:before, .card-cover:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 170px;
  height: 170px;
  left: -37px;
  top: -92px;
}
.card-cover:after {
  width: 230px;
  height: 230px;
  left: auto;
  right: -82px;
  top: 55px;
}
.card-cover .cover-icon {
  position: relative;
  z-index: 1;
  font-size: 54px;
  color: var(--yellow);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  transition: transform .35s;
}
.story-card:hover .cover-icon { transform: scale(1.12) rotate(-5deg); }

.cover-moon { background: linear-gradient(135deg, #182d4d, #142136); }
.cover-sea { background: linear-gradient(135deg, #123e59, #1b5377); }
.cover-forest { background: linear-gradient(135deg, #163e3d, #1f574d); }
.cover-star { background: linear-gradient(135deg, #1b3863, #254d85); }
.cover-cozy { background: linear-gradient(135deg, #3d2f1f, #574128); }
.cover-sky { background: linear-gradient(135deg, #183e6b, #255d9d); }

.card-cover img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}
.card-read {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(14, 28, 47, 0.88);
  border: 1px solid rgba(255, 210, 0, 0.4);
  color: var(--yellow);
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 700;
}
.card-content { padding: 16px; }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8da9cb;
  font-size: 9px;
}
.card-category {
  background: #172c48;
  color: var(--yellow);
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 0, 0.2);
  font-weight: 600;
}
.card-category:before {
  content: "🍌";
  display: inline-block;
  margin-right: 5px;
  font-size: 10px;
}
.card-title {
  font: 700 19px/1.2 var(--round);
  margin: 10px 0 6px;
  color: #f2f6fc;
}
.card-desc {
  height: 34px;
  overflow: hidden;
  color: #92abc9;
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #1a304e;
}
.card-bottom span {
  font-size: 10px;
  color: #8da8c7;
}
.read-link {
  border: 0;
  background: none;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  padding: 4px;
  transition: color .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.read-link:hover {
  color: #ffe666;
  transform: translateX(2px);
}

/* Load More Stories */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.button-load-more {
  background: linear-gradient(135deg, #1b529d, #123768);
  border: 1px solid #286bc0;
  color: #fff;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(18, 55, 104, 0.45);
  border-radius: 14px;
}
.button-load-more:hover {
  background: linear-gradient(135deg, #276fc9, #1b4b88);
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 10px 28px rgba(255, 210, 0, 0.25);
}

.empty-state {
  text-align: center;
  padding: 55px 20px;
  color: #9ab4d3;
}
.empty-state span {
  font-size: 36px;
  display: block;
}
.empty-state strong {
  font: 700 21px var(--round);
  color: var(--yellow);
  display: block;
  margin-top: 10px;
}
.empty-state p { font-size: 12px; }

/* Love Note & Discord Profile */
.love-note {
  padding: 64px 20px 72px;
  text-align: center;
  background: linear-gradient(130deg, #091321, #0f2036 50%, #122540);
  border-top: 1px solid #1f3758;
  border-bottom: 1px solid #1f3758;
  color: #f0f4fa;
}
.note-stars {
  font-size: 14px;
  color: var(--yellow);
  letter-spacing: 6px;
}
.note-heart {
  font-size: 26px;
  margin: 14px 0 8px;
  animation: heartbeat 2s infinite;
}
.love-note-header {
  max-width: 640px;
  margin: 0 auto 32px;
}
.love-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--yellow);
  display: inline-block;
  margin-bottom: 8px;
}
.love-note h2 {
  font: 700 clamp(24px, 3.5vw, 36px)/1.2 var(--round);
  margin: 6px 0 10px;
  color: #f7faff;
}
.love-note p {
  font: 600 20px/1.5 var(--round);
  margin: 0 0 10px;
  color: #dce7f5;
}
.love-dedication {
  font-size: 12px;
  color: var(--yellow);
  font-weight: 600;
  display: block;
}

/* Discord Card Container */
.discord-card-wrapper {
  display: flex;
  justify-content: center;
  margin: 30px auto 34px;
  perspective: 1000px;
}
.discord-card {
  width: min(360px, 92vw);
  background: #111214;
  border-radius: 20px;
  border: 1px solid rgba(255, 210, 0, 0.28);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 210, 0, 0.12);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
  text-align: left;
}
.discord-card:hover {
  transform: translateY(-5px);
  border-color: var(--yellow);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 210, 0, 0.25);
}
.discord-banner {
  height: 92px;
  background: linear-gradient(135deg, #182e4e, #29558c);
  position: relative;
  transition: background-color .3s ease;
}
.banner-minion-badge {
  position: absolute;
  right: 12px;
  top: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: var(--yellow);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255, 210, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.discord-body {
  padding: 0 18px 18px;
  position: relative;
}
.discord-avatar-container {
  position: relative;
  width: 82px;
  height: 82px;
  margin-top: -44px;
  margin-bottom: 12px;
}
.discord-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 6px solid #111214;
  background: #1e1f22;
  object-fit: cover;
  display: block;
}
.discord-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #23a55a;
  border: 3.5px solid #111214;
}
.discord-header-tags {
  position: absolute;
  top: 12px;
  right: 18px;
}
.discord-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e1f22;
  border: 1px solid #2b2d31;
  color: #949ba4;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
}
.discord-tag-badge i { color: #5865f2; }
.discord-info {
  margin-bottom: 12px;
}
.discord-display-name {
  font: 700 20px/1.2 var(--round);
  color: #f2f3f5;
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.discord-display-name i {
  color: var(--yellow);
  font-size: 14px;
  animation: heartbeat 2s infinite;
}
.discord-username {
  color: #949ba4;
  font-size: 12px;
  display: block;
}
.discord-pronouns-container {
  margin-top: 6px;
}
.discord-pronouns {
  display: inline-block;
  background: #2b2d31;
  color: #dbdee1;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}
.discord-divider {
  height: 1px;
  background: #232428;
  margin: 12px 0 14px;
}
.discord-section {
  background: #1e1f22;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid #2b2d31;
}
.discord-section-heading {
  display: block;
  color: #b5bac1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.discord-bio {
  color: #dbdee1;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}
.discord-footer-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  color: var(--yellow);
  background: rgba(255, 210, 0, 0.08);
  border: 1px dashed rgba(255, 210, 0, 0.35);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.love-note .note-stars:last-child { margin-top: 14px; }

/* Footer */
footer {
  min-height: 88px;
  background: #070e17;
  color: #8da9cb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px max(calc((100% - 1080px)/2), 6%);
  gap: 20px;
}
footer .brand { font-size: 16px; color: #f0f4fa; }
footer .brand-mark { width: 30px; height: 30px; }
footer p { font-size: 10px; color: #9ab4d3; }
.footer-credit { font-size: 9px; color: #6f8cae; }
.footer-credit a { color: var(--yellow); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* Reader Modal */
.reader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.reader.open { display: flex; }
.reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 22, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn .25s;
}
.reader-panel {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  padding: 25px clamp(22px, 7vw, 68px) 38px;
  max-height: 94vh;
  overflow: auto;
  border-radius: 26px;
  background: radial-gradient(ellipse at 50% 0, #193457 0, transparent 42%), #0b1524;
  border: 1px solid #1f3a61;
  color: #edf2f9;
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.85);
  animation: readerIn .35s both;
  scroll-behavior: smooth;
  scrollbar-color: #274b7c transparent;
}
.reader-progress-track {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: #14243b;
}
.reader-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2972d8, var(--yellow));
  box-shadow: 0 0 12px rgba(255, 210, 0, 0.6);
  transition: width .15s linear;
}
.reader-close {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 26px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 210, 0, 0.3);
  background: #142740;
  color: var(--yellow);
  border-radius: 50%;
  transition: transform .2s, background .2s;
}
.reader-close:hover {
  transform: rotate(90deg);
  background: #1c385e;
  border-color: var(--yellow);
}
.reader-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  padding-right: 50px;
  color: #9cb5d3;
  font-size: 11px;
}
.reader-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f2f6fc;
}
.reader-brand img {
  width: 68px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}
.reader-brand div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.reader-brand span {
  font: 700 18px var(--round);
  color: #f5f8fc;
}
.reader-brand small {
  color: var(--yellow);
  font-size: 10px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 600;
}
.reader-time { font-size: 11px; color: #a4bedf; }

.reader-heading {
  position: relative;
  max-width: 700px;
  margin: 26px auto 8px;
  padding: 25px 26px 23px;
  text-align: center;
  border: 1px solid #1e385c;
  border-radius: 22px;
  background: linear-gradient(135deg, #102137, #0d1929 68%, #132742);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}
.reader-heading:before, .reader-heading:after {
  content: "🍌";
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 17px;
  opacity: .9;
}
.reader-heading:after {
  left: auto;
  right: 20px;
}
.reader-category {
  display: inline-block;
  color: var(--yellow);
  background: #172d4b;
  border: 1px solid rgba(255, 210, 0, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 10px;
  letter-spacing: .4px;
  font-weight: 600;
}
.reader-heading h2 {
  font: 700 clamp(27px, 4vw, 39px)/1.13 var(--round);
  letter-spacing: -.5px;
  margin: 14px 20px 7px;
  color: #f7faff;
}
.reader-byline {
  font-size: 11px;
  color: #9cb5d3;
}
.reader-byline span {
  color: var(--yellow);
  margin-left: 4px;
}
.reader-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 15px;
  color: #92abc9;
  font-size: 10px;
}
.reader-meta>span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.reader-meta i, .reader-meta-dot { color: var(--yellow); }
.reader-progress-label {
  color: var(--yellow) !important;
  font-weight: 700;
}

.reader-illustration {
  height: clamp(140px, 22vh, 220px);
  margin: 6px auto 4px;
  max-width: 700px;
  border-radius: 20px;
  background: radial-gradient(ellipse, #173256 0, transparent 68%);
  color: var(--yellow);
  font-size: 63px;
  display: grid;
  place-items: center;
}
.reader-illustration img {
  width: min(210px, 52vw);
  height: 165px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

.reader-tools {
  max-width: 690px;
  margin: 0 auto 20px;
  padding: 11px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1a3354;
  border-bottom: 1px solid #1a3354;
  color: #9cb4d3;
  font-size: 10px;
}
.reader-tools>span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.reader-tools>span i { color: var(--yellow); }
.reader-tools>div { display: flex; gap: 6px; }
.reader-tools button {
  min-width: 36px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid #284771;
  background: #14263f;
  color: var(--yellow);
  font: 700 12px var(--font);
  transition: .2s;
}
.reader-tools button:hover {
  background: #1c385f;
  border-color: var(--yellow);
}

.reader-content {
  max-width: 690px;
  margin: 0 auto 23px;
  color: #e4edf8;
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: .04px;
}
.reader-content p { margin: 0 0 23px; }
.reader-content p:first-child:first-letter {
  float: left;
  margin: 3px 9px 0 0;
  font: 700 48px/.8 var(--round);
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(255, 210, 0, 0.4);
}

.reader-source {
  max-width: 690px;
  margin: 0 auto 27px;
  padding-top: 10px;
  border-top: 1px solid #1a3354;
  text-align: right;
  font-size: 11px;
}
.reader-source a {
  color: var(--yellow);
  text-decoration: none;
}
.reader-source a:hover { text-decoration: underline; }

.reader-end {
  max-width: 690px;
  margin: 30px auto 25px;
  padding: 24px 18px;
  border: 1px solid #203c63;
  border-radius: 20px;
  background: linear-gradient(120deg, #102137, #132640);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.reader-end>span { font-size: 20px; }
.reader-end p {
  font: 600 17px/1.7 var(--round);
  margin: 0;
  color: #f0f4fa;
}
.reader-end b { color: var(--yellow); }

.reader-actions {
  max-width: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.reader-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #1f395e;
  border-radius: 13px;
  background: #112034;
  color: #c0d5ef;
  font-size: 11px;
  font-weight: 600;
  transition: .2s;
}
.reader-nav.next { justify-content: flex-end; }
.reader-nav:hover:not(:disabled) {
  background: #1a3458;
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}
.reader-nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.reader-actions .reader-done {
  margin: 0;
  white-space: nowrap;
  padding: 13px 20px;
}
.reader-signoff {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 22px auto 0;
  color: #a4bedf;
  font-size: 11px;
  letter-spacing: .5px;
}
.reader-signoff img {
  width: 52px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}
.reader-signoff i { color: var(--yellow); }

/* Toast */
.toast {
  position: fixed;
  z-index: 40;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #10233b;
  border: 1px solid var(--yellow);
  color: #fff;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 210, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast i { color: var(--yellow); }

/* Minion Loader */
.minion-loader, .kuromi-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 46%, #173459 0, #0c182a 48%, #050b14 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity .7s ease, visibility .7s ease;
}
.minion-loader:before, .kuromi-loader:before {
  content: "";
  position: absolute;
  width: min(78vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 0, 0.15), transparent 67%);
  animation: loaderGlow 2s ease-in-out infinite alternate;
}
.minion-loader.leaving, .kuromi-loader.leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: var(--yellow);
  font: 700 15px var(--round);
  letter-spacing: .4px;
  text-shadow: 0 0 16px rgba(255, 210, 0, 0.4);
  animation: loaderRise 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.loader-center img {
  width: min(200px, 50vw);
  height: min(200px, 50vw);
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(255, 210, 0, 0.45));
  animation: loaderMinion 1.8s ease-in-out infinite;
}
.loader-dots {
  display: flex;
  gap: 6px;
  margin-top: -8px;
}
.loader-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  animation: loaderDot .8s ease-in-out infinite alternate;
}
.loader-dots i:nth-child(2) { animation-delay: .18s; }
.loader-dots i:nth-child(3) { animation-delay: .36s; }

.loader-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(76vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 210, 0, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: loaderSpin 18s linear infinite;
}
.loader-orbit:before {
  content: "🍌";
  position: absolute;
  top: 8%;
  left: 20%;
  font-size: 16px;
}
.loader-orbit.orbit-two {
  width: min(58vw, 340px);
  border-color: rgba(41, 114, 216, 0.25);
  animation-direction: reverse;
  animation-duration: 25s;
}
.loader-orbit.orbit-two:before {
  content: "✦";
  color: var(--yellow);
  top: auto;
  left: auto;
  bottom: 13%;
  right: 9%;
  font-size: 13px;
}
.loader-star {
  position: absolute;
  color: var(--yellow);
  text-shadow: 0 0 16px rgba(255, 210, 0, 0.7);
  animation: loaderTwinkle 1.4s ease-in-out infinite alternate;
}
.loader-star-one { left: 20%; top: 29%; font-size: 20px; }
.loader-star-two { right: 22%; top: 37%; font-size: 22px; animation-delay: .35s; }
.loader-star-three { left: 27%; bottom: 25%; font-size: 15px; animation-delay: .7s; }

/* Selection & Page Load */
::selection { background: var(--yellow); color: #070e17; }
::-moz-selection { background: var(--yellow); color: #070e17; }

html.is-loading { overflow: hidden; }
html.is-loading body { overflow: hidden; }
html.is-loading body > .sky,
html.is-loading body > .topbar,
html.is-loading body > main,
html.is-loading body > footer {
  opacity: 0;
  transform: translateY(20px) scale(.97);
  filter: blur(5px);
}
html.site-reveal body > .sky,
html.site-reveal body > .topbar,
html.site-reveal body > main,
html.site-reveal body > footer {
  animation: landingForm 1s cubic-bezier(.2,.75,.25,1) both;
}

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes moonGlow {
  0%, 100% { filter: drop-shadow(0 0 25px rgba(255, 210, 0, 0.35)); }
  50% { filter: drop-shadow(0 0 45px rgba(255, 210, 0, 0.65)); }
}
@keyframes twinkle {
  0%, 100% { opacity: .45; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(9px); opacity: 0; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.2); }
  20%, 40% { transform: scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes readerIn {
  from { opacity: 0; transform: translateY(18px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes loaderMinion {
  0%, 100% { transform: translateY(0) rotate(-3deg) scale(.98); }
  50% { transform: translateY(-10px) rotate(3deg) scale(1.04); }
}
@keyframes loaderRise {
  from { opacity: 0; transform: translateY(18px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes loaderGlow {
  from { transform: scale(.85); opacity: .55; }
  to { transform: scale(1.12); opacity: 1; }
}
@keyframes loaderSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes loaderDot { to { opacity: .35; transform: translateY(-5px); } }
@keyframes loaderTwinkle { to { opacity: .38; transform: scale(.65) rotate(25deg); } }
@keyframes landingForm {
  from { opacity: 0; transform: translateY(20px) scale(.97); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes lookAround {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 2px); }
  50% { transform: translate(4px, -2px); }
  80% { transform: translate(2px, 2px); }
}

/* Responsive Media Queries */
@media(max-width: 780px) {
  .topbar { padding: 0 6%; height: 66px; }
  .topbar nav { gap: 16px; margin-right: 15px; }
  .topbar nav a { font-size: 11px; }
  .hero {
    height: auto;
    min-height: 790px;
    padding: 67px 7% 75px;
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .hero-copy { padding-top: 16px; }
  .hero h1 { font-size: 58px; }
  .hero-art { height: 355px; margin-top: -12px; }
  .art-orbit { width: 290px; height: 290px; }
  .orbit-b { width: 240px; height: 240px; }
  .art-moon { font-size: 115px; right: calc(50% - 135px); top: 10px; }
  .minion-character { transform: scale(.85); margin-top: 55px; }
  .art-caption { bottom: -7px; }
  .scroll-hint { bottom: 20px; }
  .dashboard { padding: 56px 6% 66px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading h2 { font-size: 34px; }
  .button-random { align-self: flex-start; }
  .story-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-cover { height: 130px; }
  .card-content { padding: 13px; }
  .card-title { font-size: 17px; }
  .filters { gap: 5px; }
  .filter { padding: 8px 9px; font-size: 10px; }
  .search { order: 2; width: 100%; margin: 5px 0 0; }
  .search input { width: 100%; }
  .love-note p { font-size: 20px; }
  footer { padding: 20px 6%; flex-wrap: wrap; }
  footer p { order: 3; width: 100%; margin: 0; }
  .footer-credit { margin-left: auto; }
  .reader-panel { padding: 25px 24px 30px; }
  .reader-content { font-size: 14px; }
  .sky { height: 820px; }
}

@media(max-width: 460px) {
  .topbar nav { gap: 12px; }
  .topbar nav a:nth-child(3) { display: none; }
  .hero { min-height: 755px; }
  .hero h1 { font-size: 50px; }
  .hero-text { font-size: 13px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .button { padding: 12px 14px; font-size: 11px; }
  .story-grid { grid-template-columns: 1fr; }
  .card-cover { height: 155px; }
  .card-desc { height: auto; min-height: 30px; }
  .progress-card { padding: 14px; gap: 10px; }
  .progress-copy strong { font-size: 15px; }
  .progress-copy span { max-width: 205px; line-height: 1.5; }
  .progress-icon { width: 38px; height: 38px; }
  .progress-count { gap: 3px; }
  .progress-count b { font-size: 23px; }
  .progress-count span { font-size: 9px; }
  .reader-panel h2 { font-size: 29px; }
  .reader-illustration { height: 115px; }
  .reader { padding: 10px; }
  .reader-panel { max-height: 96vh; padding: 22px 20px 28px; }
  .footer-credit { font-size: 8px; }
}

@media(max-width: 600px) {
  .reader-panel { padding: 19px 17px 28px; border-radius: 20px; max-height: 96vh; }
  .reader-progress-track { border-radius: 20px 20px 0 0; }
  .reader-close { top: 17px; right: 16px; width: 34px; height: 34px; }
  .reader-topline { padding-right: 42px; min-height: 55px; }
  .reader-brand { gap: 8px; }
  .reader-brand img { width: 52px; height: 46px; }
  .reader-brand span { font-size: 15px; }
  .reader-brand small { font-size: 9px; }
  .reader-time { font-size: 9px; }
  .reader-heading { margin: 19px auto 5px; padding: 23px 13px 19px; }
  .reader-heading:before { top: 11px; left: 11px; }
  .reader-heading:after { top: 10px; right: 12px; }
  .reader-heading h2 { margin: 12px 9px 6px; }
  .reader-meta { gap: 8px; margin-top: 12px; }
  .reader-illustration { height: 130px; }
  .reader-tools { margin-bottom: 16px; }
  .reader-content { line-height: 1.95; margin-bottom: 18px; }
  .reader-content p { margin-bottom: 19px; }
  .reader-content p:first-child:first-letter { font-size: 42px; }
  .reader-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .reader-actions .reader-done { grid-column: 1 / -1; grid-row: 1; width: 100%; }
  .reader-nav { grid-row: 2; }
  .reader-end { padding: 19px 10px; }
}

@media(prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
