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

html, body {
  overflow: hidden;
  height: 100%;
}

body {
  background: linear-gradient(135deg, #2c1a0e 0%, #4a3020 50%, #2c1a0e 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Georgia', serif;
}

.header {
  text-align: center;
  margin-bottom: 24px;
  color: #d4b896;
}

.header h1 {
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 4px;
}

.header p {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  text-transform: uppercase;
}

#flip-book-container {
  perspective: 2000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#flip-book {
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.page {
  background: #fff;
  overflow: hidden;
}

.page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  color: #d4b896;
}

.btn {
  background: rgba(212, 184, 150, 0.15);
  border: 1px solid rgba(212, 184, 150, 0.4);
  color: #d4b896;
  padding: 10px 28px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-family: 'Georgia', serif;
}

.btn:hover {
  background: rgba(212, 184, 150, 0.3);
  border-color: #d4b896;
}

.btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.page-info {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  min-width: 100px;
  text-align: center;
}

/* Loading */
#loader {
  position: fixed;
  inset: 0;
  background: #2c1a0e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  color: #d4b896;
}

#loader span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(212,184,150,0.2);
  border-top-color: #d4b896;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Swipe hint for mobile */
.swipe-hint {
  margin-top: 14px;
  color: rgba(212, 184, 150, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: none;
}

/* Responsive */
@media (max-width: 700px) {
  .header {
    margin-bottom: 16px;
  }

  .header h1 {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
  }

  .header p {
    font-size: 0.65rem;
  }

  .controls {
    gap: 12px;
    margin-top: 16px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.7rem;
  }

  .page-info {
    font-size: 0.7rem;
    min-width: 70px;
  }

  .swipe-hint {
    display: block;
  }

  #flip-book {
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  }
}
