:root {
  color-scheme: dark;
  --bg: #1b1d27;
  --bg-alt: #24263a;
  --surface: #2f3249;
  --surface-alt: #3d4161;
  --accent: #f7c259;
  --accent-strong: #ffef9f;
  --danger: #f05c64;
  --success: #66d38f;
  --text-primary: #f5f6ff;
  --text-muted: #9ba1be;
  --card-width: 180px;
}

body {
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
  background: radial-gradient(circle at top, #2f3350, var(--bg));
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.app-root {
  width: min(1200px, 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
  transition: background 120ms ease;
}

button:hover {
  background: var(--surface-alt);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.screen-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.flex-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

.title-screen,
.reward-screen,
.shop-screen,
.event-screen,
.treasure-screen {
  background: rgba(0, 0, 0, 0.25);
  padding: 24px;
  border-radius: 16px;
}

.guide-screen {
  background: rgba(0, 0, 0, 0.25);
  padding: 24px;
  border-radius: 16px;
  gap: 18px;
  max-width: 720px;
}

.guide-section,
.guide-subsection {
  background: rgba(0, 0, 0, 0.15);
  padding: 16px;
  border-radius: 12px;
  gap: 8px;
}

.guide-section ul,
.guide-subsection ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.reward-cards {
  flex-wrap: wrap;
}

.reward-card-button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.shop-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-item-row:last-child {
  border-bottom: none;
}

.shop-inventory {
  background: rgba(0, 0, 0, 0.18);
  padding: 12px;
  border-radius: 12px;
  gap: 12px;
}

.shop-deck {
  max-height: 220px;
  overflow-y: auto;
  gap: 6px;
}

.shop-actions {
  justify-content: flex-end;
  gap: 12px;
}

.treasure-card {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.treasure-name {
  font-size: 1.2rem;
  font-weight: 700;
}
