:root {
  --bg: #fff7f2;
  --card: #ffffff;
  --ink: #3a2f2a;
  --muted: #9a8b83;
  --accent: #ff9e6d;
  --accent-soft: #ffe6d6;
  --line: #f0e2d8;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 18px 60px;
}

.hero {
  text-align: center;
  padding: 20px 0 8px;
}
.hello { font-size: 20px; margin: 0 0 10px; }
.compliment {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  padding: 18px 20px;
  background: var(--accent-soft);
  border-radius: var(--radius);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.tile {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  border: 1px solid var(--line);
}
.tile.suns { background: linear-gradient(160deg, #fff2d6, #ffe0c2); border: none; }
#event-tile { cursor: pointer; }
.suns-num, .tile-big { font-size: 26px; font-weight: 600; }
.tile-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.city-input {
  border: none; background: transparent; text-align: center;
  font-size: 13px; color: var(--muted); width: 100%; padding: 2px;
}
.city-input:focus { outline: none; color: var(--ink); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 14px 0;
  border: 1px solid var(--line);
}
.card h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }

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

input, textarea {
  font: inherit; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fffaf7; color: var(--ink); width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.row input { flex: 1; }

button {
  font: inherit; font-weight: 500; cursor: pointer;
  padding: 10px 16px; border: none; border-radius: 12px;
  background: var(--accent); color: #fff; white-space: nowrap;
}
button:active { transform: scale(0.97); }

.joys { list-style: none; padding: 0; margin: 14px 0 0; }
.joys li {
  padding: 10px 12px; border-radius: 12px; background: #fffaf7;
  margin-bottom: 8px; font-size: 15px;
}
.joys li .d { color: var(--muted); font-size: 12px; margin-right: 8px; }

.muted { color: var(--muted); font-size: 14px; }
.hidden { display: none; }
