:root {
  --bg: #f6f1ea;
  --card: #fffdfa;
  --ink: #3a2e28;
  --sub: #8b7c72;
  --line: #ebe0d5;
  --accent: #b9784c;
  --accent-2: #d9a072;
  --accent-ink: #fff;
  --mint: #dcf4e8;
  --mint-strong: #2fa77a;
  --yellow: #fff5c9;
  --yellow-line: #ecd77a;
  --sun: #d9534f;
  --sat: #3b78d8;
  --danger: #c0392b;
  --radius: 18px;
  --shadow: 0 10px 24px -14px rgba(90, 60, 30, .45);
  --font: "Hiragino Maru Gothic ProN", "Zen Maru Gothic", "M PLUS Rounded 1c",
          "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font-family: inherit; }

.wrap { max-width: 460px; margin: 0 auto; padding: 0 16px 48px; }

.inapp {
  display: none;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1e0;
  border: 1px solid #f0cfa4;
  font-size: 13.5px; line-height: 1.6;
  position: relative;
}
.is-inapp .inapp { display: block; }
.inapp b { color: #a2541c; }
.inapp-close {
  position: absolute; top: 6px; right: 6px;
  border: 0; background: transparent; font-size: 16px; color: var(--sub);
  width: 28px; height: 28px; cursor: pointer;
}

.toast {
  position: fixed; left: 50%; bottom: 20px;
  transform: translate(-50%, 20px);
  background: rgba(45, 35, 30, .92); color: #fff;
  padding: 10px 14px; border-radius: 12px;
  font-size: 14px; line-height: 1.5;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: calc(100% - 32px);
  z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button {
  border: 0; background: transparent; color: #ffd59e;
  font-weight: bold; font-size: 14px; cursor: pointer; padding: 2px 4px;
  white-space: nowrap;
}
