@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f5f5f5;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

#app {
  max-width: 100vw;
  min-height: 100vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 140px;
  background: white;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label {
  font-size: 12px;
  color: #666;
}

.value {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.book-display {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.book {
  width: 180px;
  height: 240px;
  position: relative;
  perspective: 1000px;
  transition: transform 0.3s ease;
}

.book.reading {
  animation: readBounce 0.5s ease;
}

@keyframes readBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(to right, #2a2a2a, #4a4a4a);
  border-radius: 4px 0 0 4px;
}

.book-cover {
  position: absolute;
  left: 20px;
  top: 0;
  width: 160px;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
  border-radius: 0 4px 4px 0;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  color: white;
}

.book-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.page-progress {
  font-size: 14px;
  color: #ccc;
}

.read-btn {
  width: 100%;
  padding: 16px;
  background: #333;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-family: 'Noto Sans JP', sans-serif;
}

.read-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.upgrades {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upgrade {
  background: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.upgrade.disabled {
  opacity: 0.5;
}

.upgrade-info {
  flex: 1;
}

.upgrade-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #333;
}

.upgrade-desc {
  font-size: 12px;
  color: #666;
}

.upgrade-btn {
  padding: 10px 16px;
  background: #333;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}

.upgrade-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.upgrade-btn:active:not(:disabled) {
  transform: scale(0.95);
}