:root {
  --bg: #f7f1e8;
  --card: #fffaf3;
  --text: #2d2218;
  --muted: #7a6757;
  --accent: #9b6b43;
  --accent-dark: #754b2b;
  --border: #eadcc9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fff7ea, var(--bg));
  color: var(--text);
}

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(45, 34, 24, 0.12);
  text-align: center;
}

.brand {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #efe0cc;
  color: var(--accent-dark);
  font-weight: 800;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 10px;
  font-size: 32px;
}

.intro, .note {
  color: var(--muted);
  line-height: 1.45;
}

.rules {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 18px;
  background: #f1e3d1;
  color: var(--accent-dark);
  font-size: 14px;
}

.upload {
  display: inline-block;
  margin: 12px 0 18px;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.upload input {
  display: none;
}

.hidden {
  display: none !important;
}

.status {
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.photo-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0;
}

.photo-tabs button {
  border: 1px solid var(--border);
  background: #fff7ec;
  color: var(--text);
}

.photo-tabs button.active {
  background: var(--accent);
  color: white;
}

.delete-photo-button {
  width: 100%;
  max-width: 260px;
  margin: 4px auto 10px;
  background: #f5ddd8;
  color: #b85c4a;
}

.image-wrap {
  width: 100%;
  max-height: 420px;
  margin: 18px auto;
  border-radius: 20px;
  overflow: hidden;
  background: #f0e5d5;
}

.image-wrap img {
  display: block;
  max-width: 100%;
}

.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 14px 0;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
}

.controls button {
  background: #eadcc9;
  color: var(--text);
}

.primary, .secondary {
  width: 100%;
  margin-top: 10px;
}

.primary {
  background: var(--accent);
  color: white;
}

.secondary {
  background: #eadcc9;
  color: var(--accent-dark);
}

.sheet-preview {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.note {
  font-size: 14px;
  margin-top: 18px;
}
