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

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 221, 128, 0.45), transparent 28rem),
    linear-gradient(135deg, #f8f4e8 0%, #e9f4ed 52%, #e8eff7 100%);
}

button {
  border: 0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #24302f;
  color: #fffaf0;
}

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

code {
  font-size: 0.92em;
}

.app-shell {
  min-height: 100vh;
  padding:
    max(1rem, var(--fc-safe-area-top, 0px))
    max(1rem, var(--fc-safe-area-right, 0px))
    max(1rem, var(--fc-safe-area-bottom, 0px))
    max(1rem, var(--fc-safe-area-left, 0px));
}

.storybook {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.status-bar,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.status-bar {
  color: #52605d;
  font-size: 0.92rem;
  font-weight: 700;
}

.progress {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 48, 47, 0.12);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: #5f8d4e;
  transition: width 180ms ease;
}

.page-card {
  overflow: hidden;
  border: 1px solid rgba(36, 48, 47, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 80px rgba(36, 48, 47, 0.14);
}

.illustration {
  position: relative;
  height: clamp(220px, 42vw, 300px);
  overflow: hidden;
  background: linear-gradient(#9bd1ff 0%, #bfe3ff 48%, #9acb77 49%, #6fa453 100%);
}

.hill {
  position: absolute;
  inset: auto -10% -28% -10%;
  height: 55%;
  border-radius: 50% 50% 0 0;
  background: #5f8d4e;
}

.house {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 11rem;
  height: 8rem;
  transform: translateX(-50%);
  border: 4px solid rgba(36, 48, 47, 0.32);
  border-radius: 8px 8px 4px 4px;
  background: #d9ad6a;
}

.roof {
  position: absolute;
  left: 50%;
  bottom: calc(22% + 7.3rem);
  width: 12.5rem;
  height: 5.5rem;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 8px 0 0 0;
  background: #aa4a30;
}

.chimney {
  position: absolute;
  left: calc(50% + 2.8rem);
  bottom: calc(22% + 10.8rem);
  width: 1.5rem;
  height: 3rem;
  background: #6f4636;
}

.straw .house {
  background: repeating-linear-gradient(90deg, #e3c96d, #e3c96d 0.6rem, #caa84f 0.6rem, #caa84f 1.2rem);
}

.sticks .house {
  background: repeating-linear-gradient(45deg, #9c6a43, #9c6a43 0.7rem, #7d5437 0.7rem, #7d5437 1.4rem);
}

.brick .house,
.supper .house {
  background: repeating-linear-gradient(0deg, #bd5d4c, #bd5d4c 1.1rem, #7e3f36 1.1rem, #7e3f36 1.25rem);
}

.copy {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-top: 1px solid rgba(36, 48, 47, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: #5f8d4e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 0.96;
}

p {
  line-height: 1.65;
}

.scene {
  margin-top: 1rem;
  color: #7a4835;
  font-size: 1.12rem;
  font-weight: 800;
}

.pager button {
  flex: 1;
}

.donate {
  background: #7a4835;
}

.donation-note,
.notice,
.error {
  max-width: 100%;
  overflow-x: hidden;
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 48, 47, 0.12);
}

.donation-note p {
  margin: 0;
}

.wallet-address {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: clamp(0.66rem, 2.6vw, 0.86rem);
  line-height: 1.35;
  vertical-align: baseline;
}

.notice {
  font-weight: 800;
}

.error {
  overflow-x: auto;
  color: #8a1f11;
}
