@font-face {
  font-family: 'Bitshow';
  src: url('Bitshow.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary: #ff8ab4;
  --secondary: #ffc9e3;
  --text: #4a3e43;
  --bg: #fff4f8;
  --glass: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.6);
}

.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: 
    radial-gradient(circle at center, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 100%);
  border-radius: 20px;
  overflow: hidden;
}

.crt-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.03) 0,
    rgba(0,0,0,0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  animation: scan 4s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { transform: translateY(-2px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text);
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 20% 10%, #ffffff 0%, rgba(255,255,255,0) 55%),
    radial-gradient(700px 500px at 90% 20%, rgba(255, 220, 238, 0.95) 0%, rgba(255,220,238,0) 60%),
    radial-gradient(900px 650px at 30% 95%, rgba(255, 201, 227, 0.95) 0%, rgba(255,201,227,0) 62%),
    linear-gradient(180deg, #fff4f8, #ffe6f1 45%, #fff4f8);
}

.background-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  z-index: 10;
}

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

.sparkle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, rgba(255,255,255,0) 60%),
              radial-gradient(circle at 70% 70%, rgba(255,165,205,0.7), rgba(255,165,205,0) 60%);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  from { transform: translateY(110vh) scale(0.8); }
  to { transform: translateY(-20vh) scale(1.2); }
}

#app {
  position: relative;
  width: 100%;
  height: calc(100% - 70px);
  z-index: 5;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem;
  padding-bottom: 5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  overflow-y: auto;
  scrollbar-width: none;
}

.page::-webkit-scrollbar {
  display: none;
}

.page.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-container {
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding-top: 2rem;
}

.profile-frame {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  border-radius: 80px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(255, 138, 180, 0.3);
  border: 6px solid #fff;
  transform: rotate(-2deg);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

h1 {
  margin: 0;
  font-size: 4.5rem;
  font-weight: normal;
  font-family: 'Bitshow', cursive;
  line-height: 1;
  margin-bottom: -0.5rem;
}

.subtitle-sweet {
  margin: 0.2rem 0 1.5rem;
  font-weight: 600;
  color: #ff75a8;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 #fff;
}

.about-webmaster-card {
  background: none;
  border-radius: 24px;
  text-align: left;
  margin: 1.5rem auto 1rem;
  width: 100%;
  max-width: 780px;
  height: auto;
  min-height: 420px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  gap: 15px;
}

.likes-box, .dislikes-box {
  width: 130px;
  background: #fff;
  border: 2px solid #ffdae9;
  border-radius: 20px;
  padding: 1.2rem 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 5px 5px 0px rgba(255, 138, 180, 0.15);
  position: relative;
  align-self: flex-start;
  margin-top: 10px;
}

.likes-box {
  transform: rotate(-1.5deg);
}

.dislikes-box {
  transform: rotate(1.5deg);
}

.tape-decoration {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 138, 180, 0.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: 5;
}

.likes-box h4, .dislikes-box h4 {
  margin: 0 0 0.8rem 0;
  color: #ff75a8;
  font-size: 1.1rem;
  font-family: 'Bitshow', cursive;
  text-align: center;
}

.likes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #8a7a80;
  font-weight: 600;
}

.likes-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 0.2rem;
  border-bottom: 1px dotted #ffe6f1;
}

.main-info {
  flex: 1;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #fff;
  border-radius: 24px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 12px 30px rgba(255, 138, 180, 0.1);
  height: 420px;
}

.about-webmaster-card h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 138, 180, 0.2);
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
  font-weight: 800;
}

.about-webmaster-content {
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) transparent;
}

.about-webmaster-content::-webkit-scrollbar {
  width: 4px;
}

.about-webmaster-content::-webkit-scrollbar-thumb {
  background-color: var(--secondary);
  border-radius: 10px;
}

.about-webmaster-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
  color: #6a5a60;
}

.about-webmaster-card p:last-child {
  margin-bottom: 0;
}

.cute-divider {
  display: block;
  width: 180px;
  height: auto;
  margin: 0.8rem auto;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(255, 138, 180, 0.2));
}

