/* ===================================
   $CLIFFORD - Storybook with Stars
   =================================== */

:root {
  --cream-bg: #F5E6C8;
  --cream-light: #FFF9F0;
  --cream-dark: #E8D4A8;
  --page-edge: #D8C8A8;
  
  --clifford-red: #E23D28;
  --clifford-dark: #B82818;
  
  --black: #1a1a1a;
  --brown: #5C4033;
  --brown-light: #8B7355;
  --brown-dark: #3D2817;
}

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

/* Custom Red Scrollbar */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: #F5E6D3;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #E31837;
  border-radius: 10px;
  border: 3px solid #F5E6D3;
}

::-webkit-scrollbar-thumb:hover {
  background: #B71C1C;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #E31837 #F5E6D3;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

/* Star pattern background */
.stars-bg {
  position: fixed;
  inset: 0;
  background-color: var(--cream-bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(226, 61, 40, 0.08) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(226, 61, 40, 0.08) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(92, 64, 51, 0.05) 0%, transparent 50%);
  z-index: -2;
}

.stars-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath d='M25 1l3 9h9l-7 5 3 9-8-6-8 6 3-9-7-5h9z' fill='%23E23D28' fill-opacity='0.12'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='2' fill='%235C4033' fill-opacity='0.1'/%3E%3C/svg%3E");
  background-size: 100px 100px, 60px 60px;
  background-position: 0 0, 30px 30px;
  z-index: -1;
}

.stars-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 2l2 6h6l-5 4 2 6-5-4-5 4 2-6-5-4h6z' fill='%23B82818' fill-opacity='0.08'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  background-position: 50px 50px;
  z-index: -1;
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  padding: 12px 20px;
  background: var(--clifford-red);
  box-shadow: 0 4px 0 var(--clifford-dark), 0 6px 20px rgba(0,0,0,0.2);
  z-index: 1000;
}

.header-logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
  background: white;
}

.header-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: white;
  text-shadow: 2px 2px 0 var(--clifford-dark);
}

.header-title span {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  font-weight: normal;
  opacity: 0.9;
}

/* Offset body for fixed header */
body {
  padding-top: 180px;
  padding-bottom: 60px;
}

/* Top social icons */
.top-socials {
  position: fixed;
  top: 12px;
  right: 15px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.top-social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--clifford-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--clifford-dark), 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.15s ease;
}

.top-social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--clifford-dark), 0 8px 20px rgba(0,0,0,0.25);
}

.top-social-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--clifford-dark);
}

.top-social-btn svg {
  width: 22px;
  height: 22px;
}

/* Market Cap display */
.market-cap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  padding: 8px 14px;
  border-radius: 25px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 0 #1e8449, 0 4px 15px rgba(0,0,0,0.15);
}

.mc-label {
  opacity: 0.9;
  font-size: 12px;
}

.mc-value {
  font-size: 15px;
  letter-spacing: 0.5px;
}

/* Pump icon inside CA button */
.pump-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Top CA copy button */
.top-ca-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 20px;
  background: white;
  color: var(--clifford-red);
  border: none;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 4px 0 #ddd, 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.15s ease;
}

.top-ca-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #ddd, 0 6px 18px rgba(0,0,0,0.15);
}

.top-ca-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #ddd;
}

.top-ca-btn svg {
  width: 16px;
  height: 16px;
}

.ca-short {
  letter-spacing: 0.5px;
}

.ca-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: 'Patrick Hand', cursive;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  margin-top: 8px;
  z-index: 1001;
}

.ca-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--black);
}

.top-ca-btn.copied .ca-tooltip {
  opacity: 1;
  visibility: visible;
}

.top-ca-btn.copied {
  background: #4CAF50;
  color: white;
}

/* Book wrapper */
.book-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
}

