:root {
  --bg: #f4efe6;
  --card: #fff8ee;
  --text: #2d1f12;
  --accent: #c65d2d;
  --accent-dark: #9f431c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(135deg, #f6f1e8, #eadfcf);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.container {
  width: min(900px, 100%);
  background: var(--card);
  border: 1px solid #dfcfb8;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(61, 38, 19, 0.15);
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.main-page {
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.main-page .button-row {
  justify-content: center;
}

.name-btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.main-page .name-btn {
  border-radius: 0;
  transform: none;
}

.name-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.name-btn:active {
  transform: translateY(0);
}

.detail-page {
  text-align: center;
}

.back-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}