.construction-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  width: 100%;
  padding: 2rem 0;
}

.construction-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #fff;
  border-radius: 35px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(255, 138, 180, 0.15);
}

.bitshow-font {
  font-family: 'Bitshow', cursive;
  font-weight: normal;
}

.construction-card h2 {
  font-size: 3.5rem;
  margin: 0 0 0.5rem;
  color: var(--primary);
}

.warning-banner {
  background: #ffe6f1;
  color: #ff75a8;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: inline-block;
  border: 1px dashed #ff8ab4;
}

.cute-divider.bigger {
  width: 220px;
  margin: 1.5rem auto;
}

.loading-bar-container {
  width: 80%;
  height: 14px;
  background: #fff;
  border-radius: 10px;
  margin: 2rem auto 1rem;
  overflow: hidden;
  border: 1px solid #ffdae9;
  position: relative;
}

.loading-bar {
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, #ff8ab4, #ffc9e3);
  border-radius: 10px;
  animation: pulse-width 3s ease-in-out infinite alternate;
}

@keyframes pulse-width {
  0% { width: 20%; }
  100% { width: 90%; }
}

.archive-container {
  width: 100%;
  max-width: 900px;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.archive-header {
  text-align: center;
  margin-bottom: 2rem;
}

.archive-title {
  font-size: 3.5rem;
  margin: 0;
  color: var(--primary);
  text-shadow: 2px 2px 0 #fff;
}

.archive-subtitle {
  font-size: 1rem;
  color: #8a7a80;
  font-style: italic;
  margin-top: 0.5rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  width: 100%;
  padding: 10px;
}

.archive-item {
  background: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #ffdae9;
}

.archive-item:hover {
  transform: scale(1.05) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(255, 138, 180, 0.2);
}

.archive-img-wrapper {
  aspect-ratio: 1;
  overflow: hidden;
  background: #fdfdfd;
  border: 1px solid #f0f0f0;
  border-radius: 2px;
}

.archive-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.archive-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #aaa;
  font-family: monospace;
}

.no-drawings-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 2px dashed #ffc9e3;
  text-align: center;
  position: relative;
  max-width: 400px;
  margin: 2rem auto;
}

.no-drawings-card p {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.no-drawings-card small {
  color: #8a7a80;
}

.archive-footer-note {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: #ff8ab4;
  opacity: 0.6;
  letter-spacing: 1px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 1rem;
  z-index: 100;
  border-top: 1px solid rgba(255,255,255,0.5);
}

.nav-item {
  background: none;
  border: none;
  padding: 10px;
  color: #ccc;
  transition: all 0.3s;
  cursor: pointer;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.nav-item.active {
  color: var(--primary);
  transform: translateY(-5px) scale(1.1);
}

.nav-item.active svg {
  filter: drop-shadow(0 0 5px var(--secondary));
}

.sweetpea-about-box {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #fff;
  border-radius: 24px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  width: 100%;
  max-width: 780px;
  box-shadow: 0 10px 25px rgba(255, 138, 180, 0.1);
  text-align: left;
}

.sweetpea-about-box h4 {
  margin: 0 0 0.8rem 0;
  color: var(--primary);
  font-family: 'Bitshow', cursive;
  font-size: 1.6rem;
  font-weight: normal;
}

.sweetpea-about-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6a5a60;
  margin: 0;
}

.sweetpea-about-box .signature {
  text-align: right;
  font-weight: 800;
  margin-top: 0.8rem;
  color: var(--primary);
}

.glimmer-text {
  background: linear-gradient(90deg, #ff8ab4, #ffc9e3, #ff8ab4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
  -webkit-text-stroke: 2px #fff;
  filter: drop-shadow(0 4px 6px rgba(255, 138, 180, 0.4));
  padding: 0.5rem 0;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.home-nav-button {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #4a3e43;
  color: #ffc9e3;
  padding: 25px 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-radius: 15px 0 0 15px;
  border: 2px solid #ffc9e3;
  border-right: none;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: -4px 0 15px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-nav-button:hover {
  padding-right: 25px;
  background: #ff8ab4;
  color: #ffffff;
}