/* Navigation buttons */
.nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--clifford-red);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 6px 0 var(--clifford-dark),
    0 8px 25px rgba(0,0,0,0.25);
  transition: all 0.15s ease;
  z-index: 200;
  position: relative;
  flex-shrink: 0;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 9px 0 var(--clifford-dark),
    0 12px 30px rgba(0,0,0,0.3);
}

.nav-btn:active {
  transform: translateY(3px);
  box-shadow: 
    0 3px 0 var(--clifford-dark),
    0 5px 15px rgba(0,0,0,0.2);
}

/* Book */
.book {
  width: 450px;
  height: 600px;
  position: relative;
  box-shadow: 
    -5px 10px 40px rgba(0,0,0,0.35),
    -2px 5px 15px rgba(0,0,0,0.2);
  border-radius: 5px 15px 15px 5px;
  transform-style: preserve-3d;
  perspective: 2000px;
}

/* Each page */
.page {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 12px 12px 0;
  transform-style: preserve-3d;
}

.page.flipped {
  transform: rotateY(-180deg);
  pointer-events: none;
}

.page-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0 12px 12px 0;
  overflow: hidden;
}

/* Page edge effect */
.page-edge-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    var(--page-edge) 30%,
    var(--cream-dark) 60%,
    var(--page-edge) 100%
  );
  border-radius: 0 12px 12px 0;
  pointer-events: none;
}

/* Cover page */
.cover {
  background: linear-gradient(135deg, var(--cream-light) 0%, #FFF5E6 100%);
  border: 6px solid var(--clifford-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-content {
  text-align: center;
  padding: 30px;
}

.logo-img {
  width: 380px;
  height: 380px;
  object-fit: contain;
  margin-bottom: -25px;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  mix-blend-mode: multiply;
}

.cover-intro {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 5px;
}

.cover-title {
  font-family: 'Fredoka One', cursive;
  font-size: 4rem;
  color: var(--clifford-red);
  text-shadow: 
    3px 3px 0 var(--black),
    -1px -1px 0 var(--black),
    1px -1px 0 var(--black),
    -1px 1px 0 var(--black);
  line-height: 1;
  margin-bottom: 8px;
}

.cover-subtitle {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 8px;
}

.cover-subtitle span {
  color: var(--clifford-red);
}

.cover-tagline {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.4rem;
  color: var(--brown);
  font-style: italic;
  margin-top: 15px;
}

/* Story pages */
.story-page {
  background: linear-gradient(180deg, var(--cream-light) 0%, #FFF8EE 100%);
  border: 5px solid var(--brown-light);
  padding: 30px 35px 30px 45px;
  display: flex;
  flex-direction: column;
}

.page-header {
  text-align: center;
  border-bottom: 3px dashed var(--cream-dark);
  padding-bottom: 18px;
  margin-bottom: 25px;
}

.chapter-num {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  color: var(--brown);
}

.chapter-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--clifford-red);
}

.page-body {
  flex: 1;
}

.page-body p {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 18px;
}

.page-body strong {
  color: var(--clifford-red);
  font-weight: 700;
}

.page-body em {
  color: var(--brown);
  font-style: normal;
  font-weight: 700;
}

.drop-cap {
  font-family: 'Fredoka One', cursive;
  font-size: 4rem;
  float: left;
  line-height: 0.8;
  margin-right: 10px;
  margin-top: 8px;
  color: var(--clifford-red);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.page-footer {
  text-align: center;
  padding-top: 12px;
  border-top: 2px solid var(--cream-dark);
}

.page-num {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--brown);
}

/* Contract page */
.contract-box {
  background: var(--clifford-red);
  border: 5px solid var(--clifford-dark);
  border-radius: 15px;
  padding: 25px 20px;
  margin: 25px 0;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.ca-label {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  color: var(--cream-light);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.ca-text {
  display: block;
  font-family: monospace;
  font-size: 0.7rem;
  color: white;
  word-break: break-all;
  margin-bottom: 18px;
  line-height: 1.5;
}

.copy-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--cream-light);
  color: var(--clifford-dark);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 0 var(--cream-dark);
}

.copy-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--cream-dark);
}

