:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f9ff;
  color: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.page-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

header {
  text-align: center;
  padding-bottom: 18px;
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

header p {
  margin: 12px auto 0;
  max-width: 760px;
  color: #4b5563;
}

.panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.panel h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #f8fafc;
  font-size: 1rem;
  color: #111827;
}

textarea {
  resize: vertical;
}

button,
button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 18px;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

button:hover,
button.secondary:hover {
  transform: translateY(-1px);
}

button {
  background: #2563eb;
  color: white;
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.18);
}

button.secondary {
  background: #e5e7eb;
  color: #111827;
}

.info-box {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.conversion-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.address-block {
  margin-top: 16px;
}

.address-block p {
  margin: 10px 0 6px;
  font-weight: 700;
}

code {
  display: block;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  word-break: break-all;
  color: #111827;
}

.help-text {
  margin-top: 14px;
  color: #4b5563;
  font-size: 0.95rem;
}

.status {
  margin-top: 16px;
  min-height: 24px;
  color: #111827;
  font-weight: 600;
}

.dream-list {
  display: grid;
  gap: 18px;
}

.dream-card {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 18px;
  background: #f8fafc;
}

.dream-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.dream-meta {
  color: #6b7280;
  margin-bottom: 16px;
}

.dream-text {
  white-space: pre-wrap;
  line-height: 1.7;
  margin-bottom: 18px;
}

.rating-section {
  margin-bottom: 20px;
  padding: 16px;
  background: #fff9e6;
  border-radius: 14px;
  border: 1px solid #ffd700;
}

.rating-section h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.stars-container {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.star {
  font-size: 2rem;
  color: #d1d5db;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star:hover {
  color: #fcd34d;
  transform: scale(1.2);
}

.star.filled {
  color: #fbbf24;
}

.rating-info {
  font-size: 0.9rem;
  color: #6b7280;
}

.average-rating {
  font-weight: 600;
  color: #111827;
}

.rating-count {
  font-weight: 600;
  color: #111827;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.comment-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.comment-item strong {
  display: block;
  margin-bottom: 6px;
}

.comment-form {
  margin-top: 16px;
}

.comment-form input,
.comment-form textarea {
  background: #ffffff;
}

footer {
  text-align: center;
  color: #6b7280;
  padding: 20px 0 10px;
}

@media (max-width: 640px) {
  .conversion-row {
    flex-direction: column;
    align-items: stretch;
  }
}
