* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  color: #fff;
  font-family: 'LINE Seed JP', 'Noto Sans JP', sans-serif;
  min-height: 100vh;
  line-height: 1.8;
}

.hidden { display: none !important; }

/* ── 合成用Canvas（非表示） ────────────────── */
#composite-canvas {
  display: none;
}

/* ── 結果画面 ──────────────────────────────── */
#result-phase {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #111;
}

#result-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#result-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  padding-bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  display: flex;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

#btn-download,
#btn-share,
#btn-retry {
  padding: 12px 24px;
  font-size: 13px;
  font-family: inherit;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

#btn-download .material-symbols-outlined,
#btn-share .material-symbols-outlined {
  font-size: 18px;
}

#btn-download:active,
#btn-share:active,
#btn-retry:active {
  background: rgba(255, 255, 255, 0.15);
}