.copy-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--cream-dark);
}

/* CTA buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.btn {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  padding: 18px 30px;
  border-radius: 35px;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

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

.btn-buy {
  background: var(--clifford-red);
  color: white;
  box-shadow: 0 6px 0 var(--clifford-dark);
}

.btn-buy:hover {
  box-shadow: 0 8px 0 var(--clifford-dark);
}

.btn-chart {
  background: var(--brown);
  color: white;
  box-shadow: 0 6px 0 var(--brown-dark);
}

.btn-chart:hover {
  box-shadow: 0 8px 0 var(--brown-dark);
}

/* Back cover */
.back-cover {
  background: linear-gradient(135deg, var(--cream-light) 0%, #FFF5E6 100%);
  border: 6px solid var(--clifford-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-content {
  text-align: center;
  padding: 30px;
}

.logo-img-small {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  mix-blend-mode: multiply;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.back-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: var(--clifford-red);
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
  padding: 16px 30px;
  background: var(--cream-bg);
  border: 3px solid var(--brown-light);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 0 var(--cream-dark);
}

.social-btn:hover {
  background: white;
  color: var(--clifford-red);
  border-color: var(--clifford-red);
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--cream-dark);
}

.social-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--cream-dark);
}

.social-icon {
  font-size: 1.3rem;
}

.social-text {
  font-weight: 800;
}

.back-footer p {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--brown);
}

.back-footer .disclaimer {
  font-size: 0.8rem;
  color: var(--brown-light);
  margin-top: 5px;
}

/* Page indicator */
.page-indicator {
  margin-top: 50px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: white;
  background: var(--clifford-red);
  padding: 12px 30px;
  border-radius: 30px;
  box-shadow: 0 5px 0 var(--clifford-dark);
}

/* Meme Gallery */
.meme-gallery {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto 40px;
  padding: 0 20px;
}

.gallery-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  color: var(--clifford-red);
  text-align: center;
  text-shadow: 2px 2px 0 var(--black);
  margin-bottom: 10px;
}

.gallery-subtitle {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.3rem;
  color: var(--brown);
  text-align: center;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.meme-item {
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--clifford-dark), 0 8px 25px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  background: white;
  border: 4px solid var(--clifford-red);
}

.meme-item:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 0 12px 0 var(--clifford-dark), 0 15px 35px rgba(0,0,0,0.25);
}

.meme-item img,
.meme-item video {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* Video item with play icon */
.video-item {
  position: relative;
}

.video-item .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(211, 47, 47, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.video-item:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--clifford-red);
}

