:root {
  --bg: #f7f3ee;
  --card: #ffffff;
  --accent: #5b8fa8;
  --tear: #7ec8e3;
  --text: #2c3e50;
  --muted: #7f8c8d;
  --warm: #e8d5c4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #f7f3ee 0%, #e8f4f8 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

h1 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--accent);
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat .label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.cry-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1rem;
  padding: 1.2rem 2rem;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--tear), var(--accent));
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(91, 143, 168, 0.3);
  transition: transform 0.1s, box-shadow 0.1s;
}

.cry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 143, 168, 0.4);
}

.cry-btn:active {
  transform: translateY(1px);
}

.message {
  text-align: center;
  min-height: 1.5rem;
  font-style: italic;
  color: var(--accent);
}

section {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

h2 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.4rem;
}

.book, .upgrade {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.book:last-child, .upgrade:last-child { border-bottom: none; }

.book-info, .upgrade-info {
  flex: 1;
}

.book-name, .upgrade-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.book-desc, .upgrade-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

.book-stats, .upgrade-cost {
  text-align: right;
  font-size: 0.9rem;
}

.buy-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.5rem;
}

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

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.links a {
  display: inline-block;
  background: var(--warm);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.links a:hover {
  background: #d4c0ad;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .book, .upgrade { flex-direction: column; align-items: flex-start; }
  .book-stats, .upgrade-cost { text-align: left; margin-top: 0.5rem; }
} 