.video-item.playing .play-icon {
  opacity: 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 15px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Responsive - Tablet */
@media (max-width: 550px) {
  .site-header {
    padding: 10px 15px;
    gap: 8px;
    justify-content: flex-start;
  }
  
  .header-logo {
    width: 32px;
    height: 32px;
    border-width: 2px;
  }
  
  .header-title {
    font-size: 1.1rem;
  }
  
  .header-title span {
    display: none;
  }
  
  body {
    padding-top: 70px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 15px;
  }
  
  .top-socials {
    top: 10px;
    right: 10px;
    gap: 6px;
  }
  
  .top-social-btn {
    width: 32px;
    height: 32px;
    box-shadow: 0 2px 0 rgba(0,0,0,0.3);
  }
  
  .top-social-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .top-ca-btn {
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
  }
  
  .top-ca-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .top-ca-btn .ca-short {
    display: none;
  }
  
  .pump-icon {
    width: 18px;
    height: 18px;
  }
  
  .market-cap {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .mc-label {
    font-size: 10px;
  }
  
  .mc-value {
    font-size: 12px;
  }
  
  /* Gallery mobile */
  .meme-gallery {
    margin-top: 40px;
    padding: 0 15px;
  }
  
  .gallery-title {
    font-size: 1.8rem;
  }
  
  .gallery-subtitle {
    font-size: 1.1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .meme-item {
    border-width: 3px;
    border-radius: 10px;
  }
  
  .meme-item img {
    height: 150px;
  }
  
  .top-social-btn {
    width: 38px;
    height: 38px;
    box-shadow: 0 3px 0 var(--clifford-dark);
  }
  
  .top-social-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .book-wrapper {
    gap: 8px;
    flex-direction: column;
  }
  
  .book {
    width: 320px;
    height: 450px;
  }
  
  .page-edge-right {
    width: 8px;
  }
  
  .nav-btn {
    display: none;
  }
  
  .logo-img {
    width: 110px;
    height: 110px;
    margin-bottom: 12px;
  }
  
  .cover-intro {
    font-size: 1rem;
  }
  
  .cover-title {
    font-size: 2.8rem;
  }
  
  .cover-subtitle {
    font-size: 1rem;
  }
  
  .cover-tagline {
    font-size: 1.1rem;
  }
  
  .cover-content {
    padding: 20px 15px;
  }
  
  .story-page {
    padding: 18px 15px 18px 20px;
  }
  
  .page-header {
    padding-bottom: 12px;
    margin-bottom: 15px;
  }
  
  .chapter-num {
    font-size: 0.85rem;
  }
  
  .chapter-title {
    font-size: 1.4rem;
  }
  
  .page-body p {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.6;
  }
  
  .drop-cap {
    font-size: 2.5rem;
    margin-right: 6px;
  }
  
  .page-footer {
    padding-top: 8px;
  }
  
  .page-num {
    font-size: 1rem;
  }
  
  .contract-box {
    padding: 18px 12px;
    margin: 15px 0;
  }
  
  .ca-label {
    font-size: 0.7rem;
  }
  
  .ca-text {
    font-size: 0.5rem;
    margin-bottom: 12px;
  }
  
  .copy-btn {
    font-size: 0.95rem;
    padding: 10px 22px;
  }
  
  .cta-buttons {
    gap: 10px;
    margin-top: 15px;
  }
  
  .btn {
    font-size: 1rem;
    padding: 14px 20px;
    border-radius: 25px;
  }
  
  .back-content {
    padding: 20px 15px;
  }
  
  .logo-img-small {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
  }
  
  .back-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }
  
  .social-links {
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .social-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  .back-footer p {
    font-size: 0.85rem;
  }
  
  .back-footer .disclaimer {
    font-size: 0.7rem;
  }
  
  .page-indicator {
    margin-top: 15px;
    font-size: 1rem;
    padding: 8px 20px;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 380px) {
  .book {
    width: 280px;
    height: 400px;
  }
  
  .logo-img {
    width: 90px;
    height: 90px;
  }
  
  .cover-title {
    font-size: 2.3rem;
  }
  
  .cover-subtitle {
    font-size: 0.9rem;
  }
  
  .story-page {
    padding: 15px 12px 15px 15px;
  }
  
  .chapter-title {
    font-size: 1.2rem;
  }
  
  .page-body p {
    font-size: 1rem;
  }
  
  .drop-cap {
    font-size: 2rem;
  }
  
  .ca-text {
    font-size: 0.45rem;
  }
  
  .btn {
    font-size: 0.9rem;
    padding: 12px 16px;
  }
  
  .logo-img-small {
    width: 70px;
    height: 70px;
  }
  
  .social-btn {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}

/* Swipe hint for mobile */
@media (max-width: 550px) {
  .book::after {
    content: '👆 Swipe to turn pages';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Patrick Hand', cursive;
    font-size: 0.85rem;
    color: var(--brown-light);
    white-space: nowrap;
    opacity: 0.8;
  }
  
  .page-indicator {
    margin-top: 45px;
  }
}
